Class CfnCertificateProps.Builder
java.lang.Object
software.amazon.awscdk.services.transfer.CfnCertificateProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCertificateProps>
- Enclosing interface:
- CfnCertificateProps
@Stability(Stable)
public static final class CfnCertificateProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCertificateProps>
A builder for
CfnCertificateProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactiveDate(String activeDate) Sets the value ofCfnCertificateProps.getActiveDate()build()Builds the configured instance.certificate(String certificate) Sets the value ofCfnCertificateProps.getCertificate()certificateChain(String certificateChain) Sets the value ofCfnCertificateProps.getCertificateChain()description(String description) Sets the value ofCfnCertificateProps.getDescription()inactiveDate(String inactiveDate) Sets the value ofCfnCertificateProps.getInactiveDate()privateKey(String privateKey) Sets the value ofCfnCertificateProps.getPrivateKey()Sets the value ofCfnCertificateProps.getTags()Sets the value ofCfnCertificateProps.getUsage()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
certificate
Sets the value ofCfnCertificateProps.getCertificate()- Parameters:
certificate- The file name for the certificate. This parameter is required.- Returns:
this
-
usage
Sets the value ofCfnCertificateProps.getUsage()- Parameters:
usage- Specifies whether this certificate is used for signing or encryption. This parameter is required.- Returns:
this
-
activeDate
Sets the value ofCfnCertificateProps.getActiveDate()- Parameters:
activeDate- An optional date that specifies when the certificate becomes active.- Returns:
this
-
certificateChain
Sets the value ofCfnCertificateProps.getCertificateChain()- Parameters:
certificateChain- The list of certificates that make up the chain for the certificate.- Returns:
this
-
description
Sets the value ofCfnCertificateProps.getDescription()- Parameters:
description- The name or description that's used to identity the certificate.- Returns:
this
-
inactiveDate
Sets the value ofCfnCertificateProps.getInactiveDate()- Parameters:
inactiveDate- An optional date that specifies when the certificate becomes inactive.- Returns:
this
-
privateKey
Sets the value ofCfnCertificateProps.getPrivateKey()- Parameters:
privateKey- The file that contains the private key for the certificate that's being imported.- Returns:
this
-
tags
Sets the value ofCfnCertificateProps.getTags()- Parameters:
tags- Key-value pairs that can be used to group and search for certificates.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCertificateProps>- Returns:
- a new instance of
CfnCertificateProps - Throws:
NullPointerException- if any required attribute was not provided
-