/* * Copyright 2018-2023 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.elasticloadbalancingv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DescribeSSLPoliciesRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The names of the policies. *
*/ private java.util.List* 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. *
*/ private Integer pageSize; /** ** The type of load balancer. The default lists the SSL policies for all load balancers. *
*/ private String loadBalancerType; /** ** The names of the policies. *
* * @return The names of the policies. */ public java.util.List* The names of the policies. *
* * @param names * The names of the policies. */ public void setNames(java.util.Collection* The names of the policies. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setNames(java.util.Collection)} or {@link #withNames(java.util.Collection)} if you want to override the * existing values. *
* * @param names * The names of the policies. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeSSLPoliciesRequest withNames(String... names) { if (this.names == null) { setNames(new java.util.ArrayList* The names of the policies. *
* * @param names * The names of the policies. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeSSLPoliciesRequest withNames(java.util.Collection* 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 DescribeSSLPoliciesRequest withMarker(String marker) { setMarker(marker); return this; } /** ** The maximum number of results to return with this call. *
* * @param pageSize * The maximum number of results to return with this call. */ public void setPageSize(Integer pageSize) { this.pageSize = pageSize; } /** ** The maximum number of results to return with this call. *
* * @return The maximum number of results to return with this call. */ public Integer getPageSize() { return this.pageSize; } /** ** The maximum number of results to return with this call. *
* * @param pageSize * The maximum number of results to return with this call. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeSSLPoliciesRequest withPageSize(Integer pageSize) { setPageSize(pageSize); return this; } /** ** The type of load balancer. The default lists the SSL policies for all load balancers. *
* * @param loadBalancerType * The type of load balancer. The default lists the SSL policies for all load balancers. * @see LoadBalancerTypeEnum */ public void setLoadBalancerType(String loadBalancerType) { this.loadBalancerType = loadBalancerType; } /** ** The type of load balancer. The default lists the SSL policies for all load balancers. *
* * @return The type of load balancer. The default lists the SSL policies for all load balancers. * @see LoadBalancerTypeEnum */ public String getLoadBalancerType() { return this.loadBalancerType; } /** ** The type of load balancer. The default lists the SSL policies for all load balancers. *
* * @param loadBalancerType * The type of load balancer. The default lists the SSL policies for all load balancers. * @return Returns a reference to this object so that method calls can be chained together. * @see LoadBalancerTypeEnum */ public DescribeSSLPoliciesRequest withLoadBalancerType(String loadBalancerType) { setLoadBalancerType(loadBalancerType); return this; } /** ** The type of load balancer. The default lists the SSL policies for all load balancers. *
* * @param loadBalancerType * The type of load balancer. The default lists the SSL policies for all load balancers. * @return Returns a reference to this object so that method calls can be chained together. * @see LoadBalancerTypeEnum */ public DescribeSSLPoliciesRequest withLoadBalancerType(LoadBalancerTypeEnum loadBalancerType) { this.loadBalancerType = loadBalancerType.toString(); 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 (getNames() != null) sb.append("Names: ").append(getNames()).append(","); if (getMarker() != null) sb.append("Marker: ").append(getMarker()).append(","); if (getPageSize() != null) sb.append("PageSize: ").append(getPageSize()).append(","); if (getLoadBalancerType() != null) sb.append("LoadBalancerType: ").append(getLoadBalancerType()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeSSLPoliciesRequest == false) return false; DescribeSSLPoliciesRequest other = (DescribeSSLPoliciesRequest) obj; if (other.getNames() == null ^ this.getNames() == null) return false; if (other.getNames() != null && other.getNames().equals(this.getNames()) == 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; if (other.getLoadBalancerType() == null ^ this.getLoadBalancerType() == null) return false; if (other.getLoadBalancerType() != null && other.getLoadBalancerType().equals(this.getLoadBalancerType()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getNames() == null) ? 0 : getNames().hashCode()); hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); hashCode = prime * hashCode + ((getPageSize() == null) ? 0 : getPageSize().hashCode()); hashCode = prime * hashCode + ((getLoadBalancerType() == null) ? 0 : getLoadBalancerType().hashCode()); return hashCode; } @Override public DescribeSSLPoliciesRequest clone() { return (DescribeSSLPoliciesRequest) super.clone(); } }