@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TransitGatewayRegistrationStateReason extends Object implements Serializable, Cloneable, StructuredPojo
Describes the status of a transit gateway registration.
| Constructor and Description |
|---|
TransitGatewayRegistrationStateReason() |
| Modifier and Type | Method and Description |
|---|---|
TransitGatewayRegistrationStateReason |
clone() |
boolean |
equals(Object obj) |
String |
getCode()
The code for the state reason.
|
String |
getMessage()
The message for the state reason.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setCode(String code)
The code for the state reason.
|
void |
setMessage(String message)
The message for the state reason.
|
String |
toString()
Returns a string representation of this object.
|
TransitGatewayRegistrationStateReason |
withCode(String code)
The code for the state reason.
|
TransitGatewayRegistrationStateReason |
withCode(TransitGatewayRegistrationState code)
The code for the state reason.
|
TransitGatewayRegistrationStateReason |
withMessage(String message)
The message for the state reason.
|
public TransitGatewayRegistrationStateReason()
public void setCode(String code)
The code for the state reason.
code - The code for the state reason.TransitGatewayRegistrationStatepublic String getCode()
The code for the state reason.
TransitGatewayRegistrationStatepublic TransitGatewayRegistrationStateReason withCode(String code)
The code for the state reason.
code - The code for the state reason.TransitGatewayRegistrationStatepublic TransitGatewayRegistrationStateReason withCode(TransitGatewayRegistrationState code)
The code for the state reason.
code - The code for the state reason.TransitGatewayRegistrationStatepublic void setMessage(String message)
The message for the state reason.
message - The message for the state reason.public String getMessage()
The message for the state reason.
public TransitGatewayRegistrationStateReason withMessage(String message)
The message for the state reason.
message - The message for the state reason.public String toString()
toString in class ObjectObject.toString()public TransitGatewayRegistrationStateReason clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.