StructuredPojo
, ToCopyableBuilder<PolicySummary.Builder,PolicySummary>
@Generated("software.amazon.awssdk:codegen") public class PolicySummary extends Object implements StructuredPojo, ToCopyableBuilder<PolicySummary.Builder,PolicySummary>
Contains information about a policy, but does not include the content. To see the content of a policy, see DescribePolicy.
Modifier and Type | Class | Description |
---|---|---|
static interface |
PolicySummary.Builder |
Modifier and Type | Method | Description |
---|---|---|
String |
arn() |
The Amazon Resource Name (ARN) of the policy.
|
Boolean |
awsManaged() |
A boolean value that indicates whether the specified policy is an AWS managed policy.
|
static PolicySummary.Builder |
builder() |
|
String |
description() |
The description of the policy.
|
boolean |
equals(Object obj) |
|
int |
hashCode() |
|
String |
id() |
The unique identifier (ID) of the policy.
|
void |
marshall(ProtocolMarshaller protocolMarshaller) |
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
name() |
The friendly name of the policy.
|
static Class<? extends PolicySummary.Builder> |
serializableBuilderClass() |
|
PolicySummary.Builder |
toBuilder() |
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
|
String |
type() |
The type of policy.
|
public 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.
The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lower-case letters or digits.
public 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.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the AWS Organizations User Guide.
public 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.
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 description()
The description of the policy.
public String type()
The type of policy.
PolicyType
public 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.
public PolicySummary.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<PolicySummary.Builder,PolicySummary>
public static PolicySummary.Builder builder()
public static Class<? extends PolicySummary.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.