@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. The root contains every Amazon Web Services account in the organization.
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.
|
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 ID is unique to the organization only.
The regex pattern for a root ID string requires "r-" followed by from 4 to 32 lowercase letters or digits.
id
- The unique identifier (ID) for the root. The ID is unique to the organization only.
The regex pattern for a root ID string requires "r-" followed by from 4 to 32 lowercase letters or digits.
public String getId()
The unique identifier (ID) for the root. The ID is unique to the organization only.
The regex pattern for a root ID string requires "r-" followed by from 4 to 32 lowercase letters or digits.
The regex pattern for a root ID string requires "r-" followed by from 4 to 32 lowercase letters or digits.
public Root withId(String id)
The unique identifier (ID) for the root. The ID is unique to the organization only.
The regex pattern for a root ID string requires "r-" followed by from 4 to 32 lowercase letters or digits.
id
- The unique identifier (ID) for the root. The ID is unique to the organization only.
The regex pattern for a root ID string requires "r-" followed by from 4 to 32 lowercase 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 Amazon Web Services Service Authorization Reference.
arn
- The Amazon Resource Name (ARN) of the root.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the Amazon Web Services Service Authorization Reference.
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 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 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 Amazon Web Services Service Authorization Reference.
arn
- The Amazon Resource Name (ARN) of the root.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the Amazon Web Services Service Authorization Reference.
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.
Even if a policy type is shown as available in the organization, you can separately enable and disable them at the root level by using EnablePolicyType and DisablePolicyType. Use DescribeOrganization to see the availability of the policy types in that organization.
Even if a policy type is shown as available in the organization, you can separately enable and disable them at the root level by using EnablePolicyType and DisablePolicyType. Use DescribeOrganization to see the availability of the policy types in that organization.
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.
Even if a policy type is shown as available in the organization, you can separately enable and disable them at the root level by using EnablePolicyType and DisablePolicyType. Use DescribeOrganization to see the availability of the policy types in that organization.
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. Even if a policy type is shown as available in the organization, you can separately enable and disable them at the root level by using EnablePolicyType and DisablePolicyType. Use DescribeOrganization to see the availability of the policy types in that organization.
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.
Even if a policy type is shown as available in the organization, you can separately enable and disable them at the root level by using EnablePolicyType and DisablePolicyType. Use DescribeOrganization to see the availability of the policy types in that organization.
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. Even if a policy type is shown as available in the organization, you can separately enable and disable them at the root level by using EnablePolicyType and DisablePolicyType. Use DescribeOrganization to see the availability of the policy types in that organization.
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.
Even if a policy type is shown as available in the organization, you can separately enable and disable them at the root level by using EnablePolicyType and DisablePolicyType. Use DescribeOrganization to see the availability of the policy types in that organization.
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. Even if a policy type is shown as available in the organization, you can separately enable and disable them at the root level by using EnablePolicyType and DisablePolicyType. Use DescribeOrganization to see the availability of the policy types in that organization.
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.