Class CfnCACertificateProps.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnCACertificateProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCACertificateProps>
- Enclosing interface:
CfnCACertificateProps
@Stability(Stable)
public static final class CfnCACertificateProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCACertificateProps>
A builder for
CfnCACertificateProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionautoRegistrationStatus
(String autoRegistrationStatus) Sets the value ofCfnCACertificateProps.getAutoRegistrationStatus()
build()
Builds the configured instance.caCertificatePem
(String caCertificatePem) Sets the value ofCfnCACertificateProps.getCaCertificatePem()
certificateMode
(String certificateMode) Sets the value ofCfnCACertificateProps.getCertificateMode()
registrationConfig
(IResolvable registrationConfig) Sets the value ofCfnCACertificateProps.getRegistrationConfig()
registrationConfig
(CfnCACertificate.RegistrationConfigProperty registrationConfig) Sets the value ofCfnCACertificateProps.getRegistrationConfig()
removeAutoRegistration
(Boolean removeAutoRegistration) Sets the value ofCfnCACertificateProps.getRemoveAutoRegistration()
removeAutoRegistration
(IResolvable removeAutoRegistration) Sets the value ofCfnCACertificateProps.getRemoveAutoRegistration()
Sets the value ofCfnCACertificateProps.getStatus()
Sets the value ofCfnCACertificateProps.getTags()
verificationCertificatePem
(String verificationCertificatePem) Sets the value ofCfnCACertificateProps.getVerificationCertificatePem()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
caCertificatePem
Sets the value ofCfnCACertificateProps.getCaCertificatePem()
- Parameters:
caCertificatePem
- The certificate data in PEM format. This parameter is required.- Returns:
this
-
status
Sets the value ofCfnCACertificateProps.getStatus()
- Parameters:
status
- The status of the CA certificate. This parameter is required. Valid values are "ACTIVE" and "INACTIVE".- Returns:
this
-
autoRegistrationStatus
@Stability(Stable) public CfnCACertificateProps.Builder autoRegistrationStatus(String autoRegistrationStatus) Sets the value ofCfnCACertificateProps.getAutoRegistrationStatus()
- Parameters:
autoRegistrationStatus
- Whether the CA certificate is configured for auto registration of device certificates. Valid values are "ENABLE" and "DISABLE".- Returns:
this
-
certificateMode
Sets the value ofCfnCACertificateProps.getCertificateMode()
- Parameters:
certificateMode
- The mode of the CA. All the device certificates that are registered using this CA will be registered in the same mode as the CA. For more information about certificate mode for device certificates, see certificate mode .Valid values are "DEFAULT" and "SNI_ONLY".
- Returns:
this
-
registrationConfig
@Stability(Stable) public CfnCACertificateProps.Builder registrationConfig(IResolvable registrationConfig) Sets the value ofCfnCACertificateProps.getRegistrationConfig()
- Parameters:
registrationConfig
- Information about the registration configuration.- Returns:
this
-
registrationConfig
@Stability(Stable) public CfnCACertificateProps.Builder registrationConfig(CfnCACertificate.RegistrationConfigProperty registrationConfig) Sets the value ofCfnCACertificateProps.getRegistrationConfig()
- Parameters:
registrationConfig
- Information about the registration configuration.- Returns:
this
-
removeAutoRegistration
@Stability(Stable) public CfnCACertificateProps.Builder removeAutoRegistration(Boolean removeAutoRegistration) Sets the value ofCfnCACertificateProps.getRemoveAutoRegistration()
- Parameters:
removeAutoRegistration
- If true, removes auto registration.- Returns:
this
-
removeAutoRegistration
@Stability(Stable) public CfnCACertificateProps.Builder removeAutoRegistration(IResolvable removeAutoRegistration) Sets the value ofCfnCACertificateProps.getRemoveAutoRegistration()
- Parameters:
removeAutoRegistration
- If true, removes auto registration.- Returns:
this
-
tags
Sets the value ofCfnCACertificateProps.getTags()
- Parameters:
tags
- An array of key-value pairs to apply to this resource. For more information, see Tag .- Returns:
this
-
verificationCertificatePem
@Stability(Stable) public CfnCACertificateProps.Builder verificationCertificatePem(String verificationCertificatePem) Sets the value ofCfnCACertificateProps.getVerificationCertificatePem()
- Parameters:
verificationCertificatePem
- The private key verification certificate.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCACertificateProps>
- Returns:
- a new instance of
CfnCACertificateProps
- Throws:
NullPointerException
- if any required attribute was not provided
-