Class CfnEncryptionConfiguration.ConfigurationDetailsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnEncryptionConfiguration.ConfigurationDetailsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEncryptionConfiguration.ConfigurationDetailsProperty>
- Enclosing interface:
CfnEncryptionConfiguration.ConfigurationDetailsProperty
@Stability(Stable)
public static final class CfnEncryptionConfiguration.ConfigurationDetailsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEncryptionConfiguration.ConfigurationDetailsProperty>
A builder for
CfnEncryptionConfiguration.ConfigurationDetailsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.configurationStatus(String configurationStatus) Sets the value ofCfnEncryptionConfiguration.ConfigurationDetailsProperty.getErrorCode()errorMessage(String errorMessage)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
configurationStatus
@Stability(Stable) public CfnEncryptionConfiguration.ConfigurationDetailsProperty.Builder configurationStatus(String configurationStatus) - Parameters:
configurationStatus- The health status of KMS key and AWS access role. If either KMS key or AWS access role isUNHEALTHY, the return value will beUNHEALTHY. To use a customer managed KMS key, the value ofconfigurationStatusmust beHEALTHY.- Returns:
this
-
errorCode
@Stability(Stable) public CfnEncryptionConfiguration.ConfigurationDetailsProperty.Builder errorCode(String errorCode) Sets the value ofCfnEncryptionConfiguration.ConfigurationDetailsProperty.getErrorCode()- Parameters:
errorCode- The error code that indicates either the KMS key or the AWS access role isUNHEALTHY. Valid values:KMS_KEY_VALIDATION_ERRORandROLE_VALIDATION_ERROR.- Returns:
this
-
errorMessage
@Stability(Stable) public CfnEncryptionConfiguration.ConfigurationDetailsProperty.Builder errorMessage(String errorMessage) - Parameters:
errorMessage- The detailed error message that corresponds to theerrorCode.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEncryptionConfiguration.ConfigurationDetailsProperty>- Returns:
- a new instance of
CfnEncryptionConfiguration.ConfigurationDetailsProperty - Throws:
NullPointerException- if any required attribute was not provided
-