Class AWSAPICallViaCloudTrail.InstancesSetItem.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.ec2.events.AWSAPICallViaCloudTrail.InstancesSetItem.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AWSAPICallViaCloudTrail.InstancesSetItem>
- Enclosing interface:
AWSAPICallViaCloudTrail.InstancesSetItem
@Stability(Experimental)
public static final class AWSAPICallViaCloudTrail.InstancesSetItem.Builder
extends Object
implements software.amazon.jsii.Builder<AWSAPICallViaCloudTrail.InstancesSetItem>
A builder for
AWSAPICallViaCloudTrail.InstancesSetItem-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionamiLaunchIndex(List<String> amiLaunchIndex) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getAmiLaunchIndex()architecture(List<String> architecture) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getArchitecture()blockDeviceMapping(List<String> blockDeviceMapping) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getBlockDeviceMapping()build()Builds the configured instance.capacityReservationSpecification(AWSAPICallViaCloudTrail.CapacityReservationSpecification capacityReservationSpecification) clientToken(List<String> clientToken) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getClientToken()cpuOptions(AWSAPICallViaCloudTrail.CpuOptions cpuOptions) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getCpuOptions()currentState(AWSAPICallViaCloudTrail.InstanceState currentState) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getCurrentState()ebsOptimized(List<String> ebsOptimized) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getEbsOptimized()enclaveOptions(AWSAPICallViaCloudTrail.EnclaveOptions enclaveOptions) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getEnclaveOptions()groupSet(AWSAPICallViaCloudTrail.GroupSet2 groupSet) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getGroupSet()hypervisor(List<String> hypervisor) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getHypervisor()Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getImageId()instanceId(List<String> instanceId) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getInstanceId()instanceLifecycle(List<String> instanceLifecycle) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getInstanceLifecycle()instanceState(AWSAPICallViaCloudTrail.InstanceState instanceState) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getInstanceState()instanceType(List<String> instanceType) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getInstanceType()launchTime(List<String> launchTime) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getLaunchTime()monitoring(AWSAPICallViaCloudTrail.Monitoring1 monitoring) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getMonitoring()networkInterfaceSet(AWSAPICallViaCloudTrail.NetworkInterfaceSet1 networkInterfaceSet) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getNetworkInterfaceSet()placement(AWSAPICallViaCloudTrail.Placement placement) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getPlacement()previousState(AWSAPICallViaCloudTrail.InstanceState previousState) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getPreviousState()privateIpAddress(List<String> privateIpAddress) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getPrivateIpAddress()productCodes(List<String> productCodes) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getProductCodes()rootDeviceName(List<String> rootDeviceName) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getRootDeviceName()rootDeviceType(List<String> rootDeviceType) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getRootDeviceType()sourceDestCheck(List<String> sourceDestCheck) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getSourceDestCheck()spotInstanceRequestId(List<String> spotInstanceRequestId) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getSpotInstanceRequestId()stateReason(AWSAPICallViaCloudTrail.StateReason stateReason) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getStateReason()Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getSubnetId()tagSet(AWSAPICallViaCloudTrail.TagSet tagSet) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getTagSet()virtualizationType(List<String> virtualizationType) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getVirtualizationType()Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
amiLaunchIndex
@Stability(Experimental) public AWSAPICallViaCloudTrail.InstancesSetItem.Builder amiLaunchIndex(List<String> amiLaunchIndex) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getAmiLaunchIndex()- 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 AWSAPICallViaCloudTrail.InstancesSetItem.Builder architecture(List<String> architecture) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getArchitecture()- 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 AWSAPICallViaCloudTrail.InstancesSetItem.Builder blockDeviceMapping(List<String> blockDeviceMapping) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getBlockDeviceMapping()- 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 AWSAPICallViaCloudTrail.InstancesSetItem.Builder capacityReservationSpecification(AWSAPICallViaCloudTrail.CapacityReservationSpecification capacityReservationSpecification) - 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 AWSAPICallViaCloudTrail.InstancesSetItem.Builder clientToken(List<String> clientToken) Sets the value ofAWSAPICallViaCloudTrail.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 AWSAPICallViaCloudTrail.InstancesSetItem.Builder cpuOptions(AWSAPICallViaCloudTrail.CpuOptions cpuOptions) Sets the value ofAWSAPICallViaCloudTrail.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 AWSAPICallViaCloudTrail.InstancesSetItem.Builder currentState(AWSAPICallViaCloudTrail.InstanceState currentState) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getCurrentState()- 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 AWSAPICallViaCloudTrail.InstancesSetItem.Builder ebsOptimized(List<String> ebsOptimized) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getEbsOptimized()- 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 AWSAPICallViaCloudTrail.InstancesSetItem.Builder enclaveOptions(AWSAPICallViaCloudTrail.EnclaveOptions enclaveOptions) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getEnclaveOptions()- 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 AWSAPICallViaCloudTrail.InstancesSetItem.Builder groupSet(AWSAPICallViaCloudTrail.GroupSet2 groupSet) Sets the value ofAWSAPICallViaCloudTrail.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 AWSAPICallViaCloudTrail.InstancesSetItem.Builder hypervisor(List<String> hypervisor) Sets the value ofAWSAPICallViaCloudTrail.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 AWSAPICallViaCloudTrail.InstancesSetItem.Builder imageId(List<String> imageId) Sets the value ofAWSAPICallViaCloudTrail.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 AWSAPICallViaCloudTrail.InstancesSetItem.Builder instanceId(List<String> instanceId) Sets the value ofAWSAPICallViaCloudTrail.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 AWSAPICallViaCloudTrail.InstancesSetItem.Builder instanceLifecycle(List<String> instanceLifecycle) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getInstanceLifecycle()- 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 AWSAPICallViaCloudTrail.InstancesSetItem.Builder instanceState(AWSAPICallViaCloudTrail.InstanceState instanceState) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getInstanceState()- 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 AWSAPICallViaCloudTrail.InstancesSetItem.Builder instanceType(List<String> instanceType) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getInstanceType()- 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 AWSAPICallViaCloudTrail.InstancesSetItem.Builder launchTime(List<String> launchTime) Sets the value ofAWSAPICallViaCloudTrail.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 AWSAPICallViaCloudTrail.InstancesSetItem.Builder monitoring(AWSAPICallViaCloudTrail.Monitoring1 monitoring) Sets the value ofAWSAPICallViaCloudTrail.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 AWSAPICallViaCloudTrail.InstancesSetItem.Builder networkInterfaceSet(AWSAPICallViaCloudTrail.NetworkInterfaceSet1 networkInterfaceSet) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getNetworkInterfaceSet()- 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 AWSAPICallViaCloudTrail.InstancesSetItem.Builder placement(AWSAPICallViaCloudTrail.Placement placement) Sets the value ofAWSAPICallViaCloudTrail.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 AWSAPICallViaCloudTrail.InstancesSetItem.Builder previousState(AWSAPICallViaCloudTrail.InstanceState previousState) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getPreviousState()- 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 AWSAPICallViaCloudTrail.InstancesSetItem.Builder privateIpAddress(List<String> privateIpAddress) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getPrivateIpAddress()- 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 AWSAPICallViaCloudTrail.InstancesSetItem.Builder productCodes(List<String> productCodes) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getProductCodes()- 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 AWSAPICallViaCloudTrail.InstancesSetItem.Builder rootDeviceName(List<String> rootDeviceName) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getRootDeviceName()- 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 AWSAPICallViaCloudTrail.InstancesSetItem.Builder rootDeviceType(List<String> rootDeviceType) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getRootDeviceType()- 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 AWSAPICallViaCloudTrail.InstancesSetItem.Builder sourceDestCheck(List<String> sourceDestCheck) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getSourceDestCheck()- 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 AWSAPICallViaCloudTrail.InstancesSetItem.Builder spotInstanceRequestId(List<String> spotInstanceRequestId) Sets the value ofAWSAPICallViaCloudTrail.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 AWSAPICallViaCloudTrail.InstancesSetItem.Builder stateReason(AWSAPICallViaCloudTrail.StateReason stateReason) Sets the value ofAWSAPICallViaCloudTrail.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 AWSAPICallViaCloudTrail.InstancesSetItem.Builder subnetId(List<String> subnetId) Sets the value ofAWSAPICallViaCloudTrail.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 AWSAPICallViaCloudTrail.InstancesSetItem.Builder tagSet(AWSAPICallViaCloudTrail.TagSet tagSet) Sets the value ofAWSAPICallViaCloudTrail.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 AWSAPICallViaCloudTrail.InstancesSetItem.Builder virtualizationType(List<String> virtualizationType) Sets the value ofAWSAPICallViaCloudTrail.InstancesSetItem.getVirtualizationType()- 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 AWSAPICallViaCloudTrail.InstancesSetItem.Builder vpcId(List<String> vpcId) Sets the value ofAWSAPICallViaCloudTrail.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<AWSAPICallViaCloudTrail.InstancesSetItem>- Returns:
- a new instance of
AWSAPICallViaCloudTrail.InstancesSetItem - Throws:
NullPointerException- if any required attribute was not provided
-