public class SpotDatafeedSubscription extends Object implements Serializable, Cloneable
Describes the data feed for a Spot instance.
| Constructor and Description |
|---|
SpotDatafeedSubscription() |
| Modifier and Type | Method and Description |
|---|---|
SpotDatafeedSubscription |
clone() |
boolean |
equals(Object obj) |
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.
|
String |
getOwnerId()
The AWS account ID of the account.
|
String |
getPrefix()
The prefix that is prepended to data feed files.
|
String |
getState()
The state of the Spot instance data feed subscription.
|
int |
hashCode() |
void |
setBucket(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(String ownerId)
The AWS account ID of the account.
|
void |
setPrefix(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(String state)
The state of the Spot instance data feed subscription.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SpotDatafeedSubscription |
withBucket(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(String ownerId)
The AWS account ID of the account.
|
SpotDatafeedSubscription |
withPrefix(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(String state)
The state of the Spot instance data feed subscription.
|
public String getOwnerId()
public void setOwnerId(String ownerId)
ownerId - The AWS account ID of the account.public SpotDatafeedSubscription withOwnerId(String ownerId)
Returns a reference to this object so that method calls can be chained together.
ownerId - The AWS account ID of the account.public String getBucket()
public void setBucket(String bucket)
bucket - The Amazon S3 bucket where the Spot instance data feed is located.public SpotDatafeedSubscription withBucket(String bucket)
Returns a reference to this object so that method calls can be chained together.
bucket - The Amazon S3 bucket where the Spot instance data feed is located.public String getPrefix()
public void setPrefix(String prefix)
prefix - The prefix that is prepended to data feed files.public SpotDatafeedSubscription withPrefix(String prefix)
Returns a reference to this object so that method calls can be chained together.
prefix - The prefix that is prepended to data feed files.public String getState()
Constraints:
Allowed Values: Active, Inactive
DatafeedSubscriptionStatepublic void setState(String state)
Constraints:
Allowed Values: Active, Inactive
state - The state of the Spot instance data feed subscription.DatafeedSubscriptionStatepublic SpotDatafeedSubscription withState(String state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Active, Inactive
state - The state of the Spot instance data feed subscription.DatafeedSubscriptionStatepublic void setState(DatafeedSubscriptionState state)
Constraints:
Allowed Values: Active, Inactive
state - The state of the Spot instance data feed subscription.DatafeedSubscriptionStatepublic SpotDatafeedSubscription withState(DatafeedSubscriptionState state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Active, Inactive
state - The state of the Spot instance data feed subscription.DatafeedSubscriptionStatepublic SpotInstanceStateFault getFault()
public void setFault(SpotInstanceStateFault fault)
fault - The fault codes for the Spot instance request, if any.public SpotDatafeedSubscription withFault(SpotInstanceStateFault fault)
Returns a reference to this object so that method calls can be chained together.
fault - The fault codes for the Spot instance request, if any.public String toString()
toString in class ObjectObject.toString()public SpotDatafeedSubscription clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.