@Generated(value="com.ibm.cos.v2:codegen") public final class Bucket extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Bucket.Builder,Bucket>
In terms of implementation, a Bucket is a resource.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Bucket.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
bucketRegion()
BucketRegion indicates the Amazon Web Services region where the bucket is located. |
static Bucket.Builder |
builder() |
Instant |
creationDate()
Date the bucket was created.
|
String |
creationTemplateId()
IBM
Returns the creationTemplateId associated with the bucket.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
locationConstraint()
IBM
Returns the locationConstraint associated with the bucket
This will only have populated information when used in conjunction with
the Extended Listing support to the COS S3 GET Service API
|
String |
name()
The name of the bucket.
|
Owner |
owner()
Gets the bucket's owner.
|
Map<String,SdkField<?>> |
sdkFieldNameToField() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends Bucket.Builder> |
serializableBuilderClass() |
Bucket.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String name()
The name of the bucket.
public final Instant creationDate()
Date the bucket was created. This date can change when making changes to your bucket, such as editing its bucket policy.
public final String bucketRegion()
BucketRegion indicates the Amazon Web Services region where the bucket is located. If the request
contains at least one valid parameter, it is included in the response.
BucketRegion indicates the Amazon Web Services region where the bucket is located. If the
request contains at least one valid parameter, it is included in the response.public Owner owner()
null
if the bucket's owner is unknown.null if it is unknown.public String locationConstraint()
public String creationTemplateId()
public Bucket.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<Bucket.Builder,Bucket>public static Bucket.Builder builder()
public static Class<? extends Bucket.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojoSdkPojo class,
and is generated based on a service model.
If an SdkPojo class does not have any inherited fields, equalsBySdkFields
and equals are essentially the same.
equalsBySdkFields in interface SdkPojoobj - the object to be compared withpublic final String toString()
public final Map<String,SdkField<?>> sdkFieldNameToField()
sdkFieldNameToField in interface SdkPojoCopyright © 2026. All rights reserved.