@Generated(value="software.amazon.awssdk:codegen") public final class PolicyTargetSummary extends Object implements StructuredPojo, ToCopyableBuilder<PolicyTargetSummary.Builder,PolicyTargetSummary>
Contains information about a root, OU, or account that a policy is attached to.
Modifier and Type | Class and Description |
---|---|
static interface |
PolicyTargetSummary.Builder |
Modifier and Type | Method and Description |
---|---|
String |
arn()
The Amazon Resource Name (ARN) of the policy target.
|
static PolicyTargetSummary.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
name()
The friendly name of the policy target.
|
static Class<? extends PolicyTargetSummary.Builder> |
serializableBuilderClass() |
String |
targetId()
The unique identifier (ID) of the policy target.
|
PolicyTargetSummary.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
TargetType |
type()
The type of the policy target.
|
String |
typeAsString()
The type of the policy target.
|
copy
public String targetId()
The unique identifier (ID) of the policy target.
The regex pattern for a target ID string requires one of the following:
Root: a string that begins with "r-" followed by from 4 to 32 lower-case letters or digits.
Account: a string that consists of exactly 12 digits.
Organizational unit (OU): a string that begins with "ou-" followed by from 4 to 32 lower-case letters or digits (the ID of the root that the OU is in) followed by a second "-" dash and from 8 to 32 additional lower-case letters or digits.
The regex pattern for a target ID string requires one of the following:
Root: a string that begins with "r-" followed by from 4 to 32 lower-case letters or digits.
Account: a string that consists of exactly 12 digits.
Organizational unit (OU): a string that begins with "ou-" followed by from 4 to 32 lower-case letters or digits (the ID of the root that the OU is in) followed by a second "-" dash and from 8 to 32 additional lower-case letters or digits.
public String arn()
The Amazon Resource Name (ARN) of the policy target.
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 target.
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 TargetType type()
The type of the policy target.
If the service returns an enum value that is not available in the current SDK version, type
will return
TargetType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeAsString()
.
TargetType
public String typeAsString()
The type of the policy target.
If the service returns an enum value that is not available in the current SDK version, type
will return
TargetType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeAsString()
.
TargetType
public PolicyTargetSummary.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<PolicyTargetSummary.Builder,PolicyTargetSummary>
public static PolicyTargetSummary.Builder builder()
public static Class<? extends PolicyTargetSummary.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.