public class CreateSpotDatafeedSubscriptionRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<CreateSpotDatafeedSubscriptionRequest>
CreateSpotDatafeedSubscription operation
.
Creates a datafeed for Spot Instances, enabling you to view Spot Instance usage logs. You can create one data feed per AWS account. For more information, see Spot Instances in the Amazon Elastic Compute Cloud User Guide .
Constructor and Description |
---|
CreateSpotDatafeedSubscriptionRequest()
Default constructor for a new CreateSpotDatafeedSubscriptionRequest object.
|
CreateSpotDatafeedSubscriptionRequest(String bucket)
Constructs a new CreateSpotDatafeedSubscriptionRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getBucket()
The Amazon S3 bucket in which to store the Spot Instance datafeed.
|
Request<CreateSpotDatafeedSubscriptionRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getPrefix()
A prefix for the datafeed file names.
|
int |
hashCode() |
void |
setBucket(String bucket)
The Amazon S3 bucket in which to store the Spot Instance datafeed.
|
void |
setPrefix(String prefix)
A prefix for the datafeed file names.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateSpotDatafeedSubscriptionRequest |
withBucket(String bucket)
The Amazon S3 bucket in which to store the Spot Instance datafeed.
|
CreateSpotDatafeedSubscriptionRequest |
withPrefix(String prefix)
A prefix for the datafeed file names.
|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public CreateSpotDatafeedSubscriptionRequest()
public CreateSpotDatafeedSubscriptionRequest(String bucket)
bucket
- The Amazon S3 bucket in which to store the Spot Instance
datafeed. Constraints: Must be a valid bucket associated with your AWS account.
public String getBucket()
Constraints: Must be a valid bucket associated with your AWS account.
Constraints: Must be a valid bucket associated with your AWS account.
public void setBucket(String bucket)
Constraints: Must be a valid bucket associated with your AWS account.
bucket
- The Amazon S3 bucket in which to store the Spot Instance datafeed.
Constraints: Must be a valid bucket associated with your AWS account.
public CreateSpotDatafeedSubscriptionRequest withBucket(String bucket)
Constraints: Must be a valid bucket associated with your AWS account.
Returns a reference to this object so that method calls can be chained together.
bucket
- The Amazon S3 bucket in which to store the Spot Instance datafeed.
Constraints: Must be a valid bucket associated with your AWS account.
public String getPrefix()
public void setPrefix(String prefix)
prefix
- A prefix for the datafeed file names.public CreateSpotDatafeedSubscriptionRequest withPrefix(String prefix)
Returns a reference to this object so that method calls can be chained together.
prefix
- A prefix for the datafeed file names.public Request<CreateSpotDatafeedSubscriptionRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateSpotDatafeedSubscriptionRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.