Class OwnerProperties
- java.lang.Object
-
- software.amazon.awssdk.services.datazone.model.OwnerProperties
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<OwnerProperties.Builder,OwnerProperties>
@Generated("software.amazon.awssdk:codegen") public final class OwnerProperties extends Object implements SdkPojo, Serializable, ToCopyableBuilder<OwnerProperties.Builder,OwnerProperties>
The properties of a domain unit's owner.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceOwnerProperties.Builderstatic classOwnerProperties.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OwnerProperties.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static OwnerPropertiesfromGroup(Consumer<OwnerGroupProperties.Builder> group)Create an instance of this class withgroup()initialized to the given value.static OwnerPropertiesfromGroup(OwnerGroupProperties group)Create an instance of this class withgroup()initialized to the given value.static OwnerPropertiesfromUser(Consumer<OwnerUserProperties.Builder> user)Create an instance of this class withuser()initialized to the given value.static OwnerPropertiesfromUser(OwnerUserProperties user)Create an instance of this class withuser()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)OwnerGroupPropertiesgroup()Specifies that the domain unit owner is a group.inthashCode()List<SdkField<?>>sdkFields()static Class<? extends OwnerProperties.Builder>serializableBuilderClass()OwnerProperties.BuildertoBuilder()StringtoString()Returns a string representation of this object.OwnerProperties.Typetype()Retrieve an enum value representing which member of this object is populated.OwnerUserPropertiesuser()Specifies that the domain unit owner is a user.-
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
-
group
public final OwnerGroupProperties group()
Specifies that the domain unit owner is a group.
- Returns:
- Specifies that the domain unit owner is a group.
-
user
public final OwnerUserProperties user()
Specifies that the domain unit owner is a user.
- Returns:
- Specifies that the domain unit owner is a user.
-
toBuilder
public OwnerProperties.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<OwnerProperties.Builder,OwnerProperties>
-
builder
public static OwnerProperties.Builder builder()
-
serializableBuilderClass
public static Class<? extends OwnerProperties.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.
-
fromGroup
public static OwnerProperties fromGroup(OwnerGroupProperties group)
Create an instance of this class withgroup()initialized to the given value.Specifies that the domain unit owner is a group.
- Parameters:
group- Specifies that the domain unit owner is a group.
-
fromGroup
public static OwnerProperties fromGroup(Consumer<OwnerGroupProperties.Builder> group)
Create an instance of this class withgroup()initialized to the given value.Specifies that the domain unit owner is a group.
- Parameters:
group- Specifies that the domain unit owner is a group.
-
fromUser
public static OwnerProperties fromUser(OwnerUserProperties user)
Create an instance of this class withuser()initialized to the given value.Specifies that the domain unit owner is a user.
- Parameters:
user- Specifies that the domain unit owner is a user.
-
fromUser
public static OwnerProperties fromUser(Consumer<OwnerUserProperties.Builder> user)
Create an instance of this class withuser()initialized to the given value.Specifies that the domain unit owner is a user.
- Parameters:
user- Specifies that the domain unit owner is a user.
-
type
public OwnerProperties.Type type()
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beOwnerProperties.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beOwnerProperties.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-