@Generated(value="com.ibm.cos.v2:codegen") public final class HeadBucketResponse extends S3Response implements ToCopyableBuilder<HeadBucketResponse.Builder,HeadBucketResponse>
| Modifier and Type | Class and Description |
|---|---|
static interface |
HeadBucketResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
accessPointAlias()
Indicates whether the bucket name used in the request is an access point alias.
|
String |
bucketLocationName()
The name of the location where the bucket will be created.
|
LocationType |
bucketLocationType()
The type of location where the bucket is created.
|
String |
bucketLocationTypeAsString()
The type of location where the bucket is created.
|
String |
bucketRegion()
The Region that the bucket is located.
|
static HeadBucketResponse.Builder |
builder() |
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)
Used to retrieve the value of a field from any class that extends
SdkResponse. |
int |
hashCode() |
String |
IBMSSEKPCrk()
Indicates the CRK header of the HEAD request
|
Boolean |
IBMSSEKPEnabled()
Indicates whether key protect has been enabled on bucket.
|
Map<String,SdkField<?>> |
sdkFieldNameToField() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends HeadBucketResponse.Builder> |
serializableBuilderClass() |
HeadBucketResponse.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.
|
responseMetadatasdkHttpResponseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final LocationType bucketLocationType()
The type of location where the bucket is created.
This functionality is only supported by directory buckets.
If the service returns an enum value that is not available in the current SDK version,
bucketLocationType will return LocationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by
the service is available from bucketLocationTypeAsString().
This functionality is only supported by directory buckets.
LocationTypepublic final String bucketLocationTypeAsString()
The type of location where the bucket is created.
This functionality is only supported by directory buckets.
If the service returns an enum value that is not available in the current SDK version,
bucketLocationType will return LocationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by
the service is available from bucketLocationTypeAsString().
This functionality is only supported by directory buckets.
LocationTypepublic final String bucketLocationName()
The name of the location where the bucket will be created.
For directory buckets, the Zone ID of the Availability Zone or the Local Zone where the bucket is created. An
example Zone ID value for an Availability Zone is usw2-az1.
This functionality is only supported by directory buckets.
For directory buckets, the Zone ID of the Availability Zone or the Local Zone where the bucket is
created. An example Zone ID value for an Availability Zone is usw2-az1.
This functionality is only supported by directory buckets.
public final String bucketRegion()
The Region that the bucket is located.
public final Boolean accessPointAlias()
Indicates whether the bucket name used in the request is an access point alias.
For directory buckets, the value of this field is false.
For directory buckets, the value of this field is false.
public final Boolean IBMSSEKPEnabled()
Indicates whether key protect has been enabled on bucket.
public final String IBMSSEKPCrk()
Indicates the CRK header of the HEAD request
public HeadBucketResponse.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<HeadBucketResponse.Builder,HeadBucketResponse>toBuilder in class AwsResponsepublic static HeadBucketResponse.Builder builder()
public static Class<? extends HeadBucketResponse.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsResponsepublic final boolean equals(Object obj)
equals in class AwsResponsepublic 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 <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkResponseSdkResponse. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkResponse.getValueForField(String, Class) method will
again be available.getValueForField in class SdkResponsefieldName - The name of the member to be retrieved.clazz - The class to cast the returned object to.public final Map<String,SdkField<?>> sdkFieldNameToField()
sdkFieldNameToField in interface SdkPojoCopyright © 2026. All rights reserved.