Class AddPolicyGrantRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.datazone.model.DataZoneRequest
-
- software.amazon.awssdk.services.datazone.model.AddPolicyGrantRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<AddPolicyGrantRequest.Builder,AddPolicyGrantRequest>
@Generated("software.amazon.awssdk:codegen") public final class AddPolicyGrantRequest extends DataZoneRequest implements ToCopyableBuilder<AddPolicyGrantRequest.Builder,AddPolicyGrantRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAddPolicyGrantRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AddPolicyGrantRequest.Builderbuilder()StringclientToken()A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.PolicyGrantDetaildetail()The details of the policy grant.StringdomainIdentifier()The ID of the domain where you want to add a policy grant.StringentityIdentifier()The ID of the entity (resource) to which you want to add a policy grant.TargetEntityTypeentityType()The type of entity (resource) to which the grant is added.StringentityTypeAsString()The type of entity (resource) to which the grant is added.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()ManagedPolicyTypepolicyType()The type of policy that you want to grant.StringpolicyTypeAsString()The type of policy that you want to grant.PolicyGrantPrincipalprincipal()The principal to whom the permissions are granted.List<SdkField<?>>sdkFields()static Class<? extends AddPolicyGrantRequest.Builder>serializableBuilderClass()AddPolicyGrantRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
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
-
clientToken
public final String clientToken()
A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
- Returns:
- A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
-
detail
public final PolicyGrantDetail detail()
The details of the policy grant.
- Returns:
- The details of the policy grant.
-
domainIdentifier
public final String domainIdentifier()
The ID of the domain where you want to add a policy grant.
- Returns:
- The ID of the domain where you want to add a policy grant.
-
entityIdentifier
public final String entityIdentifier()
The ID of the entity (resource) to which you want to add a policy grant.
- Returns:
- The ID of the entity (resource) to which you want to add a policy grant.
-
entityType
public final TargetEntityType entityType()
The type of entity (resource) to which the grant is added.
If the service returns an enum value that is not available in the current SDK version,
entityTypewill returnTargetEntityType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromentityTypeAsString().- Returns:
- The type of entity (resource) to which the grant is added.
- See Also:
TargetEntityType
-
entityTypeAsString
public final String entityTypeAsString()
The type of entity (resource) to which the grant is added.
If the service returns an enum value that is not available in the current SDK version,
entityTypewill returnTargetEntityType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromentityTypeAsString().- Returns:
- The type of entity (resource) to which the grant is added.
- See Also:
TargetEntityType
-
policyType
public final ManagedPolicyType policyType()
The type of policy that you want to grant.
If the service returns an enum value that is not available in the current SDK version,
policyTypewill returnManagedPolicyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompolicyTypeAsString().- Returns:
- The type of policy that you want to grant.
- See Also:
ManagedPolicyType
-
policyTypeAsString
public final String policyTypeAsString()
The type of policy that you want to grant.
If the service returns an enum value that is not available in the current SDK version,
policyTypewill returnManagedPolicyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompolicyTypeAsString().- Returns:
- The type of policy that you want to grant.
- See Also:
ManagedPolicyType
-
principal
public final PolicyGrantPrincipal principal()
The principal to whom the permissions are granted.
- Returns:
- The principal to whom the permissions are granted.
-
toBuilder
public AddPolicyGrantRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AddPolicyGrantRequest.Builder,AddPolicyGrantRequest>- Specified by:
toBuilderin classDataZoneRequest
-
builder
public static AddPolicyGrantRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends AddPolicyGrantRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-