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

com.amazonaws.services.elasticloadbalancingv2.model.SslPolicy 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 2015-12-01)

The 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.elasticloadbalancingv2.model;

import java.io.Serializable;
import javax.annotation.Generated;

/**
 * 

* Information about a policy used for SSL negotiation. *

* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class SslPolicy implements Serializable, Cloneable { /** *

* The protocols. *

*/ private java.util.List sslProtocols; /** *

* The ciphers. *

*/ private java.util.List ciphers; /** *

* The name of the policy. *

*/ private String name; /** *

* The supported load balancers. *

*/ private java.util.List supportedLoadBalancerTypes; /** *

* The protocols. *

* * @return The protocols. */ public java.util.List getSslProtocols() { return sslProtocols; } /** *

* The protocols. *

* * @param sslProtocols * The protocols. */ public void setSslProtocols(java.util.Collection sslProtocols) { if (sslProtocols == null) { this.sslProtocols = null; return; } this.sslProtocols = new java.util.ArrayList(sslProtocols); } /** *

* The protocols. *

*

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

* * @param sslProtocols * The protocols. * @return Returns a reference to this object so that method calls can be chained together. */ public SslPolicy withSslProtocols(String... sslProtocols) { if (this.sslProtocols == null) { setSslProtocols(new java.util.ArrayList(sslProtocols.length)); } for (String ele : sslProtocols) { this.sslProtocols.add(ele); } return this; } /** *

* The protocols. *

* * @param sslProtocols * The protocols. * @return Returns a reference to this object so that method calls can be chained together. */ public SslPolicy withSslProtocols(java.util.Collection sslProtocols) { setSslProtocols(sslProtocols); return this; } /** *

* The ciphers. *

* * @return The ciphers. */ public java.util.List getCiphers() { return ciphers; } /** *

* The ciphers. *

* * @param ciphers * The ciphers. */ public void setCiphers(java.util.Collection ciphers) { if (ciphers == null) { this.ciphers = null; return; } this.ciphers = new java.util.ArrayList(ciphers); } /** *

* The ciphers. *

*

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

* * @param ciphers * The ciphers. * @return Returns a reference to this object so that method calls can be chained together. */ public SslPolicy withCiphers(Cipher... ciphers) { if (this.ciphers == null) { setCiphers(new java.util.ArrayList(ciphers.length)); } for (Cipher ele : ciphers) { this.ciphers.add(ele); } return this; } /** *

* The ciphers. *

* * @param ciphers * The ciphers. * @return Returns a reference to this object so that method calls can be chained together. */ public SslPolicy withCiphers(java.util.Collection ciphers) { setCiphers(ciphers); return this; } /** *

* The name of the policy. *

* * @param name * The name of the policy. */ public void setName(String name) { this.name = name; } /** *

* The name of the policy. *

* * @return The name of the policy. */ public String getName() { return this.name; } /** *

* The name of the policy. *

* * @param name * The name of the policy. * @return Returns a reference to this object so that method calls can be chained together. */ public SslPolicy withName(String name) { setName(name); return this; } /** *

* The supported load balancers. *

* * @return The supported load balancers. */ public java.util.List getSupportedLoadBalancerTypes() { return supportedLoadBalancerTypes; } /** *

* The supported load balancers. *

* * @param supportedLoadBalancerTypes * The supported load balancers. */ public void setSupportedLoadBalancerTypes(java.util.Collection supportedLoadBalancerTypes) { if (supportedLoadBalancerTypes == null) { this.supportedLoadBalancerTypes = null; return; } this.supportedLoadBalancerTypes = new java.util.ArrayList(supportedLoadBalancerTypes); } /** *

* The supported load balancers. *

*

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

* * @param supportedLoadBalancerTypes * The supported load balancers. * @return Returns a reference to this object so that method calls can be chained together. */ public SslPolicy withSupportedLoadBalancerTypes(String... supportedLoadBalancerTypes) { if (this.supportedLoadBalancerTypes == null) { setSupportedLoadBalancerTypes(new java.util.ArrayList(supportedLoadBalancerTypes.length)); } for (String ele : supportedLoadBalancerTypes) { this.supportedLoadBalancerTypes.add(ele); } return this; } /** *

* The supported load balancers. *

* * @param supportedLoadBalancerTypes * The supported load balancers. * @return Returns a reference to this object so that method calls can be chained together. */ public SslPolicy withSupportedLoadBalancerTypes(java.util.Collection supportedLoadBalancerTypes) { setSupportedLoadBalancerTypes(supportedLoadBalancerTypes); 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 (getSslProtocols() != null) sb.append("SslProtocols: ").append(getSslProtocols()).append(","); if (getCiphers() != null) sb.append("Ciphers: ").append(getCiphers()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getSupportedLoadBalancerTypes() != null) sb.append("SupportedLoadBalancerTypes: ").append(getSupportedLoadBalancerTypes()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SslPolicy == false) return false; SslPolicy other = (SslPolicy) obj; if (other.getSslProtocols() == null ^ this.getSslProtocols() == null) return false; if (other.getSslProtocols() != null && other.getSslProtocols().equals(this.getSslProtocols()) == false) return false; if (other.getCiphers() == null ^ this.getCiphers() == null) return false; if (other.getCiphers() != null && other.getCiphers().equals(this.getCiphers()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getSupportedLoadBalancerTypes() == null ^ this.getSupportedLoadBalancerTypes() == null) return false; if (other.getSupportedLoadBalancerTypes() != null && other.getSupportedLoadBalancerTypes().equals(this.getSupportedLoadBalancerTypes()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSslProtocols() == null) ? 0 : getSslProtocols().hashCode()); hashCode = prime * hashCode + ((getCiphers() == null) ? 0 : getCiphers().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getSupportedLoadBalancerTypes() == null) ? 0 : getSupportedLoadBalancerTypes().hashCode()); return hashCode; } @Override public SslPolicy clone() { try { return (SslPolicy) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy