Class GuardDutyFinding.ResourceItem.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.guardduty.events.GuardDutyFinding.ResourceItem.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GuardDutyFinding.ResourceItem>
- Enclosing interface:
GuardDutyFinding.ResourceItem
@Stability(Experimental)
public static final class GuardDutyFinding.ResourceItem.Builder
extends Object
implements software.amazon.jsii.Builder<GuardDutyFinding.ResourceItem>
A builder for
GuardDutyFinding.ResourceItem-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofGuardDutyFinding.ResourceItem.getArn()build()Builds the configured instance.Sets the value ofGuardDutyFinding.ResourceItem.getCreatedAt()defaultServerSideEncryption(GuardDutyFinding.DefaultServerSideEncryption defaultServerSideEncryption) Sets the value ofGuardDutyFinding.ResourceItem.getDefaultServerSideEncryption()Sets the value ofGuardDutyFinding.ResourceItem.getName()owner(GuardDutyFinding.Owner owner) Sets the value ofGuardDutyFinding.ResourceItem.getOwner()publicAccess(GuardDutyFinding.PublicAccess publicAccess) Sets the value ofGuardDutyFinding.ResourceItem.getPublicAccess()tags(List<? extends GuardDutyFinding.EcsClusterDetailsItem> tags) Sets the value ofGuardDutyFinding.ResourceItem.getTags()Sets the value ofGuardDutyFinding.ResourceItem.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
arn
Sets the value ofGuardDutyFinding.ResourceItem.getArn()- Parameters:
arn- arn property. Specify an array of string values to match this event if the actual value of arn is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
createdAt
@Stability(Experimental) public GuardDutyFinding.ResourceItem.Builder createdAt(List<String> createdAt) Sets the value ofGuardDutyFinding.ResourceItem.getCreatedAt()- Parameters:
createdAt- createdAt property. Specify an array of string values to match this event if the actual value of createdAt is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
defaultServerSideEncryption
@Stability(Experimental) public GuardDutyFinding.ResourceItem.Builder defaultServerSideEncryption(GuardDutyFinding.DefaultServerSideEncryption defaultServerSideEncryption) Sets the value ofGuardDutyFinding.ResourceItem.getDefaultServerSideEncryption()- Parameters:
defaultServerSideEncryption- defaultServerSideEncryption property. Specify an array of string values to match this event if the actual value of defaultServerSideEncryption is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
name
Sets the value ofGuardDutyFinding.ResourceItem.getName()- Parameters:
name- name property. Specify an array of string values to match this event if the actual value of name is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
owner
@Stability(Experimental) public GuardDutyFinding.ResourceItem.Builder owner(GuardDutyFinding.Owner owner) Sets the value ofGuardDutyFinding.ResourceItem.getOwner()- Parameters:
owner- owner property. Specify an array of string values to match this event if the actual value of owner is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
publicAccess
@Stability(Experimental) public GuardDutyFinding.ResourceItem.Builder publicAccess(GuardDutyFinding.PublicAccess publicAccess) Sets the value ofGuardDutyFinding.ResourceItem.getPublicAccess()- Parameters:
publicAccess- publicAccess property. Specify an array of string values to match this event if the actual value of publicAccess 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.ResourceItem.Builder tags(List<? extends GuardDutyFinding.EcsClusterDetailsItem> tags) Sets the value ofGuardDutyFinding.ResourceItem.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
-
type
Sets the value ofGuardDutyFinding.ResourceItem.getType()- Parameters:
type- type property. Specify an array of string values to match this event if the actual value of type 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.ResourceItem>- Returns:
- a new instance of
GuardDutyFinding.ResourceItem - Throws:
NullPointerException- if any required attribute was not provided
-