All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.elasticloadbalancing.model.DescribeLoadBalancersRequest Maven / Gradle / Ivy

Go to download

The AWS SDK for Java with support for OSGi. The AWS SDK for Java provides Java APIs for building software on AWS' cost-effective, scalable, and reliable infrastructure products. The AWS Java SDK allows developers to code against APIs for all of Amazon's infrastructure web services (Amazon S3, Amazon EC2, Amazon SQS, Amazon Relational Database Service, Amazon AutoScaling, etc).

There is a newer version: 1.11.60
Show newest version
/*
 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights
 * Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License").
 * You may not use this file except in compliance with the License.
 * A copy of the License is located at
 *
 *  http://aws.amazon.com/apache2.0
 *
 * or in the "license" file accompanying this file. This file 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 com.amazonaws.services.elasticloadbalancing.model;

import java.io.Serializable;
import com.amazonaws.AmazonWebServiceRequest;

/**
 * 
 */
public class DescribeLoadBalancersRequest extends AmazonWebServiceRequest
        implements Serializable, Cloneable {

    /**
     * 

* The names of the load balancers. *

*/ private com.amazonaws.internal.SdkInternalList loadBalancerNames; /** *

* The marker for the next set of results. (You received this marker from a * previous call.) *

*/ private String marker; /** *

* The maximum number of results to return with this call (a number from 1 * to 400). The default is 400. *

*/ private Integer pageSize; /** * Default constructor for DescribeLoadBalancersRequest object. Callers * should use the setter or fluent setter (with...) methods to initialize * the object after creating it. */ public DescribeLoadBalancersRequest() { } /** * Constructs a new DescribeLoadBalancersRequest object. Callers should use * the setter or fluent setter (with...) methods to initialize any * additional object members. * * @param loadBalancerNames * The names of the load balancers. */ public DescribeLoadBalancersRequest(java.util.List loadBalancerNames) { setLoadBalancerNames(loadBalancerNames); } /** *

* The names of the load balancers. *

* * @return The names of the load balancers. */ public java.util.List getLoadBalancerNames() { if (loadBalancerNames == null) { loadBalancerNames = new com.amazonaws.internal.SdkInternalList(); } return loadBalancerNames; } /** *

* The names of the load balancers. *

* * @param loadBalancerNames * The names of the load balancers. */ public void setLoadBalancerNames( java.util.Collection loadBalancerNames) { if (loadBalancerNames == null) { this.loadBalancerNames = null; return; } this.loadBalancerNames = new com.amazonaws.internal.SdkInternalList( loadBalancerNames); } /** *

* The names of the load balancers. *

*

* NOTE: This method appends the values to the existing list (if * any). Use {@link #setLoadBalancerNames(java.util.Collection)} or * {@link #withLoadBalancerNames(java.util.Collection)} if you want to * override the existing values. *

* * @param loadBalancerNames * The names of the load balancers. * @return Returns a reference to this object so that method calls can be * chained together. */ public DescribeLoadBalancersRequest withLoadBalancerNames( String... loadBalancerNames) { if (this.loadBalancerNames == null) { setLoadBalancerNames(new com.amazonaws.internal.SdkInternalList( loadBalancerNames.length)); } for (String ele : loadBalancerNames) { this.loadBalancerNames.add(ele); } return this; } /** *

* The names of the load balancers. *

* * @param loadBalancerNames * The names of the load balancers. * @return Returns a reference to this object so that method calls can be * chained together. */ public DescribeLoadBalancersRequest withLoadBalancerNames( java.util.Collection loadBalancerNames) { setLoadBalancerNames(loadBalancerNames); return this; } /** *

* The marker for the next set of results. (You received this marker from a * previous call.) *

* * @param marker * The marker for the next set of results. (You received this marker * from a previous call.) */ public void setMarker(String marker) { this.marker = marker; } /** *

* The marker for the next set of results. (You received this marker from a * previous call.) *

* * @return The marker for the next set of results. (You received this marker * from a previous call.) */ public String getMarker() { return this.marker; } /** *

* The marker for the next set of results. (You received this marker from a * previous call.) *

* * @param marker * The marker for the next set of results. (You received this marker * from a previous call.) * @return Returns a reference to this object so that method calls can be * chained together. */ public DescribeLoadBalancersRequest withMarker(String marker) { setMarker(marker); return this; } /** *

* The maximum number of results to return with this call (a number from 1 * to 400). The default is 400. *

* * @param pageSize * The maximum number of results to return with this call (a number * from 1 to 400). The default is 400. */ public void setPageSize(Integer pageSize) { this.pageSize = pageSize; } /** *

* The maximum number of results to return with this call (a number from 1 * to 400). The default is 400. *

* * @return The maximum number of results to return with this call (a number * from 1 to 400). The default is 400. */ public Integer getPageSize() { return this.pageSize; } /** *

* The maximum number of results to return with this call (a number from 1 * to 400). The default is 400. *

* * @param pageSize * The maximum number of results to return with this call (a number * from 1 to 400). The default is 400. * @return Returns a reference to this object so that method calls can be * chained together. */ public DescribeLoadBalancersRequest withPageSize(Integer pageSize) { setPageSize(pageSize); return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getLoadBalancerNames() != null) sb.append("LoadBalancerNames: " + getLoadBalancerNames() + ","); if (getMarker() != null) sb.append("Marker: " + getMarker() + ","); if (getPageSize() != null) sb.append("PageSize: " + getPageSize()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeLoadBalancersRequest == false) return false; DescribeLoadBalancersRequest other = (DescribeLoadBalancersRequest) obj; if (other.getLoadBalancerNames() == null ^ this.getLoadBalancerNames() == null) return false; if (other.getLoadBalancerNames() != null && other.getLoadBalancerNames().equals( this.getLoadBalancerNames()) == false) return false; if (other.getMarker() == null ^ this.getMarker() == null) return false; if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == false) return false; if (other.getPageSize() == null ^ this.getPageSize() == null) return false; if (other.getPageSize() != null && other.getPageSize().equals(this.getPageSize()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLoadBalancerNames() == null) ? 0 : getLoadBalancerNames().hashCode()); hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); hashCode = prime * hashCode + ((getPageSize() == null) ? 0 : getPageSize().hashCode()); return hashCode; } @Override public DescribeLoadBalancersRequest clone() { return (DescribeLoadBalancersRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy