@Generated(value="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 and Description |
---|---|
static interface |
PolicySummary.Builder |
Modifier and Type | Method and 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) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
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() |
PolicyType |
type()
The type of policy.
|
String |
typeString()
The type of policy.
|
copy
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 PolicyType type()
The type of policy.
If the service returns an enum value that is not available in the current SDK version, type
will return
PolicyType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeString()
.
PolicyType
public String typeString()
The type of policy.
If the service returns an enum value that is not available in the current SDK version, type
will return
PolicyType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeString()
.
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.