/* * 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.lightsail.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Describes the TLS security policies that are available for Lightsail load balancers. *
** For more information about load balancer TLS security policies, see Configuring TLS security policies on your Amazon Lightsail load balancers in the Amazon Lightsail Developer * Guide. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class LoadBalancerTlsPolicy implements Serializable, Cloneable, StructuredPojo { /** ** The name of the TLS security policy. *
*/ private String name; /** ** A Boolean value that indicates whether the TLS security policy is the default. *
*/ private Boolean isDefault; /** ** The description of the TLS security policy. *
*/ private String description; /** ** The protocols used in a given TLS security policy. *
*/ private java.util.List* The ciphers used by the TLS security policy. *
** The ciphers are listed in order of preference. *
*/ private java.util.List* The name of the TLS security policy. *
* * @param name * The name of the TLS security policy. */ public void setName(String name) { this.name = name; } /** ** The name of the TLS security policy. *
* * @return The name of the TLS security policy. */ public String getName() { return this.name; } /** ** The name of the TLS security policy. *
* * @param name * The name of the TLS security policy. * @return Returns a reference to this object so that method calls can be chained together. */ public LoadBalancerTlsPolicy withName(String name) { setName(name); return this; } /** ** A Boolean value that indicates whether the TLS security policy is the default. *
* * @param isDefault * A Boolean value that indicates whether the TLS security policy is the default. */ public void setIsDefault(Boolean isDefault) { this.isDefault = isDefault; } /** ** A Boolean value that indicates whether the TLS security policy is the default. *
* * @return A Boolean value that indicates whether the TLS security policy is the default. */ public Boolean getIsDefault() { return this.isDefault; } /** ** A Boolean value that indicates whether the TLS security policy is the default. *
* * @param isDefault * A Boolean value that indicates whether the TLS security policy is the default. * @return Returns a reference to this object so that method calls can be chained together. */ public LoadBalancerTlsPolicy withIsDefault(Boolean isDefault) { setIsDefault(isDefault); return this; } /** ** A Boolean value that indicates whether the TLS security policy is the default. *
* * @return A Boolean value that indicates whether the TLS security policy is the default. */ public Boolean isDefault() { return this.isDefault; } /** ** The description of the TLS security policy. *
* * @param description * The description of the TLS security policy. */ public void setDescription(String description) { this.description = description; } /** ** The description of the TLS security policy. *
* * @return The description of the TLS security policy. */ public String getDescription() { return this.description; } /** ** The description of the TLS security policy. *
* * @param description * The description of the TLS security policy. * @return Returns a reference to this object so that method calls can be chained together. */ public LoadBalancerTlsPolicy withDescription(String description) { setDescription(description); return this; } /** ** The protocols used in a given TLS security policy. *
* * @return The protocols used in a given TLS security policy. */ public java.util.List* The protocols used in a given TLS security policy. *
* * @param protocols * The protocols used in a given TLS security policy. */ public void setProtocols(java.util.Collection* The protocols used in a given TLS security policy. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setProtocols(java.util.Collection)} or {@link #withProtocols(java.util.Collection)} if you want to * override the existing values. *
* * @param protocols * The protocols used in a given TLS security policy. * @return Returns a reference to this object so that method calls can be chained together. */ public LoadBalancerTlsPolicy withProtocols(String... protocols) { if (this.protocols == null) { setProtocols(new java.util.ArrayList* The protocols used in a given TLS security policy. *
* * @param protocols * The protocols used in a given TLS security policy. * @return Returns a reference to this object so that method calls can be chained together. */ public LoadBalancerTlsPolicy withProtocols(java.util.Collection* The ciphers used by the TLS security policy. *
** The ciphers are listed in order of preference. *
* * @return The ciphers used by the TLS security policy. *
* The ciphers are listed in order of preference.
*/
public java.util.List
* The ciphers used by the TLS security policy.
*
* The ciphers are listed in order of preference.
*
* The ciphers are listed in order of preference.
*/
public void setCiphers(java.util.Collection
* The ciphers used by the TLS security policy.
*
* The ciphers are listed in order of preference.
*
* 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.
*
* The ciphers are listed in order of preference.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public LoadBalancerTlsPolicy withCiphers(String... ciphers) {
if (this.ciphers == null) {
setCiphers(new java.util.ArrayList
* The ciphers used by the TLS security policy.
*
* The ciphers are listed in order of preference.
*
* The ciphers are listed in order of preference.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public LoadBalancerTlsPolicy withCiphers(java.util.Collection