Class DLMPolicyStateChange.DLMPolicyStateChangeProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.dlm.events.DLMPolicyStateChange.DLMPolicyStateChangeProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DLMPolicyStateChange.DLMPolicyStateChangeProps>
- Enclosing interface:
DLMPolicyStateChange.DLMPolicyStateChangeProps
@Stability(Experimental)
public static final class DLMPolicyStateChange.DLMPolicyStateChangeProps.Builder
extends Object
implements software.amazon.jsii.Builder<DLMPolicyStateChange.DLMPolicyStateChangeProps>
A builder for
DLMPolicyStateChange.DLMPolicyStateChangeProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofDLMPolicyStateChange.DLMPolicyStateChangeProps.getCause()eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofDLMPolicyStateChange.DLMPolicyStateChangeProps.getEventMetadata()Sets the value ofDLMPolicyStateChange.DLMPolicyStateChangeProps.getPolicyId()Sets the value ofDLMPolicyStateChange.DLMPolicyStateChangeProps.getState()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cause
@Stability(Experimental) public DLMPolicyStateChange.DLMPolicyStateChangeProps.Builder cause(List<String> cause) Sets the value ofDLMPolicyStateChange.DLMPolicyStateChangeProps.getCause()- Parameters:
cause- cause property. Specify an array of string values to match this event if the actual value of cause is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
eventMetadata
@Stability(Experimental) public DLMPolicyStateChange.DLMPolicyStateChangeProps.Builder eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofDLMPolicyStateChange.DLMPolicyStateChangeProps.getEventMetadata()- Parameters:
eventMetadata- EventBridge event metadata.- Returns:
this
-
policyId
@Stability(Experimental) public DLMPolicyStateChange.DLMPolicyStateChangeProps.Builder policyId(List<String> policyId) Sets the value ofDLMPolicyStateChange.DLMPolicyStateChangeProps.getPolicyId()- Parameters:
policyId- policy_id property. Specify an array of string values to match this event if the actual value of policy_id is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
state
@Stability(Experimental) public DLMPolicyStateChange.DLMPolicyStateChangeProps.Builder state(List<String> state) Sets the value ofDLMPolicyStateChange.DLMPolicyStateChangeProps.getState()- Parameters:
state- state property. Specify an array of string values to match this event if the actual value of state 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<DLMPolicyStateChange.DLMPolicyStateChangeProps>- Returns:
- a new instance of
DLMPolicyStateChange.DLMPolicyStateChangeProps - Throws:
NullPointerException- if any required attribute was not provided
-