com.amazonaws.services.ec2.model
Class SpotDatafeedSubscription

java.lang.Object
  extended by com.amazonaws.services.ec2.model.SpotDatafeedSubscription
All Implemented Interfaces:
java.io.Serializable

public class SpotDatafeedSubscription
extends java.lang.Object
implements java.io.Serializable

Describes the datafeed for a Spot Instance.

See Also:
Serialized Form

Constructor Summary
SpotDatafeedSubscription()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getBucket()
          The Amazon S3 bucket where the Spot Instance datafeed is located.
 SpotInstanceStateFault getFault()
          The fault codes for the Spot Instance request, if any.
 java.lang.String getOwnerId()
          The AWS account ID of the account.
 java.lang.String getPrefix()
          The prefix that is prepended to datafeed files.
 java.lang.String getState()
          The state of the Spot Instance datafeed subscription.
 int hashCode()
           
 void setBucket(java.lang.String bucket)
          The Amazon S3 bucket where the Spot Instance datafeed is located.
 void setFault(SpotInstanceStateFault fault)
          The fault codes for the Spot Instance request, if any.
 void setOwnerId(java.lang.String ownerId)
          The AWS account ID of the account.
 void setPrefix(java.lang.String prefix)
          The prefix that is prepended to datafeed files.
 void setState(DatafeedSubscriptionState state)
          The state of the Spot Instance datafeed subscription.
 void setState(java.lang.String state)
          The state of the Spot Instance datafeed subscription.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 SpotDatafeedSubscription withBucket(java.lang.String bucket)
          The Amazon S3 bucket where the Spot Instance datafeed is located.
 SpotDatafeedSubscription withFault(SpotInstanceStateFault fault)
          The fault codes for the Spot Instance request, if any.
 SpotDatafeedSubscription withOwnerId(java.lang.String ownerId)
          The AWS account ID of the account.
 SpotDatafeedSubscription withPrefix(java.lang.String prefix)
          The prefix that is prepended to datafeed files.
 SpotDatafeedSubscription withState(DatafeedSubscriptionState state)
          The state of the Spot Instance datafeed subscription.
 SpotDatafeedSubscription withState(java.lang.String state)
          The state of the Spot Instance datafeed subscription.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpotDatafeedSubscription

public SpotDatafeedSubscription()
Method Detail

getOwnerId

public java.lang.String getOwnerId()
The AWS account ID of the account.

Returns:
The AWS account ID of the account.

setOwnerId

public void setOwnerId(java.lang.String ownerId)
The AWS account ID of the account.

Parameters:
ownerId - The AWS account ID of the account.

withOwnerId

public SpotDatafeedSubscription withOwnerId(java.lang.String ownerId)
The AWS account ID of the account.

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

Parameters:
ownerId - The AWS account ID of the account.
Returns:
A reference to this updated object so that method calls can be chained together.

getBucket

public java.lang.String getBucket()
The Amazon S3 bucket where the Spot Instance datafeed is located.

Returns:
The Amazon S3 bucket where the Spot Instance datafeed is located.

setBucket

public void setBucket(java.lang.String bucket)
The Amazon S3 bucket where the Spot Instance datafeed is located.

Parameters:
bucket - The Amazon S3 bucket where the Spot Instance datafeed is located.

withBucket

public SpotDatafeedSubscription withBucket(java.lang.String bucket)
The Amazon S3 bucket where the Spot Instance datafeed is located.

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

Parameters:
bucket - The Amazon S3 bucket where the Spot Instance datafeed is located.
Returns:
A reference to this updated object so that method calls can be chained together.

getPrefix

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

Returns:
The prefix that is prepended to datafeed files.

setPrefix

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

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

withPrefix

public SpotDatafeedSubscription withPrefix(java.lang.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.

getState

public java.lang.String getState()
The state of the Spot Instance datafeed subscription.

Constraints:
Allowed Values: Active, Inactive

Returns:
The state of the Spot Instance datafeed subscription.
See Also:
DatafeedSubscriptionState

setState

public void setState(java.lang.String state)
The state of the Spot Instance datafeed subscription.

Constraints:
Allowed Values: Active, Inactive

Parameters:
state - The state of the Spot Instance datafeed subscription.
See Also:
DatafeedSubscriptionState

withState

public SpotDatafeedSubscription withState(java.lang.String state)
The state of the Spot Instance datafeed subscription.

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

Constraints:
Allowed Values: Active, Inactive

Parameters:
state - The state of the Spot Instance datafeed subscription.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
DatafeedSubscriptionState

setState

public void setState(DatafeedSubscriptionState state)
The state of the Spot Instance datafeed subscription.

Constraints:
Allowed Values: Active, Inactive

Parameters:
state - The state of the Spot Instance datafeed subscription.
See Also:
DatafeedSubscriptionState

withState

public SpotDatafeedSubscription withState(DatafeedSubscriptionState state)
The state of the Spot Instance datafeed subscription.

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

Constraints:
Allowed Values: Active, Inactive

Parameters:
state - The state of the Spot Instance datafeed subscription.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
DatafeedSubscriptionState

getFault

public SpotInstanceStateFault getFault()
The fault codes for the Spot Instance request, if any.

Returns:
The fault codes for the Spot Instance request, if any.

setFault

public void setFault(SpotInstanceStateFault fault)
The fault codes for the Spot Instance request, if any.

Parameters:
fault - The fault codes for the Spot Instance request, if any.

withFault

public SpotDatafeedSubscription withFault(SpotInstanceStateFault fault)
The fault codes for the Spot Instance request, if any.

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

Parameters:
fault - The fault codes for the Spot Instance request, if any.
Returns:
A reference to this updated object so that method calls can be chained together.

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.