com.amazonaws.services.ec2.model
Class CreateSpotDatafeedSubscriptionRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.CreateSpotDatafeedSubscriptionRequest
All Implemented Interfaces:
DryRunSupportedRequest<CreateSpotDatafeedSubscriptionRequest>, java.io.Serializable

public class CreateSpotDatafeedSubscriptionRequest
extends AmazonWebServiceRequest
implements java.io.Serializable, DryRunSupportedRequest<CreateSpotDatafeedSubscriptionRequest>

Container for the parameters to the 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 .

See Also:
AmazonEC2.createSpotDatafeedSubscription(CreateSpotDatafeedSubscriptionRequest), Serialized Form

Constructor Summary
CreateSpotDatafeedSubscriptionRequest()
          Default constructor for a new CreateSpotDatafeedSubscriptionRequest object.
CreateSpotDatafeedSubscriptionRequest(java.lang.String bucket)
          Constructs a new CreateSpotDatafeedSubscriptionRequest object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.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.
 java.lang.String getPrefix()
          A prefix for the datafeed file names.
 int hashCode()
           
 void setBucket(java.lang.String bucket)
          The Amazon S3 bucket in which to store the Spot Instance datafeed.
 void setPrefix(java.lang.String prefix)
          A prefix for the datafeed file names.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CreateSpotDatafeedSubscriptionRequest withBucket(java.lang.String bucket)
          The Amazon S3 bucket in which to store the Spot Instance datafeed.
 CreateSpotDatafeedSubscriptionRequest withPrefix(java.lang.String prefix)
          A prefix for the datafeed file names.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateSpotDatafeedSubscriptionRequest

public CreateSpotDatafeedSubscriptionRequest()
Default constructor for a new CreateSpotDatafeedSubscriptionRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


CreateSpotDatafeedSubscriptionRequest

public CreateSpotDatafeedSubscriptionRequest(java.lang.String bucket)
Constructs a new CreateSpotDatafeedSubscriptionRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
bucket - The Amazon S3 bucket in which to store the Spot Instance datafeed.

Constraints: Must be a valid bucket associated with your AWS account.

Method Detail

getBucket

public java.lang.String getBucket()
The Amazon S3 bucket in which to store the Spot Instance datafeed.

Constraints: Must be a valid bucket associated with your AWS account.

Returns:
The Amazon S3 bucket in which to store the Spot Instance datafeed.

Constraints: Must be a valid bucket associated with your AWS account.


setBucket

public void setBucket(java.lang.String bucket)
The Amazon S3 bucket in which to store the Spot Instance datafeed.

Constraints: Must be a valid bucket associated with your AWS account.

Parameters:
bucket - The Amazon S3 bucket in which to store the Spot Instance datafeed.

Constraints: Must be a valid bucket associated with your AWS account.


withBucket

public CreateSpotDatafeedSubscriptionRequest withBucket(java.lang.String bucket)
The Amazon S3 bucket in which to store the Spot Instance datafeed.

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.

Parameters:
bucket - The Amazon S3 bucket in which to store the Spot Instance datafeed.

Constraints: Must be a valid bucket associated with your AWS account.

Returns:
A reference to this updated object so that method calls can be chained together.

getPrefix

public java.lang.String getPrefix()
A prefix for the datafeed file names.

Returns:
A prefix for the datafeed file names.

setPrefix

public void setPrefix(java.lang.String prefix)
A prefix for the datafeed file names.

Parameters:
prefix - A prefix for the datafeed file names.

withPrefix

public CreateSpotDatafeedSubscriptionRequest withPrefix(java.lang.String prefix)
A prefix for the datafeed file names.

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

Parameters:
prefix - A prefix for the datafeed file names.
Returns:
A reference to this updated object so that method calls can be chained together.

getDryRunRequest

public Request<CreateSpotDatafeedSubscriptionRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.

Specified by:
getDryRunRequest in interface DryRunSupportedRequest<CreateSpotDatafeedSubscriptionRequest>

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.