public class ListIdentityPoliciesResult extends Object implements Serializable, Cloneable
Represents a list of policy names returned from a successful
ListIdentityPolicies
request.
Constructor and Description |
---|
ListIdentityPoliciesResult() |
Modifier and Type | Method and Description |
---|---|
ListIdentityPoliciesResult |
clone() |
boolean |
equals(Object obj) |
List<String> |
getPolicyNames()
A list of names of policies that apply to the specified identity.
|
int |
hashCode() |
void |
setPolicyNames(Collection<String> policyNames)
A list of names of policies that apply to the specified identity.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListIdentityPoliciesResult |
withPolicyNames(Collection<String> policyNames)
A list of names of policies that apply to the specified identity.
|
ListIdentityPoliciesResult |
withPolicyNames(String... policyNames)
A list of names of policies that apply to the specified identity.
|
public List<String> getPolicyNames()
public void setPolicyNames(Collection<String> policyNames)
policyNames
- A list of names of policies that apply to the specified identity.public ListIdentityPoliciesResult withPolicyNames(String... policyNames)
NOTE: This method appends the values to the existing list (if
any). Use setPolicyNames(java.util.Collection)
or withPolicyNames(java.util.Collection)
if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
policyNames
- A list of names of policies that apply to the specified identity.public ListIdentityPoliciesResult withPolicyNames(Collection<String> policyNames)
Returns a reference to this object so that method calls can be chained together.
policyNames
- A list of names of policies that apply to the specified identity.public String toString()
toString
in class Object
Object.toString()
public ListIdentityPoliciesResult clone()
Copyright © 2015. All rights reserved.