/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Organizations { namespace Model { /** *

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.

See Also:

AWS * API Reference

*/ class Root { public: AWS_ORGANIZATIONS_API Root(); AWS_ORGANIZATIONS_API Root(Aws::Utils::Json::JsonView jsonValue); AWS_ORGANIZATIONS_API Root& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The unique identifier (ID) for the root.

The regex pattern for a root ID string * requires "r-" followed by from 4 to 32 lowercase letters or digits.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The unique identifier (ID) for the root.

The regex pattern for a root ID string * requires "r-" followed by from 4 to 32 lowercase letters or digits.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The unique identifier (ID) for the root.

The regex pattern for a root ID string * requires "r-" followed by from 4 to 32 lowercase letters or digits.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The unique identifier (ID) for the root.

The regex pattern for a root ID string * requires "r-" followed by from 4 to 32 lowercase letters or digits.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The unique identifier (ID) for the root.

The regex pattern for a root ID string * requires "r-" followed by from 4 to 32 lowercase letters or digits.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The unique identifier (ID) for the root.

The regex pattern for a root ID string * requires "r-" followed by from 4 to 32 lowercase letters or digits.

*/ inline Root& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The unique identifier (ID) for the root.

The regex pattern for a root ID string * requires "r-" followed by from 4 to 32 lowercase letters or digits.

*/ inline Root& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The unique identifier (ID) for the root.

The regex pattern for a root ID string * requires "r-" followed by from 4 to 32 lowercase letters or digits.

*/ inline Root& WithId(const char* value) { SetId(value); return *this;} /** *

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.

*/ inline const Aws::String& GetArn() const{ return m_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.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

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.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

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.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

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.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

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.

*/ inline Root& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

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.

*/ inline Root& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

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.

*/ inline Root& WithArn(const char* value) { SetArn(value); return *this;} /** *

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.

*/ inline const Aws::String& GetName() const{ return m_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.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

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.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

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.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

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.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

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.

*/ inline Root& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

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.

*/ inline Root& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

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.

*/ inline Root& WithName(const char* value) { SetName(value); return *this;} /** *

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.

*/ inline const Aws::Vector& GetPolicyTypes() const{ return m_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.

*/ inline bool PolicyTypesHasBeenSet() const { return m_policyTypesHasBeenSet; } /** *

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.

*/ inline void SetPolicyTypes(const Aws::Vector& value) { m_policyTypesHasBeenSet = true; m_policyTypes = value; } /** *

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.

*/ inline void SetPolicyTypes(Aws::Vector&& value) { m_policyTypesHasBeenSet = true; m_policyTypes = std::move(value); } /** *

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.

*/ inline Root& WithPolicyTypes(const Aws::Vector& value) { SetPolicyTypes(value); return *this;} /** *

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.

*/ inline Root& WithPolicyTypes(Aws::Vector&& value) { SetPolicyTypes(std::move(value)); return *this;} /** *

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.

*/ inline Root& AddPolicyTypes(const PolicyTypeSummary& value) { m_policyTypesHasBeenSet = true; m_policyTypes.push_back(value); return *this; } /** *

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.

*/ inline Root& AddPolicyTypes(PolicyTypeSummary&& value) { m_policyTypesHasBeenSet = true; m_policyTypes.push_back(std::move(value)); return *this; } private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_policyTypes; bool m_policyTypesHasBeenSet = false; }; } // namespace Model } // namespace Organizations } // namespace Aws