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