public class CancelledSpotInstanceRequest
extends java.lang.Object
implements java.io.Serializable
Describes a request to cancel a Spot instance.
Constructor and Description |
---|
CancelledSpotInstanceRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getSpotInstanceRequestId()
The ID of the Spot instance request.
|
java.lang.String |
getState()
The state of the Spot instance request.
|
int |
hashCode() |
void |
setSpotInstanceRequestId(java.lang.String spotInstanceRequestId)
The ID of the Spot instance request.
|
void |
setState(CancelSpotInstanceRequestState state)
The state of the Spot instance request.
|
void |
setState(java.lang.String state)
The state of the Spot instance request.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CancelledSpotInstanceRequest |
withSpotInstanceRequestId(java.lang.String spotInstanceRequestId)
The ID of the Spot instance request.
|
CancelledSpotInstanceRequest |
withState(CancelSpotInstanceRequestState state)
The state of the Spot instance request.
|
CancelledSpotInstanceRequest |
withState(java.lang.String state)
The state of the Spot instance request.
|
public java.lang.String getSpotInstanceRequestId()
public void setSpotInstanceRequestId(java.lang.String spotInstanceRequestId)
spotInstanceRequestId
- The ID of the Spot instance request.public CancelledSpotInstanceRequest withSpotInstanceRequestId(java.lang.String spotInstanceRequestId)
Returns a reference to this object so that method calls can be chained together.
spotInstanceRequestId
- The ID of the Spot instance request.public java.lang.String getState()
Constraints:
Allowed Values: active, open, closed, cancelled, completed
CancelSpotInstanceRequestState
public void setState(java.lang.String state)
Constraints:
Allowed Values: active, open, closed, cancelled, completed
state
- The state of the Spot instance request.CancelSpotInstanceRequestState
public CancelledSpotInstanceRequest withState(java.lang.String state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: active, open, closed, cancelled, completed
state
- The state of the Spot instance request.CancelSpotInstanceRequestState
public void setState(CancelSpotInstanceRequestState state)
Constraints:
Allowed Values: active, open, closed, cancelled, completed
state
- The state of the Spot instance request.CancelSpotInstanceRequestState
public CancelledSpotInstanceRequest withState(CancelSpotInstanceRequestState state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: active, open, closed, cancelled, completed
state
- The state of the Spot instance request.CancelSpotInstanceRequestState
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.