@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PolicySummary extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about a policy, but does not include the content. To see the content of a policy, see DescribePolicy.
Constructor and Description |
---|
PolicySummary() |
Modifier and Type | Method and Description |
---|---|
PolicySummary |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the policy.
|
Boolean |
getAwsManaged()
A boolean value that indicates whether the specified policy is an AWS managed policy.
|
String |
getDescription()
The description of the policy.
|
String |
getId()
The unique identifier (ID) of the policy.
|
String |
getName()
The friendly name of the policy.
|
String |
getType()
The type of policy.
|
int |
hashCode() |
Boolean |
isAwsManaged()
A boolean value that indicates whether the specified policy is an AWS managed policy.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the policy.
|
void |
setAwsManaged(Boolean awsManaged)
A boolean value that indicates whether the specified policy is an AWS managed policy.
|
void |
setDescription(String description)
The description of the policy.
|
void |
setId(String id)
The unique identifier (ID) of the policy.
|
void |
setName(String name)
The friendly name of the policy.
|
void |
setType(PolicyType type)
The type of policy.
|
void |
setType(String type)
The type of policy.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
PolicySummary |
withArn(String arn)
The Amazon Resource Name (ARN) of the policy.
|
PolicySummary |
withAwsManaged(Boolean awsManaged)
A boolean value that indicates whether the specified policy is an AWS managed policy.
|
PolicySummary |
withDescription(String description)
The description of the policy.
|
PolicySummary |
withId(String id)
The unique identifier (ID) of the policy.
|
PolicySummary |
withName(String name)
The friendly name of the policy.
|
PolicySummary |
withType(PolicyType type)
The type of policy.
|
PolicySummary |
withType(String type)
The type of policy.
|
public void setId(String id)
The unique identifier (ID) of the policy.
The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lower-case letters or digits.
id
- The unique identifier (ID) of the policy.
The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lower-case letters or digits.
public String getId()
The unique identifier (ID) of the policy.
The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lower-case letters or digits.
The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lower-case letters or digits.
public PolicySummary withId(String id)
The unique identifier (ID) of the policy.
The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lower-case letters or digits.
id
- The unique identifier (ID) of the policy.
The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lower-case letters or digits.
public void setArn(String arn)
The Amazon Resource Name (ARN) of the policy.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the AWS Organizations User Guide.
arn
- The Amazon Resource Name (ARN) of the policy.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the AWS Organizations User Guide.
public String getArn()
The Amazon Resource Name (ARN) of the policy.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the AWS Organizations User Guide.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the AWS Organizations User Guide.
public PolicySummary withArn(String arn)
The Amazon Resource Name (ARN) of the policy.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the AWS Organizations User Guide.
arn
- The Amazon Resource Name (ARN) of the policy.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the AWS Organizations User Guide.
public void setName(String name)
The friendly name of the policy.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
name
- The friendly name of the policy.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
public String getName()
The friendly name of the policy.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
public PolicySummary withName(String name)
The friendly name of the policy.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
name
- The friendly name of the policy.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
public void setDescription(String description)
The description of the policy.
description
- The description of the policy.public String getDescription()
The description of the policy.
public PolicySummary withDescription(String description)
The description of the policy.
description
- The description of the policy.public void setType(String type)
The type of policy.
type
- The type of policy.PolicyType
public String getType()
The type of policy.
PolicyType
public PolicySummary withType(String type)
The type of policy.
type
- The type of policy.PolicyType
public void setType(PolicyType type)
The type of policy.
type
- The type of policy.PolicyType
public PolicySummary withType(PolicyType type)
The type of policy.
type
- The type of policy.PolicyType
public void setAwsManaged(Boolean awsManaged)
A boolean value that indicates whether the specified policy is an AWS managed policy. If true, then you can attach the policy to roots, OUs, or accounts, but you cannot edit it.
awsManaged
- A boolean value that indicates whether the specified policy is an AWS managed policy. If true, then you
can attach the policy to roots, OUs, or accounts, but you cannot edit it.public Boolean getAwsManaged()
A boolean value that indicates whether the specified policy is an AWS managed policy. If true, then you can attach the policy to roots, OUs, or accounts, but you cannot edit it.
public PolicySummary withAwsManaged(Boolean awsManaged)
A boolean value that indicates whether the specified policy is an AWS managed policy. If true, then you can attach the policy to roots, OUs, or accounts, but you cannot edit it.
awsManaged
- A boolean value that indicates whether the specified policy is an AWS managed policy. If true, then you
can attach the policy to roots, OUs, or accounts, but you cannot edit it.public Boolean isAwsManaged()
A boolean value that indicates whether the specified policy is an AWS managed policy. If true, then you can attach the policy to roots, OUs, or accounts, but you cannot edit it.
public String toString()
toString
in class Object
Object.toString()
public PolicySummary clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.