/* * 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 an Amazon Lightsail SSL/TLS certificate. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CertificateSummary implements Serializable, Cloneable, StructuredPojo { /** ** The Amazon Resource Name (ARN) of the certificate. *
*/ private String certificateArn; /** ** The name of the certificate. *
*/ private String certificateName; /** ** The domain name of the certificate. *
*/ private String domainName; /** ** An object that describes a certificate in detail. *
*/ private Certificate certificateDetail; /** ** The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer * Guide. *
*/ private java.util.List* The Amazon Resource Name (ARN) of the certificate. *
* * @param certificateArn * The Amazon Resource Name (ARN) of the certificate. */ public void setCertificateArn(String certificateArn) { this.certificateArn = certificateArn; } /** ** The Amazon Resource Name (ARN) of the certificate. *
* * @return The Amazon Resource Name (ARN) of the certificate. */ public String getCertificateArn() { return this.certificateArn; } /** ** The Amazon Resource Name (ARN) of the certificate. *
* * @param certificateArn * The Amazon Resource Name (ARN) of the certificate. * @return Returns a reference to this object so that method calls can be chained together. */ public CertificateSummary withCertificateArn(String certificateArn) { setCertificateArn(certificateArn); return this; } /** ** The name of the certificate. *
* * @param certificateName * The name of the certificate. */ public void setCertificateName(String certificateName) { this.certificateName = certificateName; } /** ** The name of the certificate. *
* * @return The name of the certificate. */ public String getCertificateName() { return this.certificateName; } /** ** The name of the certificate. *
* * @param certificateName * The name of the certificate. * @return Returns a reference to this object so that method calls can be chained together. */ public CertificateSummary withCertificateName(String certificateName) { setCertificateName(certificateName); return this; } /** ** The domain name of the certificate. *
* * @param domainName * The domain name of the certificate. */ public void setDomainName(String domainName) { this.domainName = domainName; } /** ** The domain name of the certificate. *
* * @return The domain name of the certificate. */ public String getDomainName() { return this.domainName; } /** ** The domain name of the certificate. *
* * @param domainName * The domain name of the certificate. * @return Returns a reference to this object so that method calls can be chained together. */ public CertificateSummary withDomainName(String domainName) { setDomainName(domainName); return this; } /** ** An object that describes a certificate in detail. *
* * @param certificateDetail * An object that describes a certificate in detail. */ public void setCertificateDetail(Certificate certificateDetail) { this.certificateDetail = certificateDetail; } /** ** An object that describes a certificate in detail. *
* * @return An object that describes a certificate in detail. */ public Certificate getCertificateDetail() { return this.certificateDetail; } /** ** An object that describes a certificate in detail. *
* * @param certificateDetail * An object that describes a certificate in detail. * @return Returns a reference to this object so that method calls can be chained together. */ public CertificateSummary withCertificateDetail(Certificate certificateDetail) { setCertificateDetail(certificateDetail); return this; } /** ** The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer * Guide. *
* * @return The tag keys and optional values for the resource. For more information about tags in Lightsail, see the * Amazon Lightsail * Developer Guide. */ public java.util.List* The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer * Guide. *
* * @param tags * The tag keys and optional values for the resource. For more information about tags in Lightsail, see the * Amazon Lightsail * Developer Guide. */ public void setTags(java.util.Collection* The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer * Guide. *
** 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. *
* * @param tags * The tag keys and optional values for the resource. For more information about tags in Lightsail, see the * Amazon Lightsail * Developer Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public CertificateSummary withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer * Guide. *
* * @param tags * The tag keys and optional values for the resource. For more information about tags in Lightsail, see the * Amazon Lightsail * Developer Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public CertificateSummary withTags(java.util.Collection