public class CreateTrailRequest extends AmazonWebServiceRequest implements Serializable
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:
Constructor and Description |
---|
CreateTrailRequest() |
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()
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.
|
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 CreateTrailRequest 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 CreateTrailRequest 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 CreateTrailRequest 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 CreateTrailRequest 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 CreateTrailRequest 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
- Contains the Trail structure that specifies the settings for
each trail.public CreateTrailRequest withTrail(Trail trail)
Returns a reference to this object so that method calls can be chained together.
trail
- Contains the Trail structure that specifies the settings for
each trail.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.