/** * 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 MigrationHubConfig { namespace Model { /** *

The target parameter specifies the identifier to which the home region is * applied, which is always an ACCOUNT. It applies the home region to * the current ACCOUNT.

See Also:

AWS * API Reference

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

The target type is always an ACCOUNT.

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

The target type is always an ACCOUNT.

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

The target type is always an ACCOUNT.

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

The target type is always an ACCOUNT.

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

The target type is always an ACCOUNT.

*/ inline Target& WithType(const TargetType& value) { SetType(value); return *this;} /** *

The target type is always an ACCOUNT.

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

The TargetID is a 12-character identifier of the * ACCOUNT for which the control was created. (This must be the * current account.)

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

The TargetID is a 12-character identifier of the * ACCOUNT for which the control was created. (This must be the * current account.)

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

The TargetID is a 12-character identifier of the * ACCOUNT for which the control was created. (This must be the * current account.)

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

The TargetID is a 12-character identifier of the * ACCOUNT for which the control was created. (This must be the * current account.)

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

The TargetID is a 12-character identifier of the * ACCOUNT for which the control was created. (This must be the * current account.)

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

The TargetID is a 12-character identifier of the * ACCOUNT for which the control was created. (This must be the * current account.)

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

The TargetID is a 12-character identifier of the * ACCOUNT for which the control was created. (This must be the * current account.)

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

The TargetID is a 12-character identifier of the * ACCOUNT for which the control was created. (This must be the * current account.)

*/ inline Target& WithId(const char* value) { SetId(value); return *this;} private: TargetType m_type; bool m_typeHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; }; } // namespace Model } // namespace MigrationHubConfig } // namespace Aws