Class DataProtectionPolicyConfig.Builder
java.lang.Object
software.amazon.awscdk.services.logs.DataProtectionPolicyConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DataProtectionPolicyConfig>
- Enclosing interface:
DataProtectionPolicyConfig
@Stability(Stable)
public static final class DataProtectionPolicyConfig.Builder
extends Object
implements software.amazon.jsii.Builder<DataProtectionPolicyConfig>
A builder for
DataProtectionPolicyConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofDataProtectionPolicyConfig.getDescription()Sets the value ofDataProtectionPolicyConfig.getName()Sets the value ofDataProtectionPolicyConfig.getStatement()Sets the value ofDataProtectionPolicyConfig.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofDataProtectionPolicyConfig.getDescription()- Parameters:
description- Description of the data protection policy. This parameter is required.- Returns:
this
-
name
Sets the value ofDataProtectionPolicyConfig.getName()- Parameters:
name- Name of the data protection policy. This parameter is required.- Returns:
this
-
statement
Sets the value ofDataProtectionPolicyConfig.getStatement()- Parameters:
statement- Statements within the data protection policy. This parameter is required. Must contain one Audit and one Redact statement- Returns:
this
-
version
Sets the value ofDataProtectionPolicyConfig.getVersion()- Parameters:
version- Version of the data protection policy. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DataProtectionPolicyConfig>- Returns:
- a new instance of
DataProtectionPolicyConfig - Throws:
NullPointerException- if any required attribute was not provided
-