public class SpotDatafeedSubscription
extends java.lang.Object
implements java.io.Serializable
Describes the data feed for a Spot instance.
| Constructor and Description | 
|---|
| SpotDatafeedSubscription() | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
public java.lang.String getOwnerId()
public void setOwnerId(java.lang.String ownerId)
ownerId - The AWS account ID of the account.public SpotDatafeedSubscription withOwnerId(java.lang.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 java.lang.String getBucket()
public void setBucket(java.lang.String bucket)
bucket - The Amazon S3 bucket where the Spot instance data feed is located.public SpotDatafeedSubscription withBucket(java.lang.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 java.lang.String getPrefix()
public void setPrefix(java.lang.String prefix)
prefix - The prefix that is prepended to data feed files.public SpotDatafeedSubscription withPrefix(java.lang.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 java.lang.String getState()
 Constraints:
 Allowed Values: Active, Inactive
DatafeedSubscriptionStatepublic void setState(java.lang.String state)
 Constraints:
 Allowed Values: Active, Inactive
state - The state of the Spot instance data feed subscription.DatafeedSubscriptionStatepublic SpotDatafeedSubscription withState(java.lang.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 java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.