com.amazonaws.services.cloudtrail.model
Class CreateTrailRequest

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

public class CreateTrailRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the CreateTrail operation.

From the command line, use create-subscription.

Creates a trail that specifies the settings for delivery of log data to an Amazon S3 bucket. The request includes a Trail structure that specifies the following:

See Also:
AWSCloudTrail.createTrail(CreateTrailRequest), Serialized Form

Constructor Summary
CreateTrailRequest()
           
 
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()
          Contains the Trail structure that specifies the settings for each trail.
 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)
          Contains the Trail structure that specifies the settings for each trail.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CreateTrailRequest withIncludeGlobalServiceEvents(Boolean includeGlobalServiceEvents)
          Sets the value of the IncludeGlobalServiceEvents property for this object.
 CreateTrailRequest withName(String name)
          Sets the value of the Name property for this object.
 CreateTrailRequest withS3BucketName(String s3BucketName)
          Sets the value of the S3BucketName property for this object.
 CreateTrailRequest withS3KeyPrefix(String s3KeyPrefix)
          Sets the value of the S3KeyPrefix property for this object.
 CreateTrailRequest withSnsTopicName(String snsTopicName)
          Sets the value of the SnsTopicName property for this object.
 CreateTrailRequest withTrail(Trail trail)
          Contains the Trail structure that specifies the settings for each trail.
 
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

CreateTrailRequest

public CreateTrailRequest()
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 CreateTrailRequest 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 CreateTrailRequest 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 CreateTrailRequest 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 CreateTrailRequest 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 CreateTrailRequest 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()
Contains the Trail structure that specifies the settings for each trail.

Returns:
Contains the Trail structure that specifies the settings for each trail.

setTrail

public void setTrail(Trail trail)
Contains the Trail structure that specifies the settings for each trail.

Parameters:
trail - Contains the Trail structure that specifies the settings for each trail.

withTrail

public CreateTrailRequest withTrail(Trail trail)
Contains the Trail structure that specifies the settings for each trail.

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

Parameters:
trail - Contains the Trail structure that specifies the settings for each trail.
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.