public class ListIdentityPoliciesResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<java.lang.String> |
policyNames
A list of names of policies that apply to the specified identity.
|
Constructor and Description |
---|
ListIdentityPoliciesResult() |
Modifier and Type | Method and Description |
---|---|
ListIdentityPoliciesResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getPolicyNames()
A list of names of policies that apply to the specified identity.
|
int |
hashCode() |
void |
setPolicyNames(java.util.Collection<java.lang.String> policyNames)
A list of names of policies that apply to the specified identity.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListIdentityPoliciesResult |
withPolicyNames(java.util.Collection<java.lang.String> policyNames)
A list of names of policies that apply to the specified identity.
|
ListIdentityPoliciesResult |
withPolicyNames(java.lang.String... policyNames)
A list of names of policies that apply to the specified identity.
|
private SdkInternalList<java.lang.String> policyNames
A list of names of policies that apply to the specified identity.
public java.util.List<java.lang.String> getPolicyNames()
A list of names of policies that apply to the specified identity.
public void setPolicyNames(java.util.Collection<java.lang.String> policyNames)
A list of names of policies that apply to the specified identity.
policyNames
- A list of names of policies that apply to the specified identity.public ListIdentityPoliciesResult withPolicyNames(java.lang.String... policyNames)
A list of names of policies that apply to the specified identity.
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.
policyNames
- A list of names of policies that apply to the specified identity.public ListIdentityPoliciesResult withPolicyNames(java.util.Collection<java.lang.String> policyNames)
A list of names of policies that apply to the specified identity.
policyNames
- A list of names of policies that apply to the specified identity.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ListIdentityPoliciesResult clone()
clone
in class java.lang.Object