public class SpotDatafeedSubscription
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes the data feed for a Spot instance.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
bucket
The Amazon S3 bucket where the Spot instance data feed is located.
|
private SpotInstanceStateFault |
fault
The fault codes for the Spot instance request, if any.
|
private java.lang.String |
ownerId
The AWS account ID of the account.
|
private java.lang.String |
prefix
The prefix that is prepended to data feed files.
|
private java.lang.String |
state
The state of the Spot instance data feed subscription.
|
Constructor and Description |
---|
SpotDatafeedSubscription() |
Modifier and Type | Method and Description |
---|---|
SpotDatafeedSubscription |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getBucket()
The Amazon S3 bucket where the Spot instance data feed 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 data feed files.
|
java.lang.String |
getState()
The state of the Spot instance data feed subscription.
|
int |
hashCode() |
void |
setBucket(java.lang.String bucket)
The Amazon S3 bucket where the Spot instance data feed 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 data feed files.
|
void |
setState(DatafeedSubscriptionState state)
The state of the Spot instance data feed subscription.
|
void |
setState(java.lang.String state)
The state of the Spot instance data feed 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 data feed 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 data feed files.
|
SpotDatafeedSubscription |
withState(DatafeedSubscriptionState state)
The state of the Spot instance data feed subscription.
|
SpotDatafeedSubscription |
withState(java.lang.String state)
The state of the Spot instance data feed subscription.
|
private java.lang.String ownerId
The AWS account ID of the account.
private java.lang.String bucket
The Amazon S3 bucket where the Spot instance data feed is located.
private java.lang.String prefix
The prefix that is prepended to data feed files.
private java.lang.String state
The state of the Spot instance data feed subscription.
private SpotInstanceStateFault fault
The fault codes for the Spot instance request, if any.
public void setOwnerId(java.lang.String ownerId)
The AWS account ID of the account.
ownerId
- The AWS account ID of the account.public java.lang.String getOwnerId()
The AWS account ID of the account.
public SpotDatafeedSubscription withOwnerId(java.lang.String ownerId)
The AWS account ID of the account.
ownerId
- The AWS account ID of the account.public void setBucket(java.lang.String bucket)
The Amazon S3 bucket where the Spot instance data feed is located.
bucket
- The Amazon S3 bucket where the Spot instance data feed is located.public java.lang.String getBucket()
The Amazon S3 bucket where the Spot instance data feed is located.
public SpotDatafeedSubscription withBucket(java.lang.String bucket)
The Amazon S3 bucket where the Spot instance data feed is located.
bucket
- The Amazon S3 bucket where the Spot instance data feed is located.public void setPrefix(java.lang.String prefix)
The prefix that is prepended to data feed files.
prefix
- The prefix that is prepended to data feed files.public java.lang.String getPrefix()
The prefix that is prepended to data feed files.
public SpotDatafeedSubscription withPrefix(java.lang.String prefix)
The prefix that is prepended to data feed files.
prefix
- The prefix that is prepended to data feed files.public void setState(java.lang.String state)
The state of the Spot instance data feed subscription.
state
- The state of the Spot instance data feed subscription.DatafeedSubscriptionState
public java.lang.String getState()
The state of the Spot instance data feed subscription.
DatafeedSubscriptionState
public SpotDatafeedSubscription withState(java.lang.String state)
The state of the Spot instance data feed subscription.
state
- The state of the Spot instance data feed subscription.DatafeedSubscriptionState
public void setState(DatafeedSubscriptionState state)
The state of the Spot instance data feed subscription.
state
- The state of the Spot instance data feed subscription.DatafeedSubscriptionState
public SpotDatafeedSubscription withState(DatafeedSubscriptionState state)
The state of the Spot instance data feed subscription.
state
- The state of the Spot instance data feed subscription.DatafeedSubscriptionState
public void setFault(SpotInstanceStateFault fault)
The fault codes for the Spot instance request, if any.
fault
- The fault codes for the Spot instance request, if any.public SpotInstanceStateFault getFault()
The fault codes for the Spot instance request, if any.
public SpotDatafeedSubscription withFault(SpotInstanceStateFault fault)
The fault codes for the Spot instance request, if any.
fault
- The fault codes for the Spot instance request, if any.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public SpotDatafeedSubscription clone()
clone
in class java.lang.Object