Class TrailReference.Builder
java.lang.Object
software.amazon.awscdk.interfaces.cloudtrail.TrailReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TrailReference>
- Enclosing interface:
TrailReference
@Stability(Stable)
public static final class TrailReference.Builder
extends Object
implements software.amazon.jsii.Builder<TrailReference>
A builder for
TrailReference-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofTrailReference.getTrailArn()Sets the value ofTrailReference.getTrailName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
trailArn
Sets the value ofTrailReference.getTrailArn()- Parameters:
trailArn- The ARN of the Trail resource. This parameter is required.- Returns:
this
-
trailName
Sets the value ofTrailReference.getTrailName()- Parameters:
trailName- The TrailName of the Trail resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<TrailReference>- Returns:
- a new instance of
TrailReference - Throws:
NullPointerException- if any required attribute was not provided
-