@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PolicyGrantingServiceAccess extends Object implements Serializable, Cloneable
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.
Constructor and Description |
---|
PolicyGrantingServiceAccess() |
Modifier and Type | Method and Description |
---|---|
PolicyGrantingServiceAccess |
clone() |
boolean |
equals(Object obj) |
String |
getEntityName()
The name of the entity (user or role) to which the inline policy is attached.
|
String |
getEntityType()
The type of entity (user or role) that used the policy to access the service to which the inline policy is
attached.
|
String |
getPolicyArn() |
String |
getPolicyName()
The policy name.
|
String |
getPolicyType()
The policy type.
|
int |
hashCode() |
void |
setEntityName(String entityName)
The name of the entity (user or role) to which the inline policy is attached.
|
void |
setEntityType(String entityType)
The type of entity (user or role) that used the policy to access the service to which the inline policy is
attached.
|
void |
setPolicyArn(String policyArn) |
void |
setPolicyName(String policyName)
The policy name.
|
void |
setPolicyType(String policyType)
The policy type.
|
String |
toString()
Returns a string representation of this object.
|
PolicyGrantingServiceAccess |
withEntityName(String entityName)
The name of the entity (user or role) to which the inline policy is attached.
|
PolicyGrantingServiceAccess |
withEntityType(PolicyOwnerEntityType entityType)
The type of entity (user or role) that used the policy to access the service to which the inline policy is
attached.
|
PolicyGrantingServiceAccess |
withEntityType(String entityType)
The type of entity (user or role) that used the policy to access the service to which the inline policy is
attached.
|
PolicyGrantingServiceAccess |
withPolicyArn(String policyArn) |
PolicyGrantingServiceAccess |
withPolicyName(String policyName)
The policy name.
|
PolicyGrantingServiceAccess |
withPolicyType(PolicyType policyType)
The policy type.
|
PolicyGrantingServiceAccess |
withPolicyType(String policyType)
The policy type.
|
public void setPolicyName(String policyName)
The policy name.
policyName
- The policy name.public String getPolicyName()
The policy name.
public PolicyGrantingServiceAccess withPolicyName(String policyName)
The policy name.
policyName
- The policy name.public void setPolicyType(String policyType)
The policy type. For more information about these policy types, see Managed Policies and Inline Policies in the IAM User Guide.
policyType
- The policy type. For more information about these policy types, see Managed
Policies and Inline Policies in the IAM User Guide.PolicyType
public String getPolicyType()
The policy type. For more information about these policy types, see Managed Policies and Inline Policies in the IAM User Guide.
PolicyType
public PolicyGrantingServiceAccess withPolicyType(String policyType)
The policy type. For more information about these policy types, see Managed Policies and Inline Policies in the IAM User Guide.
policyType
- The policy type. For more information about these policy types, see Managed
Policies and Inline Policies in the IAM User Guide.PolicyType
public PolicyGrantingServiceAccess withPolicyType(PolicyType policyType)
The policy type. For more information about these policy types, see Managed Policies and Inline Policies in the IAM User Guide.
policyType
- The policy type. For more information about these policy types, see Managed
Policies and Inline Policies in the IAM User Guide.PolicyType
public void setPolicyArn(String policyArn)
policyArn
- public String getPolicyArn()
public PolicyGrantingServiceAccess withPolicyArn(String policyArn)
policyArn
- public void setEntityType(String 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.
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.
PolicyOwnerEntityType
public String getEntityType()
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.
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.
PolicyOwnerEntityType
public PolicyGrantingServiceAccess withEntityType(String 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.
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.
PolicyOwnerEntityType
public PolicyGrantingServiceAccess withEntityType(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.
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.
PolicyOwnerEntityType
public void setEntityName(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.
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.
public String getEntityName()
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.
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.
public PolicyGrantingServiceAccess withEntityName(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.
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.
public String toString()
toString
in class Object
Object.toString()
public PolicyGrantingServiceAccess clone()