/* * 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.transfer.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 ImportCertificateRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* Specifies whether this certificate is used for signing or encryption. *
*/ private String usage; /** *
* For the CLI, provide a file path for a certificate in URI format. For example,
* --certificate file://encryption-cert.pem
. Alternatively, you can provide the raw content.
*
* For the SDK, specify the raw content of a certificate file. For example,
* --certificate "`cat encryption-cert.pem`"
.
*
* An optional list of certificates that make up the chain for the certificate that's being imported. *
*/ private String certificateChain; /** *
* For the CLI, provide a file path for a private key in URI format.For example,
* --private-key file://encryption-key.pem
. Alternatively, you can provide the raw content of the
* private key file.
*
* For the SDK, specify the raw content of a private key file. For example,
* --private-key "`cat encryption-key.pem`"
*
* An optional date that specifies when the certificate becomes active. *
*/ private java.util.Date activeDate; /** ** An optional date that specifies when the certificate becomes inactive. *
*/ private java.util.Date inactiveDate; /** ** A short description that helps identify the certificate. *
*/ private String description; /** ** Key-value pairs that can be used to group and search for certificates. *
*/ private java.util.List* Specifies whether this certificate is used for signing or encryption. *
* * @param usage * Specifies whether this certificate is used for signing or encryption. * @see CertificateUsageType */ public void setUsage(String usage) { this.usage = usage; } /** ** Specifies whether this certificate is used for signing or encryption. *
* * @return Specifies whether this certificate is used for signing or encryption. * @see CertificateUsageType */ public String getUsage() { return this.usage; } /** ** Specifies whether this certificate is used for signing or encryption. *
* * @param usage * Specifies whether this certificate is used for signing or encryption. * @return Returns a reference to this object so that method calls can be chained together. * @see CertificateUsageType */ public ImportCertificateRequest withUsage(String usage) { setUsage(usage); return this; } /** ** Specifies whether this certificate is used for signing or encryption. *
* * @param usage * Specifies whether this certificate is used for signing or encryption. * @return Returns a reference to this object so that method calls can be chained together. * @see CertificateUsageType */ public ImportCertificateRequest withUsage(CertificateUsageType usage) { this.usage = usage.toString(); return this; } /** *
* For the CLI, provide a file path for a certificate in URI format. For example,
* --certificate file://encryption-cert.pem
. Alternatively, you can provide the raw content.
*
* For the SDK, specify the raw content of a certificate file. For example,
* --certificate "`cat encryption-cert.pem`"
.
*
* For the CLI, provide a file path for a certificate in URI format. For example,
* --certificate file://encryption-cert.pem
. Alternatively, you can provide the raw content.
*
* For the SDK, specify the raw content of a certificate file. For example,
* --certificate "`cat encryption-cert.pem`"
.
*
* For the CLI, provide a file path for a certificate in URI format. For example,
* --certificate file://encryption-cert.pem
. Alternatively, you can provide the raw content.
*
* For the SDK, specify the raw content of a certificate file. For example,
* --certificate "`cat encryption-cert.pem`"
.
*
* For the CLI, provide a file path for a certificate in URI format. For example,
* --certificate file://encryption-cert.pem
. Alternatively, you can provide the raw content.
*
* For the SDK, specify the raw content of a certificate file. For example,
* --certificate "`cat encryption-cert.pem`"
.
*
* For the CLI, provide a file path for a certificate in URI format. For example,
* --certificate file://encryption-cert.pem
. Alternatively, you can provide the raw content.
*
* For the SDK, specify the raw content of a certificate file. For example,
* --certificate "`cat encryption-cert.pem`"
.
*
* For the CLI, provide a file path for a certificate in URI format. For example,
* --certificate file://encryption-cert.pem
. Alternatively, you can provide the raw content.
*
* For the SDK, specify the raw content of a certificate file. For example,
* --certificate "`cat encryption-cert.pem`"
.
*
* An optional list of certificates that make up the chain for the certificate that's being imported. *
* * @param certificateChain * An optional list of certificates that make up the chain for the certificate that's being imported. */ public void setCertificateChain(String certificateChain) { this.certificateChain = certificateChain; } /** ** An optional list of certificates that make up the chain for the certificate that's being imported. *
* * @return An optional list of certificates that make up the chain for the certificate that's being imported. */ public String getCertificateChain() { return this.certificateChain; } /** ** An optional list of certificates that make up the chain for the certificate that's being imported. *
* * @param certificateChain * An optional list of certificates that make up the chain for the certificate that's being imported. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportCertificateRequest withCertificateChain(String certificateChain) { setCertificateChain(certificateChain); return this; } /** *
* For the CLI, provide a file path for a private key in URI format.For example,
* --private-key file://encryption-key.pem
. Alternatively, you can provide the raw content of the
* private key file.
*
* For the SDK, specify the raw content of a private key file. For example,
* --private-key "`cat encryption-key.pem`"
*
* For the CLI, provide a file path for a private key in URI format.For example,
* --private-key file://encryption-key.pem
. Alternatively, you can provide the raw content of
* the private key file.
*
* For the SDK, specify the raw content of a private key file. For example,
* --private-key "`cat encryption-key.pem`"
*
* For the CLI, provide a file path for a private key in URI format.For example,
* --private-key file://encryption-key.pem
. Alternatively, you can provide the raw content of the
* private key file.
*
* For the SDK, specify the raw content of a private key file. For example,
* --private-key "`cat encryption-key.pem`"
*
* For the CLI, provide a file path for a private key in URI format.For example,
* --private-key file://encryption-key.pem
. Alternatively, you can provide the raw content of
* the private key file.
*
* For the SDK, specify the raw content of a private key file. For example,
* --private-key "`cat encryption-key.pem`"
*
* For the CLI, provide a file path for a private key in URI format.For example,
* --private-key file://encryption-key.pem
. Alternatively, you can provide the raw content of the
* private key file.
*
* For the SDK, specify the raw content of a private key file. For example,
* --private-key "`cat encryption-key.pem`"
*
* For the CLI, provide a file path for a private key in URI format.For example,
* --private-key file://encryption-key.pem
. Alternatively, you can provide the raw content of
* the private key file.
*
* For the SDK, specify the raw content of a private key file. For example,
* --private-key "`cat encryption-key.pem`"
*
* An optional date that specifies when the certificate becomes active. *
* * @param activeDate * An optional date that specifies when the certificate becomes active. */ public void setActiveDate(java.util.Date activeDate) { this.activeDate = activeDate; } /** ** An optional date that specifies when the certificate becomes active. *
* * @return An optional date that specifies when the certificate becomes active. */ public java.util.Date getActiveDate() { return this.activeDate; } /** ** An optional date that specifies when the certificate becomes active. *
* * @param activeDate * An optional date that specifies when the certificate becomes active. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportCertificateRequest withActiveDate(java.util.Date activeDate) { setActiveDate(activeDate); return this; } /** ** An optional date that specifies when the certificate becomes inactive. *
* * @param inactiveDate * An optional date that specifies when the certificate becomes inactive. */ public void setInactiveDate(java.util.Date inactiveDate) { this.inactiveDate = inactiveDate; } /** ** An optional date that specifies when the certificate becomes inactive. *
* * @return An optional date that specifies when the certificate becomes inactive. */ public java.util.Date getInactiveDate() { return this.inactiveDate; } /** ** An optional date that specifies when the certificate becomes inactive. *
* * @param inactiveDate * An optional date that specifies when the certificate becomes inactive. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportCertificateRequest withInactiveDate(java.util.Date inactiveDate) { setInactiveDate(inactiveDate); return this; } /** ** A short description that helps identify the certificate. *
* * @param description * A short description that helps identify the certificate. */ public void setDescription(String description) { this.description = description; } /** ** A short description that helps identify the certificate. *
* * @return A short description that helps identify the certificate. */ public String getDescription() { return this.description; } /** ** A short description that helps identify the certificate. *
* * @param description * A short description that helps identify the certificate. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportCertificateRequest withDescription(String description) { setDescription(description); return this; } /** ** Key-value pairs that can be used to group and search for certificates. *
* * @return Key-value pairs that can be used to group and search for certificates. */ public java.util.List* Key-value pairs that can be used to group and search for certificates. *
* * @param tags * Key-value pairs that can be used to group and search for certificates. */ public void setTags(java.util.Collection* Key-value pairs that can be used to group and search for certificates. *
** 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 * Key-value pairs that can be used to group and search for certificates. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportCertificateRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* Key-value pairs that can be used to group and search for certificates. *
* * @param tags * Key-value pairs that can be used to group and search for certificates. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportCertificateRequest withTags(java.util.Collection