Interface Trail.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Trail.Builder,Trail>,SdkBuilder<Trail.Builder,Trail>,SdkPojo
- Enclosing class:
- Trail
public static interface Trail.Builder extends SdkPojo, CopyableBuilder<Trail.Builder,Trail>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Trail.BuilderallRegions(Boolean allRegions)Possible values aretrueorfalse.Trail.BuildercloudTrailArn(String cloudTrailArn)Specifies the ARN of the trail.Trail.Builderregions(String... regions)A list of regions to get CloudTrail data from and analyze to generate a policy.Trail.Builderregions(Collection<String> regions)A list of regions to get CloudTrail data from and analyze to generate a policy.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
cloudTrailArn
Trail.Builder cloudTrailArn(String cloudTrailArn)
Specifies the ARN of the trail. The format of a trail ARN is
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail.- Parameters:
cloudTrailArn- Specifies the ARN of the trail. The format of a trail ARN isarn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
regions
Trail.Builder regions(Collection<String> regions)
A list of regions to get CloudTrail data from and analyze to generate a policy.
- Parameters:
regions- A list of regions to get CloudTrail data from and analyze to generate a policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
regions
Trail.Builder regions(String... regions)
A list of regions to get CloudTrail data from and analyze to generate a policy.
- Parameters:
regions- A list of regions to get CloudTrail data from and analyze to generate a policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allRegions
Trail.Builder allRegions(Boolean allRegions)
Possible values are
trueorfalse. If set totrue, IAM Access Analyzer retrieves CloudTrail data from all regions to analyze and generate a policy.- Parameters:
allRegions- Possible values aretrueorfalse. If set totrue, IAM Access Analyzer retrieves CloudTrail data from all regions to analyze and generate a policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-