@Generated(value="com.ibm.cos.v2:codegen") public final class OwnershipControls extends Object implements SdkPojo, Serializable, ToCopyableBuilder<OwnershipControls.Builder,OwnershipControls>
The container element for a bucket's ownership controls.
| Modifier and Type | Class and Description |
|---|---|
static interface |
OwnershipControls.Builder |
| Modifier and Type | Method and Description |
|---|---|
static OwnershipControls.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) |
int |
hashCode() |
boolean |
hasRules()
For responses, this returns true if the service returned a value for the Rules property.
|
List<OwnershipControlsRule> |
rules()
The container element for an ownership control rule.
|
Map<String,SdkField<?>> |
sdkFieldNameToField() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends OwnershipControls.Builder> |
serializableBuilderClass() |
OwnershipControls.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 boolean hasRules()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final List<OwnershipControlsRule> rules()
The container element for an ownership control rule.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasRules() method.
public OwnershipControls.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<OwnershipControls.Builder,OwnershipControls>public static OwnershipControls.Builder builder()
public static Class<? extends OwnershipControls.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.