@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Root extends Object implements Serializable, Cloneable, StructuredPojo
Contains details about a root. A root is a top-level parent node in the hierarchy of an organization that can contain organizational units (OUs) and accounts. Every root contains every AWS account in the organization. Each root enables the accounts to be organized in a different way and to have different policy types enabled for use in that root.
Constructor and Description |
---|
Root() |
Modifier and Type | Method and Description |
---|---|
Root |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the root.
|
String |
getId()
The unique identifier (ID) for the root.
|
String |
getName()
The friendly name of the root.
|
List<PolicyTypeSummary> |
getPolicyTypes()
The types of policies that are currently enabled for the root and therefore can be attached to the root or to its
OUs or accounts.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the root.
|
void |
setId(String id)
The unique identifier (ID) for the root.
|
void |
setName(String name)
The friendly name of the root.
|
void |
setPolicyTypes(Collection<PolicyTypeSummary> policyTypes)
The types of policies that are currently enabled for the root and therefore can be attached to the root or to its
OUs or accounts.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Root |
withArn(String arn)
The Amazon Resource Name (ARN) of the root.
|
Root |
withId(String id)
The unique identifier (ID) for the root.
|
Root |
withName(String name)
The friendly name of the root.
|
Root |
withPolicyTypes(Collection<PolicyTypeSummary> policyTypes)
The types of policies that are currently enabled for the root and therefore can be attached to the root or to its
OUs or accounts.
|
Root |
withPolicyTypes(PolicyTypeSummary... policyTypes)
The types of policies that are currently enabled for the root and therefore can be attached to the root or to its
OUs or accounts.
|
public void setId(String id)
The unique identifier (ID) for the root.
The regex pattern for a root ID string requires "r-" followed by from 4 to 32 lower-case letters or digits.
id
- The unique identifier (ID) for the root.
The regex pattern for a root ID string requires "r-" followed by from 4 to 32 lower-case letters or digits.
public String getId()
The unique identifier (ID) for the root.
The regex pattern for a root ID string requires "r-" followed by from 4 to 32 lower-case letters or digits.
The regex pattern for a root ID string requires "r-" followed by from 4 to 32 lower-case letters or digits.
public Root withId(String id)
The unique identifier (ID) for the root.
The regex pattern for a root ID string requires "r-" followed by from 4 to 32 lower-case letters or digits.
id
- The unique identifier (ID) for the root.
The regex pattern for a root ID string requires "r-" followed by from 4 to 32 lower-case letters or digits.
public void setArn(String arn)
The Amazon Resource Name (ARN) of the root.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the AWS Organizations User Guide.
arn
- The Amazon Resource Name (ARN) of the root.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the AWS Organizations User Guide.
public String getArn()
The Amazon Resource Name (ARN) of the root.
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 Root withArn(String arn)
The Amazon Resource Name (ARN) of the root.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the AWS Organizations User Guide.
arn
- The Amazon Resource Name (ARN) of the root.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the AWS Organizations User Guide.
public void setName(String name)
The friendly name of the root.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
name
- The friendly name of the root.
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 getName()
The friendly name of the root.
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 Root withName(String name)
The friendly name of the root.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
name
- The friendly name of the root.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
public List<PolicyTypeSummary> getPolicyTypes()
The types of policies that are currently enabled for the root and therefore can be attached to the root or to its OUs or accounts.
public void setPolicyTypes(Collection<PolicyTypeSummary> policyTypes)
The types of policies that are currently enabled for the root and therefore can be attached to the root or to its OUs or accounts.
policyTypes
- The types of policies that are currently enabled for the root and therefore can be attached to the root or
to its OUs or accounts.public Root withPolicyTypes(PolicyTypeSummary... policyTypes)
The types of policies that are currently enabled for the root and therefore can be attached to the root or to its OUs or accounts.
NOTE: This method appends the values to the existing list (if any). Use
setPolicyTypes(java.util.Collection)
or withPolicyTypes(java.util.Collection)
if you want to
override the existing values.
policyTypes
- The types of policies that are currently enabled for the root and therefore can be attached to the root or
to its OUs or accounts.public Root withPolicyTypes(Collection<PolicyTypeSummary> policyTypes)
The types of policies that are currently enabled for the root and therefore can be attached to the root or to its OUs or accounts.
policyTypes
- The types of policies that are currently enabled for the root and therefore can be attached to the root or
to its OUs or accounts.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.