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 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 loadBalancers.

Adrian Cole
See also:
 public class ListLoadBalancersOptions extends BaseHttpRequestOptions implements Cloneable {
    private Object marker;
    private Set<Stringnames = Sets.newLinkedHashSet();

Use this parameter only when paginating results, and only in a subsequent request after you've received a response where the results are truncated. Set it to the value of the Marker element in the response you just received.
    public ListLoadBalancersOptions afterMarker(Object marker) {
       this. = marker;
       return this;

list of names associated with the LoadBalancers at creation time.
    public ListLoadBalancersOptions names(Set<Stringnames) {
       this. = names;
       return this;


See also:
    public ListLoadBalancersOptions name(String name) {
       return this;
    public static class Builder {

       public static ListLoadBalancersOptions afterMarker(Object marker) {
          return new ListLoadBalancersOptions().afterMarker(marker);

       public static ListLoadBalancersOptions name(String name) {
          return new ListLoadBalancersOptions().name(name);

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

   public int hashCode() {
      return Objects.hashCode();

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

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