Class CfnPolicyAssociationMixinProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.securityhub.mixins.CfnPolicyAssociationMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPolicyAssociationMixinProps>
- Enclosing interface:
CfnPolicyAssociationMixinProps
@Stability(Stable)
public static final class CfnPolicyAssociationMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPolicyAssociationMixinProps>
A builder for
CfnPolicyAssociationMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.configurationPolicyId(String configurationPolicyId) Sets the value ofCfnPolicyAssociationMixinProps.getConfigurationPolicyId()Sets the value ofCfnPolicyAssociationMixinProps.getTargetId()targetType(String targetType) Sets the value ofCfnPolicyAssociationMixinProps.getTargetType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
configurationPolicyId
@Stability(Stable) public CfnPolicyAssociationMixinProps.Builder configurationPolicyId(String configurationPolicyId) Sets the value ofCfnPolicyAssociationMixinProps.getConfigurationPolicyId()- Parameters:
configurationPolicyId- The universally unique identifier (UUID) of the configuration policy. A self-managed configuration has no UUID. The identifier of a self-managed configuration isSELF_MANAGED_SECURITY_HUB.- Returns:
this
-
targetId
Sets the value ofCfnPolicyAssociationMixinProps.getTargetId()- Parameters:
targetId- The identifier of the target account, organizational unit, or the root.- Returns:
this
-
targetType
Sets the value ofCfnPolicyAssociationMixinProps.getTargetType()- Parameters:
targetType- Specifies whether the target is an AWS account , organizational unit, or the root.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPolicyAssociationMixinProps>- Returns:
- a new instance of
CfnPolicyAssociationMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-