Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Licensed to jclouds, Inc. (jclouds) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. jclouds licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 
 package org.jclouds.elb.options;
 
 import java.util.Set;
 
 
Options used to list available policies.

Author(s):
Adrian Cole
See also:
docs
 
 public class ListPoliciesOptions extends BaseHttpRequestOptions implements Cloneable {
 
    private String loadBalancerName;
    private Set<Stringnames = Sets.newLinkedHashSet();

   
 
    public ListPoliciesOptions loadBalancerName(String loadBalancerName) {
       this. = loadBalancerName;
       return this;
    }

   

See also:
getNames()
 
    public ListPoliciesOptions names(Set<Stringnames) {
       this. = names;
       return this;
    }

   

See also:
getNames()
 
    public ListPoliciesOptions name(String name) {
       this..add(name);
       return this;
    }

   
The mnemonic name associated with the LoadBalancer. If no name is specified, the operation returns the attributes of either all the sample policies pre-defined by Elastic Load Balancing or the specified sample polices.
 
    public String getLoadBalancerName() {
       return ;
    }

   
The names of LoadBalancer policies you've created or Elastic Load Balancing sample policy names.
 
    public Set<StringgetNames() {
       return ;
    }
 
    public static class Builder {

      
 
       public static ListPoliciesOptions loadBalancerName(String loadBalancerName) {
          return new ListPoliciesOptions().loadBalancerName(loadBalancerName);
       }

      
 
       public static ListPoliciesOptions name(String name) {
          return new ListPoliciesOptions().name(name);
       }

      
      public static ListPoliciesOptions names(Set<Stringnames) {
         return new ListPoliciesOptions().names(names);
      }
   }
      Multimap<StringStringparams = super.buildFormParameters();
      if ( != null)
         params.put("LoadBalancerName");
      if (.size() > 0) {
         int nameIndex = 1;
         for (String name : ) {
            params.put("PolicyNames.member." + nameIndexname);
            nameIndex++;
         }
      }
      return params;
   }

   
   public int hashCode() {
      return Objects.hashCode();
   }
   public ListPoliciesOptions clone() {
   }

   
   public boolean equals(Object obj) {
      if (this == obj)
         return true;
      if (obj == null)
         return false;
      if (getClass() != obj.getClass())
         return false;
      ListPoliciesOptions other = ListPoliciesOptions.class.cast(obj);
      return Objects.equal(this.other.loadBalancerName) && Objects.equal(this.other.names);
   }

   
   public String toString() {
      return Objects.toStringHelper(this).omitNullValues().add("loadBalancerName")
               .add("names").toString();
   }
New to GrepCode? Check out our FAQ X