142 lines
4.4 KiB
C
142 lines
4.4 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/migrationhub-config/MigrationHubConfig_EXPORTS.h>
|
|||
|
|
#include <aws/migrationhub-config/model/TargetType.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace Utils
|
|||
|
|
{
|
|||
|
|
namespace Json
|
|||
|
|
{
|
|||
|
|
class JsonValue;
|
|||
|
|
class JsonView;
|
|||
|
|
} // namespace Json
|
|||
|
|
} // namespace Utils
|
|||
|
|
namespace MigrationHubConfig
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The target parameter specifies the identifier to which the home region is
|
|||
|
|
* applied, which is always an <code>ACCOUNT</code>. It applies the home region to
|
|||
|
|
* the current <code>ACCOUNT</code>.</p><p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/migrationhub-config-2019-06-30/Target">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_MIGRATIONHUBCONFIG_API Target
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
Target();
|
|||
|
|
Target(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
Target& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The target type is always an <code>ACCOUNT</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline const TargetType& GetType() const{ return m_type; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The target type is always an <code>ACCOUNT</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The target type is always an <code>ACCOUNT</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetType(const TargetType& value) { m_typeHasBeenSet = true; m_type = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The target type is always an <code>ACCOUNT</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetType(TargetType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The target type is always an <code>ACCOUNT</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline Target& WithType(const TargetType& value) { SetType(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The target type is always an <code>ACCOUNT</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline Target& WithType(TargetType&& value) { SetType(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The <code>TargetID</code> is a 12-character identifier of the
|
|||
|
|
* <code>ACCOUNT</code> for which the control was created. (This must be the
|
|||
|
|
* current account.) </p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetId() const{ return m_id; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The <code>TargetID</code> is a 12-character identifier of the
|
|||
|
|
* <code>ACCOUNT</code> for which the control was created. (This must be the
|
|||
|
|
* current account.) </p>
|
|||
|
|
*/
|
|||
|
|
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The <code>TargetID</code> is a 12-character identifier of the
|
|||
|
|
* <code>ACCOUNT</code> for which the control was created. (This must be the
|
|||
|
|
* current account.) </p>
|
|||
|
|
*/
|
|||
|
|
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The <code>TargetID</code> is a 12-character identifier of the
|
|||
|
|
* <code>ACCOUNT</code> for which the control was created. (This must be the
|
|||
|
|
* current account.) </p>
|
|||
|
|
*/
|
|||
|
|
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The <code>TargetID</code> is a 12-character identifier of the
|
|||
|
|
* <code>ACCOUNT</code> for which the control was created. (This must be the
|
|||
|
|
* current account.) </p>
|
|||
|
|
*/
|
|||
|
|
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The <code>TargetID</code> is a 12-character identifier of the
|
|||
|
|
* <code>ACCOUNT</code> for which the control was created. (This must be the
|
|||
|
|
* current account.) </p>
|
|||
|
|
*/
|
|||
|
|
inline Target& WithId(const Aws::String& value) { SetId(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The <code>TargetID</code> is a 12-character identifier of the
|
|||
|
|
* <code>ACCOUNT</code> for which the control was created. (This must be the
|
|||
|
|
* current account.) </p>
|
|||
|
|
*/
|
|||
|
|
inline Target& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The <code>TargetID</code> is a 12-character identifier of the
|
|||
|
|
* <code>ACCOUNT</code> for which the control was created. (This must be the
|
|||
|
|
* current account.) </p>
|
|||
|
|
*/
|
|||
|
|
inline Target& WithId(const char* value) { SetId(value); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
TargetType m_type;
|
|||
|
|
bool m_typeHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_id;
|
|||
|
|
bool m_idHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace MigrationHubConfig
|
|||
|
|
} // namespace Aws
|