Class BucketInfo
- java.lang.Object
-
- software.amazon.awssdk.services.s3.model.BucketInfo
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<BucketInfo.Builder,BucketInfo>
@Generated("software.amazon.awssdk:codegen") public final class BucketInfo extends Object implements SdkPojo, Serializable, ToCopyableBuilder<BucketInfo.Builder,BucketInfo>
Specifies the information about the bucket that will be created. For more information about directory buckets, see Directory buckets in the Amazon S3 User Guide.
This functionality is only supported by directory buckets.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBucketInfo.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BucketInfo.Builderbuilder()DataRedundancydataRedundancy()The number of Zone (Availability Zone or Local Zone) that's used for redundancy for the bucket.StringdataRedundancyAsString()The number of Zone (Availability Zone or Local Zone) that's used for redundancy for the bucket.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends BucketInfo.Builder>serializableBuilderClass()BucketInfo.BuildertoBuilder()StringtoString()Returns a string representation of this object.BucketTypetype()The type of bucket.StringtypeAsString()The type of bucket.-
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
-
dataRedundancy
public final DataRedundancy dataRedundancy()
The number of Zone (Availability Zone or Local Zone) that's used for redundancy for the bucket.
If the service returns an enum value that is not available in the current SDK version,
dataRedundancywill returnDataRedundancy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdataRedundancyAsString().- Returns:
- The number of Zone (Availability Zone or Local Zone) that's used for redundancy for the bucket.
- See Also:
DataRedundancy
-
dataRedundancyAsString
public final String dataRedundancyAsString()
The number of Zone (Availability Zone or Local Zone) that's used for redundancy for the bucket.
If the service returns an enum value that is not available in the current SDK version,
dataRedundancywill returnDataRedundancy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdataRedundancyAsString().- Returns:
- The number of Zone (Availability Zone or Local Zone) that's used for redundancy for the bucket.
- See Also:
DataRedundancy
-
type
public final BucketType type()
The type of bucket.
If the service returns an enum value that is not available in the current SDK version,
typewill returnBucketType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of bucket.
- See Also:
BucketType
-
typeAsString
public final String typeAsString()
The type of bucket.
If the service returns an enum value that is not available in the current SDK version,
typewill returnBucketType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of bucket.
- See Also:
BucketType
-
toBuilder
public BucketInfo.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<BucketInfo.Builder,BucketInfo>
-
builder
public static BucketInfo.Builder builder()
-
serializableBuilderClass
public static Class<? extends BucketInfo.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-