Class DetectorEvents.GuardDutyFinding.InstanceDetails.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.guardduty.events.DetectorEvents.GuardDutyFinding.InstanceDetails.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DetectorEvents.GuardDutyFinding.InstanceDetails>
- Enclosing interface:
DetectorEvents.GuardDutyFinding.InstanceDetails
@Stability(Experimental)
public static final class DetectorEvents.GuardDutyFinding.InstanceDetails.Builder
extends Object
implements software.amazon.jsii.Builder<DetectorEvents.GuardDutyFinding.InstanceDetails>
A builder for
DetectorEvents.GuardDutyFinding.InstanceDetails-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavailabilityZone(List<String> availabilityZone) Sets the value ofDetectorEvents.GuardDutyFinding.InstanceDetails.getAvailabilityZone()build()Builds the configured instance.iamInstanceProfile(DetectorEvents.GuardDutyFinding.IamInstanceProfile iamInstanceProfile) Sets the value ofDetectorEvents.GuardDutyFinding.InstanceDetails.getIamInstanceProfile()imageDescription(List<String> imageDescription) Sets the value ofDetectorEvents.GuardDutyFinding.InstanceDetails.getImageDescription()Sets the value ofDetectorEvents.GuardDutyFinding.InstanceDetails.getImageId()instanceId(List<String> instanceId) Sets the value ofDetectorEvents.GuardDutyFinding.InstanceDetails.getInstanceId()instanceState(List<String> instanceState) Sets the value ofDetectorEvents.GuardDutyFinding.InstanceDetails.getInstanceState()instanceType(List<String> instanceType) Sets the value ofDetectorEvents.GuardDutyFinding.InstanceDetails.getInstanceType()launchTime(List<String> launchTime) Sets the value ofDetectorEvents.GuardDutyFinding.InstanceDetails.getLaunchTime()networkInterfaces(List<? extends DetectorEvents.GuardDutyFinding.InstanceDetailsItem> networkInterfaces) Sets the value ofDetectorEvents.GuardDutyFinding.InstanceDetails.getNetworkInterfaces()outpostArn(List<String> outpostArn) Sets the value ofDetectorEvents.GuardDutyFinding.InstanceDetails.getOutpostArn()Sets the value ofDetectorEvents.GuardDutyFinding.InstanceDetails.getPlatform()productCodes(List<? extends DetectorEvents.GuardDutyFinding.InstanceDetailsItem1> productCodes) Sets the value ofDetectorEvents.GuardDutyFinding.InstanceDetails.getProductCodes()tags(List<? extends DetectorEvents.GuardDutyFinding.EcsClusterDetailsItem> tags) Sets the value ofDetectorEvents.GuardDutyFinding.InstanceDetails.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
availabilityZone
@Stability(Experimental) public DetectorEvents.GuardDutyFinding.InstanceDetails.Builder availabilityZone(List<String> availabilityZone) Sets the value ofDetectorEvents.GuardDutyFinding.InstanceDetails.getAvailabilityZone()- Parameters:
availabilityZone- availabilityZone property. Specify an array of string values to match this event if the actual value of availabilityZone is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
iamInstanceProfile
@Stability(Experimental) public DetectorEvents.GuardDutyFinding.InstanceDetails.Builder iamInstanceProfile(DetectorEvents.GuardDutyFinding.IamInstanceProfile iamInstanceProfile) Sets the value ofDetectorEvents.GuardDutyFinding.InstanceDetails.getIamInstanceProfile()- Parameters:
iamInstanceProfile- iamInstanceProfile property. Specify an array of string values to match this event if the actual value of iamInstanceProfile is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
imageDescription
@Stability(Experimental) public DetectorEvents.GuardDutyFinding.InstanceDetails.Builder imageDescription(List<String> imageDescription) Sets the value ofDetectorEvents.GuardDutyFinding.InstanceDetails.getImageDescription()- Parameters:
imageDescription- imageDescription property. Specify an array of string values to match this event if the actual value of imageDescription 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 DetectorEvents.GuardDutyFinding.InstanceDetails.Builder imageId(List<String> imageId) Sets the value ofDetectorEvents.GuardDutyFinding.InstanceDetails.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 DetectorEvents.GuardDutyFinding.InstanceDetails.Builder instanceId(List<String> instanceId) Sets the value ofDetectorEvents.GuardDutyFinding.InstanceDetails.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
-
instanceState
@Stability(Experimental) public DetectorEvents.GuardDutyFinding.InstanceDetails.Builder instanceState(List<String> instanceState) Sets the value ofDetectorEvents.GuardDutyFinding.InstanceDetails.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 DetectorEvents.GuardDutyFinding.InstanceDetails.Builder instanceType(List<String> instanceType) Sets the value ofDetectorEvents.GuardDutyFinding.InstanceDetails.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 DetectorEvents.GuardDutyFinding.InstanceDetails.Builder launchTime(List<String> launchTime) Sets the value ofDetectorEvents.GuardDutyFinding.InstanceDetails.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
-
networkInterfaces
@Stability(Experimental) public DetectorEvents.GuardDutyFinding.InstanceDetails.Builder networkInterfaces(List<? extends DetectorEvents.GuardDutyFinding.InstanceDetailsItem> networkInterfaces) Sets the value ofDetectorEvents.GuardDutyFinding.InstanceDetails.getNetworkInterfaces()- Parameters:
networkInterfaces- networkInterfaces property. Specify an array of string values to match this event if the actual value of networkInterfaces is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
outpostArn
@Stability(Experimental) public DetectorEvents.GuardDutyFinding.InstanceDetails.Builder outpostArn(List<String> outpostArn) Sets the value ofDetectorEvents.GuardDutyFinding.InstanceDetails.getOutpostArn()- Parameters:
outpostArn- outpostArn property. Specify an array of string values to match this event if the actual value of outpostArn is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
platform
@Stability(Experimental) public DetectorEvents.GuardDutyFinding.InstanceDetails.Builder platform(List<String> platform) Sets the value ofDetectorEvents.GuardDutyFinding.InstanceDetails.getPlatform()- Parameters:
platform- platform property. Specify an array of string values to match this event if the actual value of platform 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 DetectorEvents.GuardDutyFinding.InstanceDetails.Builder productCodes(List<? extends DetectorEvents.GuardDutyFinding.InstanceDetailsItem1> productCodes) Sets the value ofDetectorEvents.GuardDutyFinding.InstanceDetails.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
-
tags
@Stability(Experimental) public DetectorEvents.GuardDutyFinding.InstanceDetails.Builder tags(List<? extends DetectorEvents.GuardDutyFinding.EcsClusterDetailsItem> tags) Sets the value ofDetectorEvents.GuardDutyFinding.InstanceDetails.getTags()- Parameters:
tags- tags property. Specify an array of string values to match this event if the actual value of tags 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<DetectorEvents.GuardDutyFinding.InstanceDetails>- Returns:
- a new instance of
DetectorEvents.GuardDutyFinding.InstanceDetails - Throws:
NullPointerException- if any required attribute was not provided
-