@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CustomerManagedPolicyReference extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the name and path of the IAM customer managed policy. You must have an IAM policy that matches the name and path in each Amazon Web Services account where you want to deploy your permission set.
Constructor and Description |
---|
CustomerManagedPolicyReference() |
Modifier and Type | Method and Description |
---|---|
CustomerManagedPolicyReference |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the policy document.
|
String |
getPath()
The path for the policy.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setName(String name)
The name of the policy document.
|
void |
setPath(String path)
The path for the policy.
|
String |
toString()
Returns a string representation of this object.
|
CustomerManagedPolicyReference |
withName(String name)
The name of the policy document.
|
CustomerManagedPolicyReference |
withPath(String path)
The path for the policy.
|
public void setName(String name)
The name of the policy document.
name
- The name of the policy document.public String getName()
The name of the policy document.
public CustomerManagedPolicyReference withName(String name)
The name of the policy document.
name
- The name of the policy document.public void setPath(String path)
The path for the policy. The default is /
. For more information, see Friendly names and paths in the Identity and Access Management user guide.
path
- The path for the policy. The default is /
. For more information, see Friendly names and paths in the Identity and Access Management user guide.public String getPath()
The path for the policy. The default is /
. For more information, see Friendly names and paths in the Identity and Access Management user guide.
/
. For more information, see Friendly names and paths in the Identity and Access Management user guide.public CustomerManagedPolicyReference withPath(String path)
The path for the policy. The default is /
. For more information, see Friendly names and paths in the Identity and Access Management user guide.
path
- The path for the policy. The default is /
. For more information, see Friendly names and paths in the Identity and Access Management user guide.public String toString()
toString
in class Object
Object.toString()
public CustomerManagedPolicyReference clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.