@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CapacityTaskFailure extends Object implements Serializable, Cloneable, StructuredPojo
The capacity tasks that failed.
Constructor and Description |
---|
CapacityTaskFailure() |
Modifier and Type | Method and Description |
---|---|
CapacityTaskFailure |
clone() |
boolean |
equals(Object obj) |
String |
getReason()
The reason that the specified capacity task failed.
|
String |
getType()
The type of failure.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setReason(String reason)
The reason that the specified capacity task failed.
|
void |
setType(String type)
The type of failure.
|
String |
toString()
Returns a string representation of this object.
|
CapacityTaskFailure |
withReason(String reason)
The reason that the specified capacity task failed.
|
CapacityTaskFailure |
withType(CapacityTaskFailureType type)
The type of failure.
|
CapacityTaskFailure |
withType(String type)
The type of failure.
|
public void setReason(String reason)
The reason that the specified capacity task failed.
reason
- The reason that the specified capacity task failed.public String getReason()
The reason that the specified capacity task failed.
public CapacityTaskFailure withReason(String reason)
The reason that the specified capacity task failed.
reason
- The reason that the specified capacity task failed.public void setType(String type)
The type of failure.
type
- The type of failure.CapacityTaskFailureType
public String getType()
The type of failure.
CapacityTaskFailureType
public CapacityTaskFailure withType(String type)
The type of failure.
type
- The type of failure.CapacityTaskFailureType
public CapacityTaskFailure withType(CapacityTaskFailureType type)
The type of failure.
type
- The type of failure.CapacityTaskFailureType
public String toString()
toString
in class Object
Object.toString()
public CapacityTaskFailure clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.