/** * 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 additional data that is needed to process a handshake.

See * Also:

AWS * API Reference

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

The information that is passed to the other party in the handshake. The * format of the value string must match the requirements of the specified * type.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

The information that is passed to the other party in the handshake. The * format of the value string must match the requirements of the specified * type.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The information that is passed to the other party in the handshake. The * format of the value string must match the requirements of the specified * type.

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The information that is passed to the other party in the handshake. The * format of the value string must match the requirements of the specified * type.

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The information that is passed to the other party in the handshake. The * format of the value string must match the requirements of the specified * type.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

The information that is passed to the other party in the handshake. The * format of the value string must match the requirements of the specified * type.

*/ inline HandshakeResource& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

The information that is passed to the other party in the handshake. The * format of the value string must match the requirements of the specified * type.

*/ inline HandshakeResource& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

The information that is passed to the other party in the handshake. The * format of the value string must match the requirements of the specified * type.

*/ inline HandshakeResource& WithValue(const char* value) { SetValue(value); return *this;} /** *

The type of information being passed, specifying how the value is to be * interpreted by the other party:

  • ACCOUNT - * Specifies an Amazon Web Services account ID number.

  • * ORGANIZATION - Specifies an organization ID number.

  • *

    EMAIL - Specifies the email address that is associated with the * account that receives the handshake.

  • * OWNER_EMAIL - Specifies the email address associated with the * management account. Included as information about an organization.

  • *
  • OWNER_NAME - Specifies the name associated with the * management account. Included as information about an organization.

  • *
  • NOTES - Additional text provided by the handshake * initiator and intended for the recipient to read.

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

The type of information being passed, specifying how the value is to be * interpreted by the other party:

  • ACCOUNT - * Specifies an Amazon Web Services account ID number.

  • * ORGANIZATION - Specifies an organization ID number.

  • *

    EMAIL - Specifies the email address that is associated with the * account that receives the handshake.

  • * OWNER_EMAIL - Specifies the email address associated with the * management account. Included as information about an organization.

  • *
  • OWNER_NAME - Specifies the name associated with the * management account. Included as information about an organization.

  • *
  • NOTES - Additional text provided by the handshake * initiator and intended for the recipient to read.

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

The type of information being passed, specifying how the value is to be * interpreted by the other party:

  • ACCOUNT - * Specifies an Amazon Web Services account ID number.

  • * ORGANIZATION - Specifies an organization ID number.

  • *

    EMAIL - Specifies the email address that is associated with the * account that receives the handshake.

  • * OWNER_EMAIL - Specifies the email address associated with the * management account. Included as information about an organization.

  • *
  • OWNER_NAME - Specifies the name associated with the * management account. Included as information about an organization.

  • *
  • NOTES - Additional text provided by the handshake * initiator and intended for the recipient to read.

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

The type of information being passed, specifying how the value is to be * interpreted by the other party:

  • ACCOUNT - * Specifies an Amazon Web Services account ID number.

  • * ORGANIZATION - Specifies an organization ID number.

  • *

    EMAIL - Specifies the email address that is associated with the * account that receives the handshake.

  • * OWNER_EMAIL - Specifies the email address associated with the * management account. Included as information about an organization.

  • *
  • OWNER_NAME - Specifies the name associated with the * management account. Included as information about an organization.

  • *
  • NOTES - Additional text provided by the handshake * initiator and intended for the recipient to read.

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

The type of information being passed, specifying how the value is to be * interpreted by the other party:

  • ACCOUNT - * Specifies an Amazon Web Services account ID number.

  • * ORGANIZATION - Specifies an organization ID number.

  • *

    EMAIL - Specifies the email address that is associated with the * account that receives the handshake.

  • * OWNER_EMAIL - Specifies the email address associated with the * management account. Included as information about an organization.

  • *
  • OWNER_NAME - Specifies the name associated with the * management account. Included as information about an organization.

  • *
  • NOTES - Additional text provided by the handshake * initiator and intended for the recipient to read.

*/ inline HandshakeResource& WithType(const HandshakeResourceType& value) { SetType(value); return *this;} /** *

The type of information being passed, specifying how the value is to be * interpreted by the other party:

  • ACCOUNT - * Specifies an Amazon Web Services account ID number.

  • * ORGANIZATION - Specifies an organization ID number.

  • *

    EMAIL - Specifies the email address that is associated with the * account that receives the handshake.

  • * OWNER_EMAIL - Specifies the email address associated with the * management account. Included as information about an organization.

  • *
  • OWNER_NAME - Specifies the name associated with the * management account. Included as information about an organization.

  • *
  • NOTES - Additional text provided by the handshake * initiator and intended for the recipient to read.

*/ inline HandshakeResource& WithType(HandshakeResourceType&& value) { SetType(std::move(value)); return *this;} /** *

When needed, contains an additional array of HandshakeResource * objects.

*/ inline const Aws::Vector& GetResources() const{ return m_resources; } /** *

When needed, contains an additional array of HandshakeResource * objects.

*/ inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; } /** *

When needed, contains an additional array of HandshakeResource * objects.

*/ inline void SetResources(const Aws::Vector& value) { m_resourcesHasBeenSet = true; m_resources = value; } /** *

When needed, contains an additional array of HandshakeResource * objects.

*/ inline void SetResources(Aws::Vector&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); } /** *

When needed, contains an additional array of HandshakeResource * objects.

*/ inline HandshakeResource& WithResources(const Aws::Vector& value) { SetResources(value); return *this;} /** *

When needed, contains an additional array of HandshakeResource * objects.

*/ inline HandshakeResource& WithResources(Aws::Vector&& value) { SetResources(std::move(value)); return *this;} /** *

When needed, contains an additional array of HandshakeResource * objects.

*/ inline HandshakeResource& AddResources(const HandshakeResource& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; } /** *

When needed, contains an additional array of HandshakeResource * objects.

*/ inline HandshakeResource& AddResources(HandshakeResource&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; } private: Aws::String m_value; bool m_valueHasBeenSet = false; HandshakeResourceType m_type; bool m_typeHasBeenSet = false; Aws::Vector m_resources; bool m_resourcesHasBeenSet = false; }; } // namespace Model } // namespace Organizations } // namespace Aws