@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BucketState extends Object implements Serializable, Cloneable, StructuredPojo
Describes the state of an Amazon Lightsail bucket.
| Constructor and Description |
|---|
BucketState() |
| Modifier and Type | Method and Description |
|---|---|
BucketState |
clone() |
boolean |
equals(Object obj) |
String |
getCode()
The state code of the bucket.
|
String |
getMessage()
A message that describes the state of the bucket.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setCode(String code)
The state code of the bucket.
|
void |
setMessage(String message)
A message that describes the state of the bucket.
|
String |
toString()
Returns a string representation of this object.
|
BucketState |
withCode(String code)
The state code of the bucket.
|
BucketState |
withMessage(String message)
A message that describes the state of the bucket.
|
public void setCode(String code)
The state code of the bucket.
The following codes are possible:
OK - The bucket is in a running state.
Unknown - Creation of the bucket might have timed-out. You might want to delete the bucket and
create a new one.
code - The state code of the bucket.
The following codes are possible:
OK - The bucket is in a running state.
Unknown - Creation of the bucket might have timed-out. You might want to delete the bucket
and create a new one.
public String getCode()
The state code of the bucket.
The following codes are possible:
OK - The bucket is in a running state.
Unknown - Creation of the bucket might have timed-out. You might want to delete the bucket and
create a new one.
The following codes are possible:
OK - The bucket is in a running state.
Unknown - Creation of the bucket might have timed-out. You might want to delete the bucket
and create a new one.
public BucketState withCode(String code)
The state code of the bucket.
The following codes are possible:
OK - The bucket is in a running state.
Unknown - Creation of the bucket might have timed-out. You might want to delete the bucket and
create a new one.
code - The state code of the bucket.
The following codes are possible:
OK - The bucket is in a running state.
Unknown - Creation of the bucket might have timed-out. You might want to delete the bucket
and create a new one.
public void setMessage(String message)
A message that describes the state of the bucket.
message - A message that describes the state of the bucket.public String getMessage()
A message that describes the state of the bucket.
public BucketState withMessage(String message)
A message that describes the state of the bucket.
message - A message that describes the state of the bucket.public String toString()
toString in class ObjectObject.toString()public BucketState clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.