Class GuardDutyFinding.GuardDutyFindingProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.guardduty.events.GuardDutyFinding.GuardDutyFindingProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GuardDutyFinding.GuardDutyFindingProps>
- Enclosing interface:
GuardDutyFinding.GuardDutyFindingProps
@Stability(Experimental)
public static final class GuardDutyFinding.GuardDutyFindingProps.Builder
extends Object
implements software.amazon.jsii.Builder<GuardDutyFinding.GuardDutyFindingProps>
A builder for
GuardDutyFinding.GuardDutyFindingProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofGuardDutyFinding.GuardDutyFindingProps.getAccountId()Sets the value ofGuardDutyFinding.GuardDutyFindingProps.getArn()build()Builds the configured instance.Sets the value ofGuardDutyFinding.GuardDutyFindingProps.getCreatedAt()description(List<String> description) Sets the value ofGuardDutyFinding.GuardDutyFindingProps.getDescription()eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofGuardDutyFinding.GuardDutyFindingProps.getEventMetadata()Sets the value ofGuardDutyFinding.GuardDutyFindingProps.getId()Sets the value ofGuardDutyFinding.GuardDutyFindingProps.getPartition()Sets the value ofGuardDutyFinding.GuardDutyFindingProps.getRegion()resource(GuardDutyFinding.Resource resource) Sets the value ofGuardDutyFinding.GuardDutyFindingProps.getResource()schemaVersion(List<String> schemaVersion) Sets the value ofGuardDutyFinding.GuardDutyFindingProps.getSchemaVersion()service(GuardDutyFinding.Service service) Sets the value ofGuardDutyFinding.GuardDutyFindingProps.getService()Sets the value ofGuardDutyFinding.GuardDutyFindingProps.getSeverity()Sets the value ofGuardDutyFinding.GuardDutyFindingProps.getTitle()Sets the value ofGuardDutyFinding.GuardDutyFindingProps.getType()Sets the value ofGuardDutyFinding.GuardDutyFindingProps.getUpdatedAt()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accountId
@Stability(Experimental) public GuardDutyFinding.GuardDutyFindingProps.Builder accountId(List<String> accountId) Sets the value ofGuardDutyFinding.GuardDutyFindingProps.getAccountId()- Parameters:
accountId- accountId property. Specify an array of string values to match this event if the actual value of accountId is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
arn
@Stability(Experimental) public GuardDutyFinding.GuardDutyFindingProps.Builder arn(List<String> arn) Sets the value ofGuardDutyFinding.GuardDutyFindingProps.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.GuardDutyFindingProps.Builder createdAt(List<String> createdAt) Sets the value ofGuardDutyFinding.GuardDutyFindingProps.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
-
description
@Stability(Experimental) public GuardDutyFinding.GuardDutyFindingProps.Builder description(List<String> description) Sets the value ofGuardDutyFinding.GuardDutyFindingProps.getDescription()- Parameters:
description- description property. Specify an array of string values to match this event if the actual value of description is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
eventMetadata
@Stability(Experimental) public GuardDutyFinding.GuardDutyFindingProps.Builder eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofGuardDutyFinding.GuardDutyFindingProps.getEventMetadata()- Parameters:
eventMetadata- EventBridge event metadata.- Returns:
this
-
id
Sets the value ofGuardDutyFinding.GuardDutyFindingProps.getId()- Parameters:
id- id property. Specify an array of string values to match this event if the actual value of id is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
partition
@Stability(Experimental) public GuardDutyFinding.GuardDutyFindingProps.Builder partition(List<String> partition) Sets the value ofGuardDutyFinding.GuardDutyFindingProps.getPartition()- Parameters:
partition- partition property. Specify an array of string values to match this event if the actual value of partition is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
region
@Stability(Experimental) public GuardDutyFinding.GuardDutyFindingProps.Builder region(List<String> region) Sets the value ofGuardDutyFinding.GuardDutyFindingProps.getRegion()- Parameters:
region- region property. Specify an array of string values to match this event if the actual value of region is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
resource
@Stability(Experimental) public GuardDutyFinding.GuardDutyFindingProps.Builder resource(GuardDutyFinding.Resource resource) Sets the value ofGuardDutyFinding.GuardDutyFindingProps.getResource()- Parameters:
resource- resource property. Specify an array of string values to match this event if the actual value of resource is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
schemaVersion
@Stability(Experimental) public GuardDutyFinding.GuardDutyFindingProps.Builder schemaVersion(List<String> schemaVersion) Sets the value ofGuardDutyFinding.GuardDutyFindingProps.getSchemaVersion()- Parameters:
schemaVersion- schemaVersion property. Specify an array of string values to match this event if the actual value of schemaVersion is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
service
@Stability(Experimental) public GuardDutyFinding.GuardDutyFindingProps.Builder service(GuardDutyFinding.Service service) Sets the value ofGuardDutyFinding.GuardDutyFindingProps.getService()- Parameters:
service- service property. Specify an array of string values to match this event if the actual value of service is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
severity
@Stability(Experimental) public GuardDutyFinding.GuardDutyFindingProps.Builder severity(List<String> severity) Sets the value ofGuardDutyFinding.GuardDutyFindingProps.getSeverity()- Parameters:
severity- severity property. Specify an array of string values to match this event if the actual value of severity is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
title
@Stability(Experimental) public GuardDutyFinding.GuardDutyFindingProps.Builder title(List<String> title) Sets the value ofGuardDutyFinding.GuardDutyFindingProps.getTitle()- Parameters:
title- title property. Specify an array of string values to match this event if the actual value of title is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
type
@Stability(Experimental) public GuardDutyFinding.GuardDutyFindingProps.Builder type(List<String> type) Sets the value ofGuardDutyFinding.GuardDutyFindingProps.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
-
updatedAt
@Stability(Experimental) public GuardDutyFinding.GuardDutyFindingProps.Builder updatedAt(List<String> updatedAt) Sets the value ofGuardDutyFinding.GuardDutyFindingProps.getUpdatedAt()- Parameters:
updatedAt- updatedAt property. Specify an array of string values to match this event if the actual value of updatedAt 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.GuardDutyFindingProps>- Returns:
- a new instance of
GuardDutyFinding.GuardDutyFindingProps - Throws:
NullPointerException- if any required attribute was not provided
-