Package software.amazon.awscdk
Class AWSEventMetadataProps.Builder
java.lang.Object
software.amazon.awscdk.AWSEventMetadataProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AWSEventMetadataProps>
- Enclosing interface:
AWSEventMetadataProps
@Stability(Stable)
public static final class AWSEventMetadataProps.Builder
extends Object
implements software.amazon.jsii.Builder<AWSEventMetadataProps>
A builder for
AWSEventMetadataProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofAWSEventMetadataProps.getRegion()Sets the value ofAWSEventMetadataProps.getResources()Sets the value ofAWSEventMetadataProps.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
region
Sets the value ofAWSEventMetadataProps.getRegion()- Parameters:
region- Identifies the AWS region where the event originated.- Returns:
this
-
resources
Sets the value ofAWSEventMetadataProps.getResources()- Parameters:
resources- This JSON array contains ARNs that identify resources that are involved in the event. Inclusion of these ARNs is at the discretion of the service.For example, Amazon EC2 instance state-changes include Amazon EC2 instance ARNs, Auto Scaling events include ARNs for both instances and Auto Scaling groups, but API calls with AWS CloudTrail do not include resource ARNs.
- Returns:
this
-
version
Sets the value ofAWSEventMetadataProps.getVersion()- Parameters:
version- By default, this is set to 0 (zero) in all events.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AWSEventMetadataProps>- Returns:
- a new instance of
AWSEventMetadataProps - Throws:
NullPointerException- if any required attribute was not provided
-