public class UpdateTrailRequest extends AmazonWebServiceRequest implements Serializable
UpdateTrail operation
.
From the command line, use update-subscription.
Updates the settings that specify delivery of log files. Changes to a trail do not require stopping the CloudTrail service. You use this action to designate an existing bucket for log delivery. If the existing bucket has previously been a target for CloudTrail log files, an IAM policy exists for the bucket. Use a Trail data type to pass updated bucket or topic names.
Constructor and Description |
---|
UpdateTrailRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Boolean |
getIncludeGlobalServiceEvents()
Returns the value of the IncludeGlobalServiceEvents property for this
object.
|
String |
getName()
Returns the value of the Name property for this object.
|
String |
getS3BucketName()
Returns the value of the S3BucketName property for this object.
|
String |
getS3KeyPrefix()
Returns the value of the S3KeyPrefix property for this object.
|
String |
getSnsTopicName()
Returns the value of the SnsTopicName property for this object.
|
Trail |
getTrail()
Represents the Trail structure that contains the CloudTrail
setting for an account.
|
int |
hashCode() |
Boolean |
isIncludeGlobalServiceEvents()
Returns the value of the IncludeGlobalServiceEvents property for this
object.
|
void |
setIncludeGlobalServiceEvents(Boolean includeGlobalServiceEvents)
Sets the value of the IncludeGlobalServiceEvents property for this
object.
|
void |
setName(String name)
Sets the value of the Name property for this object.
|
void |
setS3BucketName(String s3BucketName)
Sets the value of the S3BucketName property for this object.
|
void |
setS3KeyPrefix(String s3KeyPrefix)
Sets the value of the S3KeyPrefix property for this object.
|
void |
setSnsTopicName(String snsTopicName)
Sets the value of the SnsTopicName property for this object.
|
void |
setTrail(Trail trail)
Represents the Trail structure that contains the CloudTrail
setting for an account.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UpdateTrailRequest |
withIncludeGlobalServiceEvents(Boolean includeGlobalServiceEvents)
Sets the value of the IncludeGlobalServiceEvents property for this
object.
|
UpdateTrailRequest |
withName(String name)
Sets the value of the Name property for this object.
|
UpdateTrailRequest |
withS3BucketName(String s3BucketName)
Sets the value of the S3BucketName property for this object.
|
UpdateTrailRequest |
withS3KeyPrefix(String s3KeyPrefix)
Sets the value of the S3KeyPrefix property for this object.
|
UpdateTrailRequest |
withSnsTopicName(String snsTopicName)
Sets the value of the SnsTopicName property for this object.
|
UpdateTrailRequest |
withTrail(Trail trail)
Represents the Trail structure that contains the CloudTrail
setting for an account.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public String getName()
public void setName(String name)
name
- The new value for the Name property for this object.public UpdateTrailRequest withName(String name)
Returns a reference to this object so that method calls can be chained together.
name
- The new value for the Name property for this object.public String getS3BucketName()
public void setS3BucketName(String s3BucketName)
s3BucketName
- The new value for the S3BucketName property for this object.public UpdateTrailRequest withS3BucketName(String s3BucketName)
Returns a reference to this object so that method calls can be chained together.
s3BucketName
- The new value for the S3BucketName property for this object.public String getS3KeyPrefix()
public void setS3KeyPrefix(String s3KeyPrefix)
s3KeyPrefix
- The new value for the S3KeyPrefix property for this object.public UpdateTrailRequest withS3KeyPrefix(String s3KeyPrefix)
Returns a reference to this object so that method calls can be chained together.
s3KeyPrefix
- The new value for the S3KeyPrefix property for this object.public String getSnsTopicName()
public void setSnsTopicName(String snsTopicName)
snsTopicName
- The new value for the SnsTopicName property for this object.public UpdateTrailRequest withSnsTopicName(String snsTopicName)
Returns a reference to this object so that method calls can be chained together.
snsTopicName
- The new value for the SnsTopicName property for this object.public Boolean isIncludeGlobalServiceEvents()
public void setIncludeGlobalServiceEvents(Boolean includeGlobalServiceEvents)
includeGlobalServiceEvents
- The new value for the IncludeGlobalServiceEvents property for this
object.public UpdateTrailRequest withIncludeGlobalServiceEvents(Boolean includeGlobalServiceEvents)
Returns a reference to this object so that method calls can be chained together.
includeGlobalServiceEvents
- The new value for the IncludeGlobalServiceEvents property for this
object.public Boolean getIncludeGlobalServiceEvents()
public Trail getTrail()
public void setTrail(Trail trail)
trail
- Represents the Trail structure that contains the CloudTrail
setting for an account.public UpdateTrailRequest withTrail(Trail trail)
Returns a reference to this object so that method calls can be chained together.
trail
- Represents the Trail structure that contains the CloudTrail
setting for an account.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.