@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsIamAttachedManagedPolicy extends Object implements Serializable, Cloneable, StructuredPojo
A managed policy that is attached to an IAM principal.
| Constructor and Description |
|---|
AwsIamAttachedManagedPolicy() |
| Modifier and Type | Method and Description |
|---|---|
AwsIamAttachedManagedPolicy |
clone() |
boolean |
equals(Object obj) |
String |
getPolicyArn()
The ARN of the policy.
|
String |
getPolicyName()
The name of the policy.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setPolicyArn(String policyArn)
The ARN of the policy.
|
void |
setPolicyName(String policyName)
The name of the policy.
|
String |
toString()
Returns a string representation of this object.
|
AwsIamAttachedManagedPolicy |
withPolicyArn(String policyArn)
The ARN of the policy.
|
AwsIamAttachedManagedPolicy |
withPolicyName(String policyName)
The name of the policy.
|
public void setPolicyName(String policyName)
The name of the policy.
policyName - The name of the policy.public String getPolicyName()
The name of the policy.
public AwsIamAttachedManagedPolicy withPolicyName(String policyName)
The name of the policy.
policyName - The name of the policy.public void setPolicyArn(String policyArn)
The ARN of the policy.
policyArn - The ARN of the policy.public String getPolicyArn()
The ARN of the policy.
public AwsIamAttachedManagedPolicy withPolicyArn(String policyArn)
The ARN of the policy.
policyArn - The ARN of the policy.public String toString()
toString in class ObjectObject.toString()public AwsIamAttachedManagedPolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2022. All rights reserved.