@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListPoliciesGrantingServiceAccessEntry 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 used as a response element in the ListPoliciesGrantingServiceAccess operation.
Constructor and Description |
---|
ListPoliciesGrantingServiceAccessEntry() |
Modifier and Type | Method and Description |
---|---|
ListPoliciesGrantingServiceAccessEntry |
clone() |
boolean |
equals(Object obj) |
List<PolicyGrantingServiceAccess> |
getPolicies()
The
PoliciesGrantingServiceAccess object that contains details about the policy. |
String |
getServiceNamespace()
The namespace of the service that was accessed.
|
int |
hashCode() |
void |
setPolicies(Collection<PolicyGrantingServiceAccess> policies)
The
PoliciesGrantingServiceAccess object that contains details about the policy. |
void |
setServiceNamespace(String serviceNamespace)
The namespace of the service that was accessed.
|
String |
toString()
Returns a string representation of this object.
|
ListPoliciesGrantingServiceAccessEntry |
withPolicies(Collection<PolicyGrantingServiceAccess> policies)
The
PoliciesGrantingServiceAccess object that contains details about the policy. |
ListPoliciesGrantingServiceAccessEntry |
withPolicies(PolicyGrantingServiceAccess... policies)
The
PoliciesGrantingServiceAccess object that contains details about the policy. |
ListPoliciesGrantingServiceAccessEntry |
withServiceNamespace(String serviceNamespace)
The namespace of the service that was accessed.
|
public ListPoliciesGrantingServiceAccessEntry()
public void setServiceNamespace(String serviceNamespace)
The namespace of the service that was accessed.
To learn the service namespace of a service, go to Actions, Resources, and Condition Keys for AWS Services in the IAM User Guide. Choose the name of the
service to view details for that service. In the first paragraph, find the service prefix. For example,
(service prefix: a4b)
. For more information about service namespaces, see AWS Service Namespaces in the AWS General Reference.
serviceNamespace
- The namespace of the service that was accessed.
To learn the service namespace of a service, go to Actions, Resources, and Condition Keys for AWS Services in the IAM User Guide. Choose the name
of the service to view details for that service. In the first paragraph, find the service prefix. For
example, (service prefix: a4b)
. For more information about service namespaces, see AWS Service Namespaces in the AWS General Reference.
public String getServiceNamespace()
The namespace of the service that was accessed.
To learn the service namespace of a service, go to Actions, Resources, and Condition Keys for AWS Services in the IAM User Guide. Choose the name of the
service to view details for that service. In the first paragraph, find the service prefix. For example,
(service prefix: a4b)
. For more information about service namespaces, see AWS Service Namespaces in the AWS General Reference.
To learn the service namespace of a service, go to Actions, Resources, and Condition Keys for AWS Services in the IAM User Guide. Choose the
name of the service to view details for that service. In the first paragraph, find the service prefix.
For example, (service prefix: a4b)
. For more information about service namespaces, see AWS Service Namespaces in the AWS General Reference.
public ListPoliciesGrantingServiceAccessEntry withServiceNamespace(String serviceNamespace)
The namespace of the service that was accessed.
To learn the service namespace of a service, go to Actions, Resources, and Condition Keys for AWS Services in the IAM User Guide. Choose the name of the
service to view details for that service. In the first paragraph, find the service prefix. For example,
(service prefix: a4b)
. For more information about service namespaces, see AWS Service Namespaces in the AWS General Reference.
serviceNamespace
- The namespace of the service that was accessed.
To learn the service namespace of a service, go to Actions, Resources, and Condition Keys for AWS Services in the IAM User Guide. Choose the name
of the service to view details for that service. In the first paragraph, find the service prefix. For
example, (service prefix: a4b)
. For more information about service namespaces, see AWS Service Namespaces in the AWS General Reference.
public List<PolicyGrantingServiceAccess> getPolicies()
The PoliciesGrantingServiceAccess
object that contains details about the policy.
PoliciesGrantingServiceAccess
object that contains details about the policy.public void setPolicies(Collection<PolicyGrantingServiceAccess> policies)
The PoliciesGrantingServiceAccess
object that contains details about the policy.
policies
- The PoliciesGrantingServiceAccess
object that contains details about the policy.public ListPoliciesGrantingServiceAccessEntry withPolicies(PolicyGrantingServiceAccess... policies)
The PoliciesGrantingServiceAccess
object that contains details about the policy.
NOTE: This method appends the values to the existing list (if any). Use
setPolicies(java.util.Collection)
or withPolicies(java.util.Collection)
if you want to override
the existing values.
policies
- The PoliciesGrantingServiceAccess
object that contains details about the policy.public ListPoliciesGrantingServiceAccessEntry withPolicies(Collection<PolicyGrantingServiceAccess> policies)
The PoliciesGrantingServiceAccess
object that contains details about the policy.
policies
- The PoliciesGrantingServiceAccess
object that contains details about the policy.public String toString()
toString
in class Object
Object.toString()
public ListPoliciesGrantingServiceAccessEntry clone()