/* * 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; /** *
* 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* The ciphers. *
*/ private java.util.List* The name of the policy. *
*/ private String name; /** ** The supported load balancers. *
*/ private java.util.List* The protocols. *
* * @return The protocols. */ public java.util.List* The protocols. *
* * @param sslProtocols * The protocols. */ public void setSslProtocols(java.util.Collection* 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* 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* The ciphers. *
* * @return The ciphers. */ public java.util.List* The ciphers. *
* * @param ciphers * The ciphers. */ public void setCiphers(java.util.Collection* 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* 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* 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* The supported load balancers. *
* * @param supportedLoadBalancerTypes * The supported load balancers. */ public void setSupportedLoadBalancerTypes(java.util.Collection* 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* 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