@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TrailProperties extends Object implements Serializable, Cloneable, StructuredPojo
Contains details about the CloudTrail trail being analyzed to generate a policy.
| Constructor and Description |
|---|
TrailProperties() |
| Modifier and Type | Method and Description |
|---|---|
TrailProperties |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAllRegions()
Possible values are
true or false. |
String |
getCloudTrailArn()
Specifies the ARN of the trail.
|
List<String> |
getRegions()
A list of regions to get CloudTrail data from and analyze to generate a policy.
|
int |
hashCode() |
Boolean |
isAllRegions()
Possible values are
true or false. |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setAllRegions(Boolean allRegions)
Possible values are
true or false. |
void |
setCloudTrailArn(String cloudTrailArn)
Specifies the ARN of the trail.
|
void |
setRegions(Collection<String> regions)
A list of regions to get CloudTrail data from and analyze to generate a policy.
|
String |
toString()
Returns a string representation of this object.
|
TrailProperties |
withAllRegions(Boolean allRegions)
Possible values are
true or false. |
TrailProperties |
withCloudTrailArn(String cloudTrailArn)
Specifies the ARN of the trail.
|
TrailProperties |
withRegions(Collection<String> regions)
A list of regions to get CloudTrail data from and analyze to generate a policy.
|
TrailProperties |
withRegions(String... regions)
A list of regions to get CloudTrail data from and analyze to generate a policy.
|
public void setCloudTrailArn(String cloudTrailArn)
Specifies the ARN of the trail. The format of a trail ARN is
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail.
cloudTrailArn - Specifies the ARN of the trail. The format of a trail ARN is
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail.public String getCloudTrailArn()
Specifies the ARN of the trail. The format of a trail ARN is
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail.
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail.public TrailProperties withCloudTrailArn(String cloudTrailArn)
Specifies the ARN of the trail. The format of a trail ARN is
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail.
cloudTrailArn - Specifies the ARN of the trail. The format of a trail ARN is
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail.public List<String> getRegions()
A list of regions to get CloudTrail data from and analyze to generate a policy.
public void setRegions(Collection<String> regions)
A list of regions to get CloudTrail data from and analyze to generate a policy.
regions - A list of regions to get CloudTrail data from and analyze to generate a policy.public TrailProperties withRegions(String... regions)
A list of regions to get CloudTrail data from and analyze to generate a policy.
NOTE: This method appends the values to the existing list (if any). Use
setRegions(java.util.Collection) or withRegions(java.util.Collection) if you want to override
the existing values.
regions - A list of regions to get CloudTrail data from and analyze to generate a policy.public TrailProperties withRegions(Collection<String> regions)
A list of regions to get CloudTrail data from and analyze to generate a policy.
regions - A list of regions to get CloudTrail data from and analyze to generate a policy.public void setAllRegions(Boolean allRegions)
Possible values are true or false. If set to true, IAM Access Analyzer
retrieves CloudTrail data from all regions to analyze and generate a policy.
allRegions - Possible values are true or false. If set to true, IAM Access
Analyzer retrieves CloudTrail data from all regions to analyze and generate a policy.public Boolean getAllRegions()
Possible values are true or false. If set to true, IAM Access Analyzer
retrieves CloudTrail data from all regions to analyze and generate a policy.
true or false. If set to true, IAM Access
Analyzer retrieves CloudTrail data from all regions to analyze and generate a policy.public TrailProperties withAllRegions(Boolean allRegions)
Possible values are true or false. If set to true, IAM Access Analyzer
retrieves CloudTrail data from all regions to analyze and generate a policy.
allRegions - Possible values are true or false. If set to true, IAM Access
Analyzer retrieves CloudTrail data from all regions to analyze and generate a policy.public Boolean isAllRegions()
Possible values are true or false. If set to true, IAM Access Analyzer
retrieves CloudTrail data from all regions to analyze and generate a policy.
true or false. If set to true, IAM Access
Analyzer retrieves CloudTrail data from all regions to analyze and generate a policy.public String toString()
toString in class ObjectObject.toString()public TrailProperties clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.