Class SpotDatafeedSubscription
- java.lang.Object
-
- com.amazonaws.services.ec2.model.SpotDatafeedSubscription
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class SpotDatafeedSubscription extends Object implements Serializable, Cloneable
Describes the data feed for a Spot instance.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SpotDatafeedSubscription()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
setOwnerId
public void setOwnerId(String ownerId)
The AWS account ID of the account.
- Parameters:
ownerId
- The AWS account ID of the account.
-
getOwnerId
public String getOwnerId()
The AWS account ID of the account.
- Returns:
- The AWS account ID of the account.
-
withOwnerId
public SpotDatafeedSubscription withOwnerId(String ownerId)
The AWS account ID of the account.
- Parameters:
ownerId
- The AWS account ID of the account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setBucket
public void setBucket(String bucket)
The Amazon S3 bucket where the Spot instance data feed is located.
- Parameters:
bucket
- The Amazon S3 bucket where the Spot instance data feed is located.
-
getBucket
public String getBucket()
The Amazon S3 bucket where the Spot instance data feed is located.
- Returns:
- The Amazon S3 bucket where the Spot instance data feed is located.
-
withBucket
public SpotDatafeedSubscription withBucket(String bucket)
The Amazon S3 bucket where the Spot instance data feed is located.
- Parameters:
bucket
- The Amazon S3 bucket where the Spot instance data feed is located.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPrefix
public void setPrefix(String prefix)
The prefix that is prepended to data feed files.
- Parameters:
prefix
- The prefix that is prepended to data feed files.
-
getPrefix
public String getPrefix()
The prefix that is prepended to data feed files.
- Returns:
- The prefix that is prepended to data feed files.
-
withPrefix
public SpotDatafeedSubscription withPrefix(String prefix)
The prefix that is prepended to data feed files.
- Parameters:
prefix
- The prefix that is prepended to data feed files.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setState
public void setState(String state)
The state of the Spot instance data feed subscription.
- Parameters:
state
- The state of the Spot instance data feed subscription.- See Also:
DatafeedSubscriptionState
-
getState
public String getState()
The state of the Spot instance data feed subscription.
- Returns:
- The state of the Spot instance data feed subscription.
- See Also:
DatafeedSubscriptionState
-
withState
public SpotDatafeedSubscription withState(String state)
The state of the Spot instance data feed subscription.
- Parameters:
state
- The state of the Spot instance data feed subscription.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DatafeedSubscriptionState
-
setState
public void setState(DatafeedSubscriptionState state)
The state of the Spot instance data feed subscription.
- Parameters:
state
- The state of the Spot instance data feed subscription.- See Also:
DatafeedSubscriptionState
-
withState
public SpotDatafeedSubscription withState(DatafeedSubscriptionState state)
The state of the Spot instance data feed subscription.
- Parameters:
state
- The state of the Spot instance data feed subscription.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DatafeedSubscriptionState
-
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.
-
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.
-
withFault
public SpotDatafeedSubscription withFault(SpotInstanceStateFault fault)
The fault codes for the Spot instance request, if any.
- Parameters:
fault
- The fault codes for the Spot instance request, if any.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SpotDatafeedSubscription clone()
-
-