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

Contains information about either a root or an organizational unit (OU) that * can contain OUs or accounts in an organization.

See Also:

AWS * API Reference

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

The unique identifier (ID) of the parent entity.

The regex pattern for a parent ID string * requires one of the following:

  • Root - A string that * begins with "r-" followed by from 4 to 32 lowercase letters or digits.

  • *
  • Organizational unit (OU) - A string that begins with "ou-" * followed by from 4 to 32 lowercase letters or digits (the ID of the root that * the OU is in). This string is followed by a second "-" dash and from 8 to 32 * additional lowercase letters or digits.

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

The unique identifier (ID) of the parent entity.

The regex pattern for a parent ID string * requires one of the following:

  • Root - A string that * begins with "r-" followed by from 4 to 32 lowercase letters or digits.

  • *
  • Organizational unit (OU) - A string that begins with "ou-" * followed by from 4 to 32 lowercase letters or digits (the ID of the root that * the OU is in). This string is followed by a second "-" dash and from 8 to 32 * additional lowercase letters or digits.

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

The unique identifier (ID) of the parent entity.

The regex pattern for a parent ID string * requires one of the following:

  • Root - A string that * begins with "r-" followed by from 4 to 32 lowercase letters or digits.

  • *
  • Organizational unit (OU) - A string that begins with "ou-" * followed by from 4 to 32 lowercase letters or digits (the ID of the root that * the OU is in). This string is followed by a second "-" dash and from 8 to 32 * additional lowercase letters or digits.

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

The unique identifier (ID) of the parent entity.

The regex pattern for a parent ID string * requires one of the following:

  • Root - A string that * begins with "r-" followed by from 4 to 32 lowercase letters or digits.

  • *
  • Organizational unit (OU) - A string that begins with "ou-" * followed by from 4 to 32 lowercase letters or digits (the ID of the root that * the OU is in). This string is followed by a second "-" dash and from 8 to 32 * additional lowercase letters or digits.

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

The unique identifier (ID) of the parent entity.

The regex pattern for a parent ID string * requires one of the following:

  • Root - A string that * begins with "r-" followed by from 4 to 32 lowercase letters or digits.

  • *
  • Organizational unit (OU) - A string that begins with "ou-" * followed by from 4 to 32 lowercase letters or digits (the ID of the root that * the OU is in). This string is followed by a second "-" dash and from 8 to 32 * additional lowercase letters or digits.

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

The unique identifier (ID) of the parent entity.

The regex pattern for a parent ID string * requires one of the following:

  • Root - A string that * begins with "r-" followed by from 4 to 32 lowercase letters or digits.

  • *
  • Organizational unit (OU) - A string that begins with "ou-" * followed by from 4 to 32 lowercase letters or digits (the ID of the root that * the OU is in). This string is followed by a second "-" dash and from 8 to 32 * additional lowercase letters or digits.

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

The unique identifier (ID) of the parent entity.

The regex pattern for a parent ID string * requires one of the following:

  • Root - A string that * begins with "r-" followed by from 4 to 32 lowercase letters or digits.

  • *
  • Organizational unit (OU) - A string that begins with "ou-" * followed by from 4 to 32 lowercase letters or digits (the ID of the root that * the OU is in). This string is followed by a second "-" dash and from 8 to 32 * additional lowercase letters or digits.

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

The unique identifier (ID) of the parent entity.

The regex pattern for a parent ID string * requires one of the following:

  • Root - A string that * begins with "r-" followed by from 4 to 32 lowercase letters or digits.

  • *
  • Organizational unit (OU) - A string that begins with "ou-" * followed by from 4 to 32 lowercase letters or digits (the ID of the root that * the OU is in). This string is followed by a second "-" dash and from 8 to 32 * additional lowercase letters or digits.

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

The type of the parent entity.

*/ inline const ParentType& GetType() const{ return m_type; } /** *

The type of the parent entity.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of the parent entity.

*/ inline void SetType(const ParentType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of the parent entity.

*/ inline void SetType(ParentType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of the parent entity.

*/ inline Parent& WithType(const ParentType& value) { SetType(value); return *this;} /** *

The type of the parent entity.

*/ inline Parent& WithType(ParentType&& value) { SetType(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; ParentType m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace Organizations } // namespace Aws