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 Java SDK for Elastic Load Balancing module holds the client classes that are used for communicating with Elastic Load Balancing Service (API Version 2012-06-01)

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2019-2024 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 javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 

* Contains the parameters for DescribeLoadBalancers. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DescribeLoadBalancersRequest extends com.amazonaws.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. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @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: ").append(getLoadBalancerNames()).append(","); if (getMarker() != null) sb.append("Marker: ").append(getMarker()).append(","); if (getPageSize() != null) sb.append("PageSize: ").append(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