Class PolicyGrantPrincipal
- java.lang.Object
-
- software.amazon.awssdk.services.datazone.model.PolicyGrantPrincipal
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PolicyGrantPrincipal.Builder,PolicyGrantPrincipal>
@Generated("software.amazon.awssdk:codegen") public final class PolicyGrantPrincipal extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PolicyGrantPrincipal.Builder,PolicyGrantPrincipal>
The policy grant principal.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePolicyGrantPrincipal.Builderstatic classPolicyGrantPrincipal.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PolicyGrantPrincipal.Builderbuilder()DomainUnitPolicyGrantPrincipaldomainUnit()The domain unit of the policy grant principal.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static PolicyGrantPrincipalfromDomainUnit(Consumer<DomainUnitPolicyGrantPrincipal.Builder> domainUnit)Create an instance of this class withdomainUnit()initialized to the given value.static PolicyGrantPrincipalfromDomainUnit(DomainUnitPolicyGrantPrincipal domainUnit)Create an instance of this class withdomainUnit()initialized to the given value.static PolicyGrantPrincipalfromGroup(Consumer<GroupPolicyGrantPrincipal.Builder> group)Create an instance of this class withgroup()initialized to the given value.static PolicyGrantPrincipalfromGroup(GroupPolicyGrantPrincipal group)Create an instance of this class withgroup()initialized to the given value.static PolicyGrantPrincipalfromProject(Consumer<ProjectPolicyGrantPrincipal.Builder> project)Create an instance of this class withproject()initialized to the given value.static PolicyGrantPrincipalfromProject(ProjectPolicyGrantPrincipal project)Create an instance of this class withproject()initialized to the given value.static PolicyGrantPrincipalfromUser(Consumer<UserPolicyGrantPrincipal.Builder> user)Create an instance of this class withuser()initialized to the given value.static PolicyGrantPrincipalfromUser(UserPolicyGrantPrincipal user)Create an instance of this class withuser()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)GroupPolicyGrantPrincipalgroup()The group of the policy grant principal.inthashCode()ProjectPolicyGrantPrincipalproject()The project of the policy grant principal.List<SdkField<?>>sdkFields()static Class<? extends PolicyGrantPrincipal.Builder>serializableBuilderClass()PolicyGrantPrincipal.BuildertoBuilder()StringtoString()Returns a string representation of this object.PolicyGrantPrincipal.Typetype()Retrieve an enum value representing which member of this object is populated.UserPolicyGrantPrincipaluser()The user of the policy grant principal.-
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
-
domainUnit
public final DomainUnitPolicyGrantPrincipal domainUnit()
The domain unit of the policy grant principal.
- Returns:
- The domain unit of the policy grant principal.
-
group
public final GroupPolicyGrantPrincipal group()
The group of the policy grant principal.
- Returns:
- The group of the policy grant principal.
-
project
public final ProjectPolicyGrantPrincipal project()
The project of the policy grant principal.
- Returns:
- The project of the policy grant principal.
-
user
public final UserPolicyGrantPrincipal user()
The user of the policy grant principal.
- Returns:
- The user of the policy grant principal.
-
toBuilder
public PolicyGrantPrincipal.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PolicyGrantPrincipal.Builder,PolicyGrantPrincipal>
-
builder
public static PolicyGrantPrincipal.Builder builder()
-
serializableBuilderClass
public static Class<? extends PolicyGrantPrincipal.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.
-
fromDomainUnit
public static PolicyGrantPrincipal fromDomainUnit(DomainUnitPolicyGrantPrincipal domainUnit)
Create an instance of this class withdomainUnit()initialized to the given value.The domain unit of the policy grant principal.
- Parameters:
domainUnit- The domain unit of the policy grant principal.
-
fromDomainUnit
public static PolicyGrantPrincipal fromDomainUnit(Consumer<DomainUnitPolicyGrantPrincipal.Builder> domainUnit)
Create an instance of this class withdomainUnit()initialized to the given value.The domain unit of the policy grant principal.
- Parameters:
domainUnit- The domain unit of the policy grant principal.
-
fromGroup
public static PolicyGrantPrincipal fromGroup(GroupPolicyGrantPrincipal group)
Create an instance of this class withgroup()initialized to the given value.The group of the policy grant principal.
- Parameters:
group- The group of the policy grant principal.
-
fromGroup
public static PolicyGrantPrincipal fromGroup(Consumer<GroupPolicyGrantPrincipal.Builder> group)
Create an instance of this class withgroup()initialized to the given value.The group of the policy grant principal.
- Parameters:
group- The group of the policy grant principal.
-
fromProject
public static PolicyGrantPrincipal fromProject(ProjectPolicyGrantPrincipal project)
Create an instance of this class withproject()initialized to the given value.The project of the policy grant principal.
- Parameters:
project- The project of the policy grant principal.
-
fromProject
public static PolicyGrantPrincipal fromProject(Consumer<ProjectPolicyGrantPrincipal.Builder> project)
Create an instance of this class withproject()initialized to the given value.The project of the policy grant principal.
- Parameters:
project- The project of the policy grant principal.
-
fromUser
public static PolicyGrantPrincipal fromUser(UserPolicyGrantPrincipal user)
Create an instance of this class withuser()initialized to the given value.The user of the policy grant principal.
- Parameters:
user- The user of the policy grant principal.
-
fromUser
public static PolicyGrantPrincipal fromUser(Consumer<UserPolicyGrantPrincipal.Builder> user)
Create an instance of this class withuser()initialized to the given value.The user of the policy grant principal.
- Parameters:
user- The user of the policy grant principal.
-
type
public PolicyGrantPrincipal.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 bePolicyGrantPrincipal.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 bePolicyGrantPrincipal.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-