Class GuardDutyFinding.InstanceDetailsItem.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.guardduty.events.GuardDutyFinding.InstanceDetailsItem.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GuardDutyFinding.InstanceDetailsItem>
- Enclosing interface:
GuardDutyFinding.InstanceDetailsItem
@Stability(Experimental)
public static final class GuardDutyFinding.InstanceDetailsItem.Builder
extends Object
implements software.amazon.jsii.Builder<GuardDutyFinding.InstanceDetailsItem>
A builder for
GuardDutyFinding.InstanceDetailsItem-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.ipv6Addresses(List<? extends Object> ipv6Addresses) Sets the value ofGuardDutyFinding.InstanceDetailsItem.getIpv6Addresses()networkInterfaceId(List<String> networkInterfaceId) Sets the value ofGuardDutyFinding.InstanceDetailsItem.getNetworkInterfaceId()privateDnsName(List<String> privateDnsName) Sets the value ofGuardDutyFinding.InstanceDetailsItem.getPrivateDnsName()privateIpAddress(List<String> privateIpAddress) Sets the value ofGuardDutyFinding.InstanceDetailsItem.getPrivateIpAddress()privateIpAddresses(List<? extends GuardDutyFinding.InstanceDetailsItemItem> privateIpAddresses) Sets the value ofGuardDutyFinding.InstanceDetailsItem.getPrivateIpAddresses()publicDnsName(List<String> publicDnsName) Sets the value ofGuardDutyFinding.InstanceDetailsItem.getPublicDnsName()Sets the value ofGuardDutyFinding.InstanceDetailsItem.getPublicIp()securityGroups(List<? extends GuardDutyFinding.InstanceDetailsItemItem1> securityGroups) Sets the value ofGuardDutyFinding.InstanceDetailsItem.getSecurityGroups()Sets the value ofGuardDutyFinding.InstanceDetailsItem.getSubnetId()Sets the value ofGuardDutyFinding.InstanceDetailsItem.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ipv6Addresses
@Stability(Experimental) public GuardDutyFinding.InstanceDetailsItem.Builder ipv6Addresses(List<? extends Object> ipv6Addresses) Sets the value ofGuardDutyFinding.InstanceDetailsItem.getIpv6Addresses()- Parameters:
ipv6Addresses- ipv6Addresses property. Specify an array of string values to match this event if the actual value of ipv6Addresses is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
networkInterfaceId
@Stability(Experimental) public GuardDutyFinding.InstanceDetailsItem.Builder networkInterfaceId(List<String> networkInterfaceId) Sets the value ofGuardDutyFinding.InstanceDetailsItem.getNetworkInterfaceId()- Parameters:
networkInterfaceId- networkInterfaceId property. Specify an array of string values to match this event if the actual value of networkInterfaceId is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
privateDnsName
@Stability(Experimental) public GuardDutyFinding.InstanceDetailsItem.Builder privateDnsName(List<String> privateDnsName) Sets the value ofGuardDutyFinding.InstanceDetailsItem.getPrivateDnsName()- Parameters:
privateDnsName- privateDnsName property. Specify an array of string values to match this event if the actual value of privateDnsName 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 GuardDutyFinding.InstanceDetailsItem.Builder privateIpAddress(List<String> privateIpAddress) Sets the value ofGuardDutyFinding.InstanceDetailsItem.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
-
privateIpAddresses
@Stability(Experimental) public GuardDutyFinding.InstanceDetailsItem.Builder privateIpAddresses(List<? extends GuardDutyFinding.InstanceDetailsItemItem> privateIpAddresses) Sets the value ofGuardDutyFinding.InstanceDetailsItem.getPrivateIpAddresses()- Parameters:
privateIpAddresses- privateIpAddresses property. Specify an array of string values to match this event if the actual value of privateIpAddresses is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
publicDnsName
@Stability(Experimental) public GuardDutyFinding.InstanceDetailsItem.Builder publicDnsName(List<String> publicDnsName) Sets the value ofGuardDutyFinding.InstanceDetailsItem.getPublicDnsName()- Parameters:
publicDnsName- publicDnsName property. Specify an array of string values to match this event if the actual value of publicDnsName is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
publicIp
@Stability(Experimental) public GuardDutyFinding.InstanceDetailsItem.Builder publicIp(List<String> publicIp) Sets the value ofGuardDutyFinding.InstanceDetailsItem.getPublicIp()- Parameters:
publicIp- publicIp property. Specify an array of string values to match this event if the actual value of publicIp is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
securityGroups
@Stability(Experimental) public GuardDutyFinding.InstanceDetailsItem.Builder securityGroups(List<? extends GuardDutyFinding.InstanceDetailsItemItem1> securityGroups) Sets the value ofGuardDutyFinding.InstanceDetailsItem.getSecurityGroups()- Parameters:
securityGroups- securityGroups property. Specify an array of string values to match this event if the actual value of securityGroups 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 GuardDutyFinding.InstanceDetailsItem.Builder subnetId(List<String> subnetId) Sets the value ofGuardDutyFinding.InstanceDetailsItem.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
-
vpcId
@Stability(Experimental) public GuardDutyFinding.InstanceDetailsItem.Builder vpcId(List<String> vpcId) Sets the value ofGuardDutyFinding.InstanceDetailsItem.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<GuardDutyFinding.InstanceDetailsItem>- Returns:
- a new instance of
GuardDutyFinding.InstanceDetailsItem - Throws:
NullPointerException- if any required attribute was not provided
-