Class BucketState
- java.lang.Object
-
- software.amazon.awssdk.services.lightsail.model.BucketState
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<BucketState.Builder,BucketState>
@Generated("software.amazon.awssdk:codegen") public final class BucketState extends Object implements SdkPojo, Serializable, ToCopyableBuilder<BucketState.Builder,BucketState>
Describes the state of an Amazon Lightsail bucket.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBucketState.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BucketState.Builderbuilder()Stringcode()The state code of the bucket.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringmessage()A message that describes the state of the bucket.List<SdkField<?>>sdkFields()static Class<? extends BucketState.Builder>serializableBuilderClass()BucketState.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
code
public final 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.
- Returns:
- 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.
-
-
-
message
public final String message()
A message that describes the state of the bucket.
- Returns:
- A message that describes the state of the bucket.
-
toBuilder
public BucketState.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<BucketState.Builder,BucketState>
-
builder
public static BucketState.Builder builder()
-
serializableBuilderClass
public static Class<? extends BucketState.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-