Class PolicyGrantingServiceAccess
- java.lang.Object
-
- software.amazon.awssdk.services.iam.model.PolicyGrantingServiceAccess
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PolicyGrantingServiceAccess.Builder,PolicyGrantingServiceAccess>
@Generated("software.amazon.awssdk:codegen") public final class PolicyGrantingServiceAccess extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PolicyGrantingServiceAccess.Builder,PolicyGrantingServiceAccess>
Contains details about the permissions policies that are attached to the specified identity (user, group, or role).
This data type is an element of the ListPoliciesGrantingServiceAccessEntry object.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePolicyGrantingServiceAccess.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PolicyGrantingServiceAccess.Builderbuilder()StringentityName()The name of the entity (user or role) to which the inline policy is attached.PolicyOwnerEntityTypeentityType()The type of entity (user or role) that used the policy to access the service to which the inline policy is attached.StringentityTypeAsString()The type of entity (user or role) that used the policy to access the service to which the inline policy is attached.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringpolicyArn()Returns the value of the PolicyArn property for this object.StringpolicyName()The policy name.PolicyTypepolicyType()The policy type.StringpolicyTypeAsString()The policy type.List<SdkField<?>>sdkFields()static Class<? extends PolicyGrantingServiceAccess.Builder>serializableBuilderClass()PolicyGrantingServiceAccess.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
policyName
public final String policyName()
The policy name.
- Returns:
- The policy name.
-
policyType
public final PolicyType policyType()
The policy type. For more information about these policy types, see Managed policies and inline policies in the IAM User Guide.
If the service returns an enum value that is not available in the current SDK version,
policyTypewill returnPolicyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompolicyTypeAsString().- Returns:
- The policy type. For more information about these policy types, see Managed policies and inline policies in the IAM User Guide.
- See Also:
PolicyType
-
policyTypeAsString
public final String policyTypeAsString()
The policy type. For more information about these policy types, see Managed policies and inline policies in the IAM User Guide.
If the service returns an enum value that is not available in the current SDK version,
policyTypewill returnPolicyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompolicyTypeAsString().- Returns:
- The policy type. For more information about these policy types, see Managed policies and inline policies in the IAM User Guide.
- See Also:
PolicyType
-
policyArn
public final String policyArn()
Returns the value of the PolicyArn property for this object.- Returns:
- The value of the PolicyArn property for this object.
-
entityType
public final PolicyOwnerEntityType entityType()
The type of entity (user or role) that used the policy to access the service to which the inline policy is attached.
This field is null for managed policies. For more information about these policy types, see Managed policies and inline policies in the IAM User Guide.
If the service returns an enum value that is not available in the current SDK version,
entityTypewill returnPolicyOwnerEntityType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromentityTypeAsString().- Returns:
- The type of entity (user or role) that used the policy to access the service to which the inline policy
is attached.
This field is null for managed policies. For more information about these policy types, see Managed policies and inline policies in the IAM User Guide.
- See Also:
PolicyOwnerEntityType
-
entityTypeAsString
public final String entityTypeAsString()
The type of entity (user or role) that used the policy to access the service to which the inline policy is attached.
This field is null for managed policies. For more information about these policy types, see Managed policies and inline policies in the IAM User Guide.
If the service returns an enum value that is not available in the current SDK version,
entityTypewill returnPolicyOwnerEntityType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromentityTypeAsString().- Returns:
- The type of entity (user or role) that used the policy to access the service to which the inline policy
is attached.
This field is null for managed policies. For more information about these policy types, see Managed policies and inline policies in the IAM User Guide.
- See Also:
PolicyOwnerEntityType
-
entityName
public final String entityName()
The name of the entity (user or role) to which the inline policy is attached.
This field is null for managed policies. For more information about these policy types, see Managed policies and inline policies in the IAM User Guide.
- Returns:
- The name of the entity (user or role) to which the inline policy is attached.
This field is null for managed policies. For more information about these policy types, see Managed policies and inline policies in the IAM User Guide.
-
toBuilder
public PolicyGrantingServiceAccess.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PolicyGrantingServiceAccess.Builder,PolicyGrantingServiceAccess>
-
builder
public static PolicyGrantingServiceAccess.Builder builder()
-
serializableBuilderClass
public static Class<? extends PolicyGrantingServiceAccess.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.
-
-