com.amazonaws.services.ec2.model
Class CreateSpotDatafeedSubscriptionRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.CreateSpotDatafeedSubscriptionRequest

public class CreateSpotDatafeedSubscriptionRequest
extends AmazonWebServiceRequest

Container for the parameters to the CreateSpotDatafeedSubscription operation.

Creates the data feed for Spot Instances, enabling you to view Spot Instance usage logs. You can create one data feed per account.

For conceptual information about Spot Instances, refer to the Amazon Elastic Compute Cloud Developer Guide or Amazon Elastic Compute Cloud User Guide .

See Also:
AmazonEC2.createSpotDatafeedSubscription(CreateSpotDatafeedSubscriptionRequest)

Constructor Summary
CreateSpotDatafeedSubscriptionRequest()
          Default constructor for a new CreateSpotDatafeedSubscriptionRequest object.
CreateSpotDatafeedSubscriptionRequest(String bucket)
          Constructs a new CreateSpotDatafeedSubscriptionRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 String getBucket()
          The Amazon S3 bucket in which to store the Spot Instance datafeed.
 String getPrefix()
          The prefix that is prepended to datafeed files.
 int hashCode()
           
 void setBucket(String bucket)
          The Amazon S3 bucket in which to store the Spot Instance datafeed.
 void setPrefix(String prefix)
          The prefix that is prepended to datafeed files.
 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)
          The prefix that is prepended to datafeed files.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials
 
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(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.
Method Detail

getBucket

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

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

setBucket

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

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

withBucket

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

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.
Returns:
A reference to this updated object so that method calls can be chained together.

getPrefix

public String getPrefix()
The prefix that is prepended to datafeed files.

Returns:
The prefix that is prepended to datafeed files.

setPrefix

public void setPrefix(String prefix)
The prefix that is prepended to datafeed files.

Parameters:
prefix - The prefix that is prepended to datafeed files.

withPrefix

public CreateSpotDatafeedSubscriptionRequest withPrefix(String prefix)
The prefix that is prepended to datafeed files.

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

Parameters:
prefix - The prefix that is prepended to datafeed files.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

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

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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