Class GuardDutyFinding.InstanceDetails.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.guardduty.events.GuardDutyFinding.InstanceDetails.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GuardDutyFinding.InstanceDetails>
- Enclosing interface:
GuardDutyFinding.InstanceDetails
@Stability(Experimental)
public static final class GuardDutyFinding.InstanceDetails.Builder
extends Object
implements software.amazon.jsii.Builder<GuardDutyFinding.InstanceDetails>
A builder for
GuardDutyFinding.InstanceDetails-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavailabilityZone(List<String> availabilityZone) Sets the value ofGuardDutyFinding.InstanceDetails.getAvailabilityZone()build()Builds the configured instance.iamInstanceProfile(GuardDutyFinding.IamInstanceProfile iamInstanceProfile) Sets the value ofGuardDutyFinding.InstanceDetails.getIamInstanceProfile()imageDescription(List<String> imageDescription) Sets the value ofGuardDutyFinding.InstanceDetails.getImageDescription()Sets the value ofGuardDutyFinding.InstanceDetails.getImageId()instanceId(List<String> instanceId) Sets the value ofGuardDutyFinding.InstanceDetails.getInstanceId()instanceState(List<String> instanceState) Sets the value ofGuardDutyFinding.InstanceDetails.getInstanceState()instanceType(List<String> instanceType) Sets the value ofGuardDutyFinding.InstanceDetails.getInstanceType()launchTime(List<String> launchTime) Sets the value ofGuardDutyFinding.InstanceDetails.getLaunchTime()networkInterfaces(List<? extends GuardDutyFinding.InstanceDetailsItem> networkInterfaces) Sets the value ofGuardDutyFinding.InstanceDetails.getNetworkInterfaces()outpostArn(List<String> outpostArn) Sets the value ofGuardDutyFinding.InstanceDetails.getOutpostArn()Sets the value ofGuardDutyFinding.InstanceDetails.getPlatform()productCodes(List<? extends GuardDutyFinding.InstanceDetailsItem1> productCodes) Sets the value ofGuardDutyFinding.InstanceDetails.getProductCodes()tags(List<? extends GuardDutyFinding.EcsClusterDetailsItem> tags) Sets the value ofGuardDutyFinding.InstanceDetails.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
availabilityZone
@Stability(Experimental) public GuardDutyFinding.InstanceDetails.Builder availabilityZone(List<String> availabilityZone) Sets the value ofGuardDutyFinding.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 GuardDutyFinding.InstanceDetails.Builder iamInstanceProfile(GuardDutyFinding.IamInstanceProfile iamInstanceProfile) Sets the value ofGuardDutyFinding.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 GuardDutyFinding.InstanceDetails.Builder imageDescription(List<String> imageDescription) Sets the value ofGuardDutyFinding.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 GuardDutyFinding.InstanceDetails.Builder imageId(List<String> imageId) Sets the value ofGuardDutyFinding.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 GuardDutyFinding.InstanceDetails.Builder instanceId(List<String> instanceId) Sets the value ofGuardDutyFinding.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 GuardDutyFinding.InstanceDetails.Builder instanceState(List<String> instanceState) Sets the value ofGuardDutyFinding.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 GuardDutyFinding.InstanceDetails.Builder instanceType(List<String> instanceType) Sets the value ofGuardDutyFinding.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 GuardDutyFinding.InstanceDetails.Builder launchTime(List<String> launchTime) Sets the value ofGuardDutyFinding.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 GuardDutyFinding.InstanceDetails.Builder networkInterfaces(List<? extends GuardDutyFinding.InstanceDetailsItem> networkInterfaces) Sets the value ofGuardDutyFinding.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 GuardDutyFinding.InstanceDetails.Builder outpostArn(List<String> outpostArn) Sets the value ofGuardDutyFinding.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 GuardDutyFinding.InstanceDetails.Builder platform(List<String> platform) Sets the value ofGuardDutyFinding.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 GuardDutyFinding.InstanceDetails.Builder productCodes(List<? extends GuardDutyFinding.InstanceDetailsItem1> productCodes) Sets the value ofGuardDutyFinding.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 GuardDutyFinding.InstanceDetails.Builder tags(List<? extends GuardDutyFinding.EcsClusterDetailsItem> tags) Sets the value ofGuardDutyFinding.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<GuardDutyFinding.InstanceDetails>- Returns:
- a new instance of
GuardDutyFinding.InstanceDetails - Throws:
NullPointerException- if any required attribute was not provided
-