AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
Target.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/migrationhub-config/MigrationHubConfig_EXPORTS.h>
9#include <aws/migrationhub-config/model/TargetType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace MigrationHubConfig {
21namespace Model {
22
30class Target {
31 public:
32 AWS_MIGRATIONHUBCONFIG_API Target() = default;
33 AWS_MIGRATIONHUBCONFIG_API Target(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MIGRATIONHUBCONFIG_API Target& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MIGRATIONHUBCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline TargetType GetType() const { return m_type; }
42 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
43 inline void SetType(TargetType value) {
44 m_typeHasBeenSet = true;
45 m_type = value;
46 }
47 inline Target& WithType(TargetType value) {
48 SetType(value);
49 return *this;
50 }
52
54
59 inline const Aws::String& GetId() const { return m_id; }
60 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
61 template <typename IdT = Aws::String>
62 void SetId(IdT&& value) {
63 m_idHasBeenSet = true;
64 m_id = std::forward<IdT>(value);
65 }
66 template <typename IdT = Aws::String>
67 Target& WithId(IdT&& value) {
68 SetId(std::forward<IdT>(value));
69 return *this;
70 }
72 private:
74
75 Aws::String m_id;
76 bool m_typeHasBeenSet = false;
77 bool m_idHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace MigrationHubConfig
82} // namespace Aws
void SetType(TargetType value)
Definition Target.h:43
Target & WithId(IdT &&value)
Definition Target.h:67
AWS_MIGRATIONHUBCONFIG_API Target()=default
AWS_MIGRATIONHUBCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MIGRATIONHUBCONFIG_API Target & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetId() const
Definition Target.h:59
Target & WithType(TargetType value)
Definition Target.h:47
AWS_MIGRATIONHUBCONFIG_API Target(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue