Class InstanceEvents.EC2SpotInstanceInterruptionWarning.EC2SpotInstanceInterruptionWarningProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.ec2.events.InstanceEvents.EC2SpotInstanceInterruptionWarning.EC2SpotInstanceInterruptionWarningProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<InstanceEvents.EC2SpotInstanceInterruptionWarning.EC2SpotInstanceInterruptionWarningProps>
- Enclosing interface:
InstanceEvents.EC2SpotInstanceInterruptionWarning.EC2SpotInstanceInterruptionWarningProps
@Stability(Experimental)
public static final class InstanceEvents.EC2SpotInstanceInterruptionWarning.EC2SpotInstanceInterruptionWarningProps.Builder
extends Object
implements software.amazon.jsii.Builder<InstanceEvents.EC2SpotInstanceInterruptionWarning.EC2SpotInstanceInterruptionWarningProps>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.eventMetadata(AWSEventMetadataProps eventMetadata) instanceAction(List<String> instanceAction) instanceId(List<String> instanceId)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
eventMetadata
@Stability(Experimental) public InstanceEvents.EC2SpotInstanceInterruptionWarning.EC2SpotInstanceInterruptionWarningProps.Builder eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofInstanceEvents.EC2SpotInstanceInterruptionWarning.EC2SpotInstanceInterruptionWarningProps.getEventMetadata()- Parameters:
eventMetadata- EventBridge event metadata.- Returns:
this
-
instanceAction
@Stability(Experimental) public InstanceEvents.EC2SpotInstanceInterruptionWarning.EC2SpotInstanceInterruptionWarningProps.Builder instanceAction(List<String> instanceAction) Sets the value ofInstanceEvents.EC2SpotInstanceInterruptionWarning.EC2SpotInstanceInterruptionWarningProps.getInstanceAction()- Parameters:
instanceAction- instance-action property. Specify an array of string values to match this event if the actual value of instance-action is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
instanceId
@Stability(Experimental) public InstanceEvents.EC2SpotInstanceInterruptionWarning.EC2SpotInstanceInterruptionWarningProps.Builder instanceId(List<String> instanceId) Sets the value ofInstanceEvents.EC2SpotInstanceInterruptionWarning.EC2SpotInstanceInterruptionWarningProps.getInstanceId()- Parameters:
instanceId- instance-id property. Specify an array of string values to match this event if the actual value of instance-id is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
build
@Stability(Experimental) public InstanceEvents.EC2SpotInstanceInterruptionWarning.EC2SpotInstanceInterruptionWarningProps build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<InstanceEvents.EC2SpotInstanceInterruptionWarning.EC2SpotInstanceInterruptionWarningProps>- Returns:
- a new instance of
InstanceEvents.EC2SpotInstanceInterruptionWarning.EC2SpotInstanceInterruptionWarningProps - Throws:
NullPointerException- if any required attribute was not provided
-