Class AWSAPICallViaCloudTrail.PolicyDetailsItem.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.dlm.events.AWSAPICallViaCloudTrail.PolicyDetailsItem.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AWSAPICallViaCloudTrail.PolicyDetailsItem>
- Enclosing interface:
AWSAPICallViaCloudTrail.PolicyDetailsItem
@Stability(Experimental)
public static final class AWSAPICallViaCloudTrail.PolicyDetailsItem.Builder
extends Object
implements software.amazon.jsii.Builder<AWSAPICallViaCloudTrail.PolicyDetailsItem>
A builder for
AWSAPICallViaCloudTrail.PolicyDetailsItem-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofAWSAPICallViaCloudTrail.PolicyDetailsItem.getCopyTags()createRule(AWSAPICallViaCloudTrail.CreateRule createRule) Sets the value ofAWSAPICallViaCloudTrail.PolicyDetailsItem.getCreateRule()fastRestoreRule(AWSAPICallViaCloudTrail.FastRestoreRule fastRestoreRule) Sets the value ofAWSAPICallViaCloudTrail.PolicyDetailsItem.getFastRestoreRule()Sets the value ofAWSAPICallViaCloudTrail.PolicyDetailsItem.getName()retainRule(AWSAPICallViaCloudTrail.RetainRule retainRule) Sets the value ofAWSAPICallViaCloudTrail.PolicyDetailsItem.getRetainRule()tagsToAdd(List<? extends AWSAPICallViaCloudTrail.PolicyDetailsItemItem> tagsToAdd) Sets the value ofAWSAPICallViaCloudTrail.PolicyDetailsItem.getTagsToAdd()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copyTags
@Stability(Experimental) public AWSAPICallViaCloudTrail.PolicyDetailsItem.Builder copyTags(List<String> copyTags) Sets the value ofAWSAPICallViaCloudTrail.PolicyDetailsItem.getCopyTags()- Parameters:
copyTags- CopyTags property. Specify an array of string values to match this event if the actual value of CopyTags is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
createRule
@Stability(Experimental) public AWSAPICallViaCloudTrail.PolicyDetailsItem.Builder createRule(AWSAPICallViaCloudTrail.CreateRule createRule) Sets the value ofAWSAPICallViaCloudTrail.PolicyDetailsItem.getCreateRule()- Parameters:
createRule- CreateRule property. Specify an array of string values to match this event if the actual value of CreateRule is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
fastRestoreRule
@Stability(Experimental) public AWSAPICallViaCloudTrail.PolicyDetailsItem.Builder fastRestoreRule(AWSAPICallViaCloudTrail.FastRestoreRule fastRestoreRule) Sets the value ofAWSAPICallViaCloudTrail.PolicyDetailsItem.getFastRestoreRule()- Parameters:
fastRestoreRule- FastRestoreRule property. Specify an array of string values to match this event if the actual value of FastRestoreRule is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
name
@Stability(Experimental) public AWSAPICallViaCloudTrail.PolicyDetailsItem.Builder name(List<String> name) Sets the value ofAWSAPICallViaCloudTrail.PolicyDetailsItem.getName()- Parameters:
name- Name property. Specify an array of string values to match this event if the actual value of Name is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
retainRule
@Stability(Experimental) public AWSAPICallViaCloudTrail.PolicyDetailsItem.Builder retainRule(AWSAPICallViaCloudTrail.RetainRule retainRule) Sets the value ofAWSAPICallViaCloudTrail.PolicyDetailsItem.getRetainRule()- Parameters:
retainRule- RetainRule property. Specify an array of string values to match this event if the actual value of RetainRule is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
tagsToAdd
@Stability(Experimental) public AWSAPICallViaCloudTrail.PolicyDetailsItem.Builder tagsToAdd(List<? extends AWSAPICallViaCloudTrail.PolicyDetailsItemItem> tagsToAdd) Sets the value ofAWSAPICallViaCloudTrail.PolicyDetailsItem.getTagsToAdd()- Parameters:
tagsToAdd- TagsToAdd property. Specify an array of string values to match this event if the actual value of TagsToAdd is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AWSAPICallViaCloudTrail.PolicyDetailsItem>- Returns:
- a new instance of
AWSAPICallViaCloudTrail.PolicyDetailsItem - Throws:
NullPointerException- if any required attribute was not provided
-