Class DomainUnitOwnerProperties
- java.lang.Object
-
- software.amazon.awssdk.services.datazone.model.DomainUnitOwnerProperties
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DomainUnitOwnerProperties.Builder,DomainUnitOwnerProperties>
@Generated("software.amazon.awssdk:codegen") public final class DomainUnitOwnerProperties extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DomainUnitOwnerProperties.Builder,DomainUnitOwnerProperties>
The properties of the domain unit owner.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDomainUnitOwnerProperties.Builderstatic classDomainUnitOwnerProperties.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DomainUnitOwnerProperties.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static DomainUnitOwnerPropertiesfromGroup(Consumer<DomainUnitGroupProperties.Builder> group)Create an instance of this class withgroup()initialized to the given value.static DomainUnitOwnerPropertiesfromGroup(DomainUnitGroupProperties group)Create an instance of this class withgroup()initialized to the given value.static DomainUnitOwnerPropertiesfromUser(Consumer<DomainUnitUserProperties.Builder> user)Create an instance of this class withuser()initialized to the given value.static DomainUnitOwnerPropertiesfromUser(DomainUnitUserProperties user)Create an instance of this class withuser()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)DomainUnitGroupPropertiesgroup()Indicates that the domain unit owner is a group.inthashCode()List<SdkField<?>>sdkFields()static Class<? extends DomainUnitOwnerProperties.Builder>serializableBuilderClass()DomainUnitOwnerProperties.BuildertoBuilder()StringtoString()Returns a string representation of this object.DomainUnitOwnerProperties.Typetype()Retrieve an enum value representing which member of this object is populated.DomainUnitUserPropertiesuser()Indicates 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 DomainUnitGroupProperties group()
Indicates that the domain unit owner is a group.
- Returns:
- Indicates that the domain unit owner is a group.
-
user
public final DomainUnitUserProperties user()
Indicates that the domain unit owner is a user.
- Returns:
- Indicates that the domain unit owner is a user.
-
toBuilder
public DomainUnitOwnerProperties.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DomainUnitOwnerProperties.Builder,DomainUnitOwnerProperties>
-
builder
public static DomainUnitOwnerProperties.Builder builder()
-
serializableBuilderClass
public static Class<? extends DomainUnitOwnerProperties.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 DomainUnitOwnerProperties fromGroup(DomainUnitGroupProperties group)
Create an instance of this class withgroup()initialized to the given value.Indicates that the domain unit owner is a group.
- Parameters:
group- Indicates that the domain unit owner is a group.
-
fromGroup
public static DomainUnitOwnerProperties fromGroup(Consumer<DomainUnitGroupProperties.Builder> group)
Create an instance of this class withgroup()initialized to the given value.Indicates that the domain unit owner is a group.
- Parameters:
group- Indicates that the domain unit owner is a group.
-
fromUser
public static DomainUnitOwnerProperties fromUser(DomainUnitUserProperties user)
Create an instance of this class withuser()initialized to the given value.Indicates that the domain unit owner is a user.
- Parameters:
user- Indicates that the domain unit owner is a user.
-
fromUser
public static DomainUnitOwnerProperties fromUser(Consumer<DomainUnitUserProperties.Builder> user)
Create an instance of this class withuser()initialized to the given value.Indicates that the domain unit owner is a user.
- Parameters:
user- Indicates that the domain unit owner is a user.
-
type
public DomainUnitOwnerProperties.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 beDomainUnitOwnerProperties.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 beDomainUnitOwnerProperties.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-