@Generated(value="software.amazon.awssdk:codegen") public final class Organization extends Object implements StructuredPojo, ToCopyableBuilder<Organization.Builder,Organization>
Contains details about an organization. An organization is a collection of accounts that are centrally managed together using consolidated billing, organized hierarchically with organizational units (OUs), and controlled with policies .
Modifier and Type | Class and Description |
---|---|
static interface |
Organization.Builder |
Modifier and Type | Method and Description |
---|---|
String |
arn()
The Amazon Resource Name (ARN) of an organization.
|
List<PolicyTypeSummary> |
availablePolicyTypes()
A list of policy types that are enabled for this organization.
|
static Organization.Builder |
builder() |
boolean |
equals(Object obj) |
OrganizationFeatureSet |
featureSet()
Specifies the functionality that currently is available to the organization.
|
String |
featureSetAsString()
Specifies the functionality that currently is available to the organization.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
The unique identifier (ID) of an organization.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
masterAccountArn()
The Amazon Resource Name (ARN) of the account that is designated as the master account for the organization.
|
String |
masterAccountEmail()
The email address that is associated with the AWS account that is designated as the master account for the
organization.
|
String |
masterAccountId()
The unique identifier (ID) of the master account of an organization.
|
static Class<? extends Organization.Builder> |
serializableBuilderClass() |
Organization.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) of an organization.
The regex pattern for an organization ID string requires "o-" followed by from 10 to 32 lower-case letters or digits.
The regex pattern for an organization ID string requires "o-" followed by from 10 to 32 lower-case letters or digits.
public String arn()
The Amazon Resource Name (ARN) of an organization.
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 OrganizationFeatureSet featureSet()
Specifies the functionality that currently is available to the organization. If set to "ALL", then all features are enabled and policies can be applied to accounts in the organization. If set to "CONSOLIDATED_BILLING", then only consolidated billing functionality is available. For more information, see Enabling All Features in Your Organization in the AWS Organizations User Guide.
If the service returns an enum value that is not available in the current SDK version, featureSet
will
return OrganizationFeatureSet.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from featureSetAsString()
.
OrganizationFeatureSet
public String featureSetAsString()
Specifies the functionality that currently is available to the organization. If set to "ALL", then all features are enabled and policies can be applied to accounts in the organization. If set to "CONSOLIDATED_BILLING", then only consolidated billing functionality is available. For more information, see Enabling All Features in Your Organization in the AWS Organizations User Guide.
If the service returns an enum value that is not available in the current SDK version, featureSet
will
return OrganizationFeatureSet.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from featureSetAsString()
.
OrganizationFeatureSet
public String masterAccountArn()
The Amazon Resource Name (ARN) of the account that is designated as the master account for the organization.
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 masterAccountId()
The unique identifier (ID) of the master account of an organization.
The regex pattern for an account ID string requires exactly 12 digits.
The regex pattern for an account ID string requires exactly 12 digits.
public String masterAccountEmail()
The email address that is associated with the AWS account that is designated as the master account for the organization.
public List<PolicyTypeSummary> availablePolicyTypes()
A list of policy types that are enabled for this organization. For example, if your organization has all features enabled, then service control policies (SCPs) are included in the list.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Organization.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Organization.Builder,Organization>
public static Organization.Builder builder()
public static Class<? extends Organization.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.