/* * 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.AmazonWebServiceRequest; /** * * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateLoadBalancerTlsCertificateRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The load balancer name where you want to create the SSL/TLS certificate. *
*/ private String loadBalancerName; /** ** The SSL/TLS certificate name. *
** You can have up to 10 certificates in your account at one time. Each Lightsail load balancer can have up to 2 * certificates associated with it at one time. There is also an overall limit to the number of certificates that * can be issue in a 365-day period. For more information, see Limits. *
*/ private String certificateName; /** *
* The domain name (e.g., example.com
) for your SSL/TLS certificate.
*
* An array of strings listing alternative domains and subdomains for your SSL/TLS certificate. Lightsail will
* de-dupe the names for you. You can have a maximum of 9 alternative names (in addition to the 1 primary domain).
* We do not support wildcards (e.g., *.example.com
).
*
* The tag keys and optional values to add to the resource during create. *
*
* Use the TagResource
action to tag a resource after it's created.
*
* The load balancer name where you want to create the SSL/TLS certificate. *
* * @param loadBalancerName * The load balancer name where you want to create the SSL/TLS certificate. */ public void setLoadBalancerName(String loadBalancerName) { this.loadBalancerName = loadBalancerName; } /** ** The load balancer name where you want to create the SSL/TLS certificate. *
* * @return The load balancer name where you want to create the SSL/TLS certificate. */ public String getLoadBalancerName() { return this.loadBalancerName; } /** ** The load balancer name where you want to create the SSL/TLS certificate. *
* * @param loadBalancerName * The load balancer name where you want to create the SSL/TLS certificate. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLoadBalancerTlsCertificateRequest withLoadBalancerName(String loadBalancerName) { setLoadBalancerName(loadBalancerName); return this; } /** ** The SSL/TLS certificate name. *
** You can have up to 10 certificates in your account at one time. Each Lightsail load balancer can have up to 2 * certificates associated with it at one time. There is also an overall limit to the number of certificates that * can be issue in a 365-day period. For more information, see Limits. *
* * @param certificateName * The SSL/TLS certificate name. ** You can have up to 10 certificates in your account at one time. Each Lightsail load balancer can have up * to 2 certificates associated with it at one time. There is also an overall limit to the number of * certificates that can be issue in a 365-day period. For more information, see Limits. */ public void setCertificateName(String certificateName) { this.certificateName = certificateName; } /** *
* The SSL/TLS certificate name. *
** You can have up to 10 certificates in your account at one time. Each Lightsail load balancer can have up to 2 * certificates associated with it at one time. There is also an overall limit to the number of certificates that * can be issue in a 365-day period. For more information, see Limits. *
* * @return The SSL/TLS certificate name. ** You can have up to 10 certificates in your account at one time. Each Lightsail load balancer can have up * to 2 certificates associated with it at one time. There is also an overall limit to the number of * certificates that can be issue in a 365-day period. For more information, see Limits. */ public String getCertificateName() { return this.certificateName; } /** *
* The SSL/TLS certificate name. *
** You can have up to 10 certificates in your account at one time. Each Lightsail load balancer can have up to 2 * certificates associated with it at one time. There is also an overall limit to the number of certificates that * can be issue in a 365-day period. For more information, see Limits. *
* * @param certificateName * The SSL/TLS certificate name. ** You can have up to 10 certificates in your account at one time. Each Lightsail load balancer can have up * to 2 certificates associated with it at one time. There is also an overall limit to the number of * certificates that can be issue in a 365-day period. For more information, see Limits. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLoadBalancerTlsCertificateRequest withCertificateName(String certificateName) { setCertificateName(certificateName); return this; } /** *
* The domain name (e.g., example.com
) for your SSL/TLS certificate.
*
example.com
) for your SSL/TLS certificate.
*/
public void setCertificateDomainName(String certificateDomainName) {
this.certificateDomainName = certificateDomainName;
}
/**
*
* The domain name (e.g., example.com
) for your SSL/TLS certificate.
*
example.com
) for your SSL/TLS certificate.
*/
public String getCertificateDomainName() {
return this.certificateDomainName;
}
/**
*
* The domain name (e.g., example.com
) for your SSL/TLS certificate.
*
example.com
) for your SSL/TLS certificate.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLoadBalancerTlsCertificateRequest withCertificateDomainName(String certificateDomainName) {
setCertificateDomainName(certificateDomainName);
return this;
}
/**
*
* An array of strings listing alternative domains and subdomains for your SSL/TLS certificate. Lightsail will
* de-dupe the names for you. You can have a maximum of 9 alternative names (in addition to the 1 primary domain).
* We do not support wildcards (e.g., *.example.com
).
*
*.example.com
).
*/
public java.util.List
* An array of strings listing alternative domains and subdomains for your SSL/TLS certificate. Lightsail will
* de-dupe the names for you. You can have a maximum of 9 alternative names (in addition to the 1 primary domain).
* We do not support wildcards (e.g., *.example.com
).
*
*.example.com
).
*/
public void setCertificateAlternativeNames(java.util.Collection
* An array of strings listing alternative domains and subdomains for your SSL/TLS certificate. Lightsail will
* de-dupe the names for you. You can have a maximum of 9 alternative names (in addition to the 1 primary domain).
* We do not support wildcards (e.g., *.example.com
).
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setCertificateAlternativeNames(java.util.Collection)} or * {@link #withCertificateAlternativeNames(java.util.Collection)} if you want to override the existing values. *
* * @param certificateAlternativeNames * An array of strings listing alternative domains and subdomains for your SSL/TLS certificate. Lightsail * will de-dupe the names for you. You can have a maximum of 9 alternative names (in addition to the 1 * primary domain). We do not support wildcards (e.g.,*.example.com
).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLoadBalancerTlsCertificateRequest withCertificateAlternativeNames(String... certificateAlternativeNames) {
if (this.certificateAlternativeNames == null) {
setCertificateAlternativeNames(new java.util.ArrayList
* An array of strings listing alternative domains and subdomains for your SSL/TLS certificate. Lightsail will
* de-dupe the names for you. You can have a maximum of 9 alternative names (in addition to the 1 primary domain).
* We do not support wildcards (e.g., *.example.com
).
*
*.example.com
).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLoadBalancerTlsCertificateRequest withCertificateAlternativeNames(java.util.Collection* The tag keys and optional values to add to the resource during create. *
*
* Use the TagResource
action to tag a resource after it's created.
*
* Use the
* The tag keys and optional values to add to the resource during create.
*
* Use the TagResource
action to tag a resource after it's created.
*/
public java.util.ListTagResource
action to tag a resource after it's created.
*
* Use the
* The tag keys and optional values to add to the resource during create.
*
* Use the
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the
* existing values.
* TagResource
action to tag a resource after it's created.
*/
public void setTags(java.util.CollectionTagResource
action to tag a resource after it's created.
*
* Use the
* The tag keys and optional values to add to the resource during create.
*
* Use the TagResource
action to tag a resource after it's created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLoadBalancerTlsCertificateRequest withTags(Tag... tags) {
if (this.tags == null) {
setTags(new java.util.ArrayListTagResource
action to tag a resource after it's created.
*
* Use the TagResource
action to tag a resource after it's created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLoadBalancerTlsCertificateRequest withTags(java.util.Collection