com.amazonaws.services.cloudtrail.model
Class UpdateTrailRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.cloudtrail.model.UpdateTrailRequest
All Implemented Interfaces:
Serializable

public class UpdateTrailRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the 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.

See Also:
AWSCloudTrail.updateTrail(UpdateTrailRequest), Serialized Form

Constructor Summary
UpdateTrailRequest()
           
 
Method Summary
 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.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UpdateTrailRequest

public UpdateTrailRequest()
Method Detail

getName

public String getName()
Returns the value of the Name property for this object.

Returns:
The value of the Name property for this object.

setName

public void setName(String name)
Sets the value of the Name property for this object.

Parameters:
name - The new value for the Name property for this object.

withName

public UpdateTrailRequest withName(String name)
Sets the value of the Name property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
name - The new value for the Name property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getS3BucketName

public String getS3BucketName()
Returns the value of the S3BucketName property for this object.

Returns:
The value of the S3BucketName property for this object.

setS3BucketName

public void setS3BucketName(String s3BucketName)
Sets the value of the S3BucketName property for this object.

Parameters:
s3BucketName - The new value for the S3BucketName property for this object.

withS3BucketName

public UpdateTrailRequest withS3BucketName(String s3BucketName)
Sets the value of the S3BucketName property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
s3BucketName - The new value for the S3BucketName property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getS3KeyPrefix

public String getS3KeyPrefix()
Returns the value of the S3KeyPrefix property for this object.

Returns:
The value of the S3KeyPrefix property for this object.

setS3KeyPrefix

public void setS3KeyPrefix(String s3KeyPrefix)
Sets the value of the S3KeyPrefix property for this object.

Parameters:
s3KeyPrefix - The new value for the S3KeyPrefix property for this object.

withS3KeyPrefix

public UpdateTrailRequest withS3KeyPrefix(String s3KeyPrefix)
Sets the value of the S3KeyPrefix property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
s3KeyPrefix - The new value for the S3KeyPrefix property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getSnsTopicName

public String getSnsTopicName()
Returns the value of the SnsTopicName property for this object.

Returns:
The value of the SnsTopicName property for this object.

setSnsTopicName

public void setSnsTopicName(String snsTopicName)
Sets the value of the SnsTopicName property for this object.

Parameters:
snsTopicName - The new value for the SnsTopicName property for this object.

withSnsTopicName

public UpdateTrailRequest withSnsTopicName(String snsTopicName)
Sets the value of the SnsTopicName property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
snsTopicName - The new value for the SnsTopicName property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

isIncludeGlobalServiceEvents

public Boolean isIncludeGlobalServiceEvents()
Returns the value of the IncludeGlobalServiceEvents property for this object.

Returns:
The value of the IncludeGlobalServiceEvents property for this object.

setIncludeGlobalServiceEvents

public void setIncludeGlobalServiceEvents(Boolean includeGlobalServiceEvents)
Sets the value of the IncludeGlobalServiceEvents property for this object.

Parameters:
includeGlobalServiceEvents - The new value for the IncludeGlobalServiceEvents property for this object.

withIncludeGlobalServiceEvents

public UpdateTrailRequest withIncludeGlobalServiceEvents(Boolean includeGlobalServiceEvents)
Sets the value of the IncludeGlobalServiceEvents property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
includeGlobalServiceEvents - The new value for the IncludeGlobalServiceEvents property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getIncludeGlobalServiceEvents

public Boolean getIncludeGlobalServiceEvents()
Returns the value of the IncludeGlobalServiceEvents property for this object.

Returns:
The value of the IncludeGlobalServiceEvents property for this object.

getTrail

public Trail getTrail()
Represents the Trail structure that contains the CloudTrail setting for an account.

Returns:
Represents the Trail structure that contains the CloudTrail setting for an account.

setTrail

public void setTrail(Trail trail)
Represents the Trail structure that contains the CloudTrail setting for an account.

Parameters:
trail - Represents the Trail structure that contains the CloudTrail setting for an account.

withTrail

public UpdateTrailRequest withTrail(Trail trail)
Represents the Trail structure that contains the CloudTrail setting for an account.

Returns a reference to this object so that method calls can be chained together.

Parameters:
trail - Represents the Trail structure that contains the CloudTrail setting for an account.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2016. All rights reserved.