Class CfnFramework.ControlScopeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.backup.CfnFramework.ControlScopeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFramework.ControlScopeProperty>
- Enclosing interface:
CfnFramework.ControlScopeProperty
@Stability(Stable)
public static final class CfnFramework.ControlScopeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFramework.ControlScopeProperty>
A builder for
CfnFramework.ControlScopeProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.complianceResourceIds(List<String> complianceResourceIds) Sets the value ofCfnFramework.ControlScopeProperty.getComplianceResourceIds()complianceResourceTypes(List<String> complianceResourceTypes) Sets the value ofCfnFramework.ControlScopeProperty.getComplianceResourceTypes()Sets the value ofCfnFramework.ControlScopeProperty.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
complianceResourceIds
@Stability(Stable) public CfnFramework.ControlScopeProperty.Builder complianceResourceIds(List<String> complianceResourceIds) Sets the value ofCfnFramework.ControlScopeProperty.getComplianceResourceIds()- Parameters:
complianceResourceIds- The ID of the only AWS resource that you want your control scope to contain.- Returns:
this
-
complianceResourceTypes
@Stability(Stable) public CfnFramework.ControlScopeProperty.Builder complianceResourceTypes(List<String> complianceResourceTypes) Sets the value ofCfnFramework.ControlScopeProperty.getComplianceResourceTypes()- Parameters:
complianceResourceTypes- Describes whether the control scope includes one or more types of resources, such asEFSorRDS.- Returns:
this
-
tags
@Stability(Stable) public CfnFramework.ControlScopeProperty.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnFramework.ControlScopeProperty.getTags()- Parameters:
tags- The tag key-value pair applied to those AWS resources that you want to trigger an evaluation for a rule. A maximum of one key-value pair can be provided. The tag value is optional, but it cannot be an empty string if you are creating or editing a framework from the console (though the value can be an empty string when included in a CloudFormation template).The structure to assign a tag is:
[{"Key":"string","Value":"string"}].- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFramework.ControlScopeProperty>- Returns:
- a new instance of
CfnFramework.ControlScopeProperty - Throws:
NullPointerException- if any required attribute was not provided
-