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) |
Trail |
getTrail()
Contains the Trail structure that specifies the settings for
each trail.
|
int |
hashCode() |
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 |
withTrail(Trail trail)
Contains the Trail structure that specifies the settings for
each trail.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
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.