|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.cloudtrail.model.CreateTrailRequest
public class CreateTrailRequest
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:
AWSCloudTrail.createTrail(CreateTrailRequest)
,
Serialized FormConstructor 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 |
---|
public CreateTrailRequest()
Method Detail |
---|
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()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |