/** * 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 a list of child entities, either OUs or accounts.

See * Also:

AWS * API Reference

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

The unique identifier (ID) of this child entity.

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

  • Account - A string that * consists of exactly 12 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 contains the OU). 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 this child entity.

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

  • Account - A string that * consists of exactly 12 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 contains the OU). 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 this child entity.

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

  • Account - A string that * consists of exactly 12 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 contains the OU). 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 this child entity.

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

  • Account - A string that * consists of exactly 12 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 contains the OU). 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 this child entity.

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

  • Account - A string that * consists of exactly 12 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 contains the OU). 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 this child entity.

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

  • Account - A string that * consists of exactly 12 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 contains the OU). This string is * followed by a second "-" dash and from 8 to 32 additional lowercase letters or * digits.

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

The unique identifier (ID) of this child entity.

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

  • Account - A string that * consists of exactly 12 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 contains the OU). This string is * followed by a second "-" dash and from 8 to 32 additional lowercase letters or * digits.

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

The unique identifier (ID) of this child entity.

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

  • Account - A string that * consists of exactly 12 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 contains the OU). This string is * followed by a second "-" dash and from 8 to 32 additional lowercase letters or * digits.

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

The type of this child entity.

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

The type of this child entity.

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

The type of this child entity.

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

The type of this child entity.

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

The type of this child entity.

*/ inline Child& WithType(const ChildType& value) { SetType(value); return *this;} /** *

The type of this child entity.

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