@Generated(value="software.amazon.awssdk:codegen") public final class OrganizationalUnit extends Object implements SdkPojo, Serializable, ToCopyableBuilder<OrganizationalUnit.Builder,OrganizationalUnit>
Contains details about an organizational unit (OU). An OU is a container of AWS accounts within a root of an organization. Policies that are attached to an OU apply to all accounts contained in that OU and in any child OUs.
Modifier and Type | Class and Description |
---|---|
static interface |
OrganizationalUnit.Builder |
Modifier and Type | Method and Description |
---|---|
String |
arn()
The Amazon Resource Name (ARN) of this OU.
|
static OrganizationalUnit.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
The unique identifier (ID) associated with this OU.
|
String |
name()
The friendly name of this OU.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends OrganizationalUnit.Builder> |
serializableBuilderClass() |
OrganizationalUnit.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String id()
The unique identifier (ID) associated with this OU.
The regex pattern for an organizational unit ID string requires "ou-" followed by from 4 to 32 lower-case letters or digits (the ID of the root that contains the OU) followed by a second "-" dash and from 8 to 32 additional lower-case letters or digits.
The regex pattern for an organizational unit ID string requires "ou-" followed by from 4 to 32 lower-case letters or digits (the ID of the root that contains the OU) 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 this OU.
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 this OU.
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 OrganizationalUnit.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<OrganizationalUnit.Builder,OrganizationalUnit>
public static OrganizationalUnit.Builder builder()
public static Class<? extends OrganizationalUnit.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.