Class InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.ec2.events.InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem>
- Enclosing interface:
InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem
@Stability(Experimental)
public static final class InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.Builder
extends Object
implements software.amazon.jsii.Builder<InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem>
A builder for
InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionamiLaunchIndex(List<String> amiLaunchIndex) architecture(List<String> architecture) blockDeviceMapping(List<String> blockDeviceMapping) build()Builds the configured instance.capacityReservationSpecification(InstanceEvents.AWSAPICallViaCloudTrail.CapacityReservationSpecification capacityReservationSpecification) clientToken(List<String> clientToken) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.getClientToken()Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.getCpuOptions()ebsOptimized(List<String> ebsOptimized) enclaveOptions(InstanceEvents.AWSAPICallViaCloudTrail.EnclaveOptions enclaveOptions) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.getGroupSet()hypervisor(List<String> hypervisor) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.getHypervisor()Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.getImageId()instanceId(List<String> instanceId) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.getInstanceId()instanceLifecycle(List<String> instanceLifecycle) instanceType(List<String> instanceType) launchTime(List<String> launchTime) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.getLaunchTime()Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.getMonitoring()networkInterfaceSet(InstanceEvents.AWSAPICallViaCloudTrail.NetworkInterfaceSet1 networkInterfaceSet) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.getPlacement()privateIpAddress(List<String> privateIpAddress) productCodes(List<String> productCodes) rootDeviceName(List<String> rootDeviceName) rootDeviceType(List<String> rootDeviceType) sourceDestCheck(List<String> sourceDestCheck) spotInstanceRequestId(List<String> spotInstanceRequestId) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.getStateReason()Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.getSubnetId()Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.getTagSet()virtualizationType(List<String> virtualizationType) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
amiLaunchIndex
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.Builder amiLaunchIndex(List<String> amiLaunchIndex) - Parameters:
amiLaunchIndex- amiLaunchIndex property. Specify an array of string values to match this event if the actual value of amiLaunchIndex is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
architecture
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.Builder architecture(List<String> architecture) - Parameters:
architecture- architecture property. Specify an array of string values to match this event if the actual value of architecture is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
blockDeviceMapping
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.Builder blockDeviceMapping(List<String> blockDeviceMapping) - Parameters:
blockDeviceMapping- blockDeviceMapping property. Specify an array of string values to match this event if the actual value of blockDeviceMapping is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
capacityReservationSpecification
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.Builder capacityReservationSpecification(InstanceEvents.AWSAPICallViaCloudTrail.CapacityReservationSpecification capacityReservationSpecification) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.getCapacityReservationSpecification()- Parameters:
capacityReservationSpecification- capacityReservationSpecification property. Specify an array of string values to match this event if the actual value of capacityReservationSpecification is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
clientToken
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.Builder clientToken(List<String> clientToken) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.getClientToken()- Parameters:
clientToken- clientToken property. Specify an array of string values to match this event if the actual value of clientToken is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
cpuOptions
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.Builder cpuOptions(InstanceEvents.AWSAPICallViaCloudTrail.CpuOptions cpuOptions) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.getCpuOptions()- Parameters:
cpuOptions- cpuOptions property. Specify an array of string values to match this event if the actual value of cpuOptions is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
currentState
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.Builder currentState(InstanceEvents.AWSAPICallViaCloudTrail.InstanceState currentState) - Parameters:
currentState- currentState property. Specify an array of string values to match this event if the actual value of currentState is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
ebsOptimized
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.Builder ebsOptimized(List<String> ebsOptimized) - Parameters:
ebsOptimized- ebsOptimized property. Specify an array of string values to match this event if the actual value of ebsOptimized is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
enclaveOptions
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.Builder enclaveOptions(InstanceEvents.AWSAPICallViaCloudTrail.EnclaveOptions enclaveOptions) - Parameters:
enclaveOptions- enclaveOptions property. Specify an array of string values to match this event if the actual value of enclaveOptions is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
groupSet
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.Builder groupSet(InstanceEvents.AWSAPICallViaCloudTrail.GroupSet2 groupSet) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.getGroupSet()- Parameters:
groupSet- groupSet property. Specify an array of string values to match this event if the actual value of groupSet is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
hypervisor
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.Builder hypervisor(List<String> hypervisor) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.getHypervisor()- Parameters:
hypervisor- hypervisor property. Specify an array of string values to match this event if the actual value of hypervisor is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
imageId
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.Builder imageId(List<String> imageId) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.getImageId()- Parameters:
imageId- imageId property. Specify an array of string values to match this event if the actual value of imageId 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.AWSAPICallViaCloudTrail.InstancesSetItem.Builder instanceId(List<String> instanceId) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.getInstanceId()- Parameters:
instanceId- instanceId property. Specify an array of string values to match this event if the actual value of instanceId is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
instanceLifecycle
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.Builder instanceLifecycle(List<String> instanceLifecycle) - Parameters:
instanceLifecycle- instanceLifecycle property. Specify an array of string values to match this event if the actual value of instanceLifecycle is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
instanceState
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.Builder instanceState(InstanceEvents.AWSAPICallViaCloudTrail.InstanceState instanceState) - Parameters:
instanceState- instanceState property. Specify an array of string values to match this event if the actual value of instanceState is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
instanceType
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.Builder instanceType(List<String> instanceType) - Parameters:
instanceType- instanceType property. Specify an array of string values to match this event if the actual value of instanceType is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
launchTime
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.Builder launchTime(List<String> launchTime) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.getLaunchTime()- Parameters:
launchTime- launchTime property. Specify an array of string values to match this event if the actual value of launchTime is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
monitoring
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.Builder monitoring(InstanceEvents.AWSAPICallViaCloudTrail.Monitoring1 monitoring) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.getMonitoring()- Parameters:
monitoring- monitoring property. Specify an array of string values to match this event if the actual value of monitoring is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
networkInterfaceSet
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.Builder networkInterfaceSet(InstanceEvents.AWSAPICallViaCloudTrail.NetworkInterfaceSet1 networkInterfaceSet) - Parameters:
networkInterfaceSet- networkInterfaceSet property. Specify an array of string values to match this event if the actual value of networkInterfaceSet is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
placement
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.Builder placement(InstanceEvents.AWSAPICallViaCloudTrail.Placement placement) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.getPlacement()- Parameters:
placement- placement property. Specify an array of string values to match this event if the actual value of placement is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
previousState
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.Builder previousState(InstanceEvents.AWSAPICallViaCloudTrail.InstanceState previousState) - Parameters:
previousState- previousState property. Specify an array of string values to match this event if the actual value of previousState is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
privateIpAddress
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.Builder privateIpAddress(List<String> privateIpAddress) - Parameters:
privateIpAddress- privateIpAddress property. Specify an array of string values to match this event if the actual value of privateIpAddress is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
productCodes
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.Builder productCodes(List<String> productCodes) - Parameters:
productCodes- productCodes property. Specify an array of string values to match this event if the actual value of productCodes is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
rootDeviceName
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.Builder rootDeviceName(List<String> rootDeviceName) - Parameters:
rootDeviceName- rootDeviceName property. Specify an array of string values to match this event if the actual value of rootDeviceName is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
rootDeviceType
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.Builder rootDeviceType(List<String> rootDeviceType) - Parameters:
rootDeviceType- rootDeviceType property. Specify an array of string values to match this event if the actual value of rootDeviceType is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
sourceDestCheck
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.Builder sourceDestCheck(List<String> sourceDestCheck) - Parameters:
sourceDestCheck- sourceDestCheck property. Specify an array of string values to match this event if the actual value of sourceDestCheck is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
spotInstanceRequestId
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.Builder spotInstanceRequestId(List<String> spotInstanceRequestId) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.getSpotInstanceRequestId()- Parameters:
spotInstanceRequestId- spotInstanceRequestId property. Specify an array of string values to match this event if the actual value of spotInstanceRequestId is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
stateReason
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.Builder stateReason(InstanceEvents.AWSAPICallViaCloudTrail.StateReason stateReason) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.getStateReason()- Parameters:
stateReason- stateReason property. Specify an array of string values to match this event if the actual value of stateReason is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
subnetId
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.Builder subnetId(List<String> subnetId) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.getSubnetId()- Parameters:
subnetId- subnetId property. Specify an array of string values to match this event if the actual value of subnetId is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
tagSet
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.Builder tagSet(InstanceEvents.AWSAPICallViaCloudTrail.TagSet tagSet) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.getTagSet()- Parameters:
tagSet- tagSet property. Specify an array of string values to match this event if the actual value of tagSet is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
virtualizationType
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.Builder virtualizationType(List<String> virtualizationType) - Parameters:
virtualizationType- virtualizationType property. Specify an array of string values to match this event if the actual value of virtualizationType is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
vpcId
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.Builder vpcId(List<String> vpcId) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem.getVpcId()- Parameters:
vpcId- vpcId property. Specify an array of string values to match this event if the actual value of vpcId 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<InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem>- Returns:
- a new instance of
InstanceEvents.AWSAPICallViaCloudTrail.InstancesSetItem - Throws:
NullPointerException- if any required attribute was not provided
-