@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 Amazon Web Services 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) |
boolean |
equalsBySdkFields(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() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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 lowercase letters or digits (the ID of the root that contains the OU). This string is followed by a second "-" dash and from 8 to 32 additional lowercase letters or digits.
The regex pattern for an organizational unit ID string requires "ou-" followed by from 4 to 32 lowercase letters or digits (the ID of the root that contains the OU). This string is followed by a second "-" dash and from 8 to 32 additional lowercase letters or digits.
public final 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 Amazon Web Services Service Authorization Reference.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the Amazon Web Services Service Authorization Reference.
public final 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()
toBuilder in interface ToCopyableBuilder<OrganizationalUnit.Builder,OrganizationalUnit>public static OrganizationalUnit.Builder builder()
public static Class<? extends OrganizationalUnit.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.