AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Connector.h
1
6#pragma once
7#include <aws/mgn/Mgn_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mgn/model/ConnectorSsmCommandConfig.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace mgn
24{
25namespace Model
26{
27
29 {
30 public:
31 AWS_MGN_API Connector();
32 AWS_MGN_API Connector(Aws::Utils::Json::JsonView jsonValue);
35
36
38
41 inline const Aws::String& GetArn() const{ return m_arn; }
42 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
43 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
44 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
45 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
46 inline Connector& WithArn(const Aws::String& value) { SetArn(value); return *this;}
47 inline Connector& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
48 inline Connector& WithArn(const char* value) { SetArn(value); return *this;}
50
52
55 inline const Aws::String& GetConnectorID() const{ return m_connectorID; }
56 inline bool ConnectorIDHasBeenSet() const { return m_connectorIDHasBeenSet; }
57 inline void SetConnectorID(const Aws::String& value) { m_connectorIDHasBeenSet = true; m_connectorID = value; }
58 inline void SetConnectorID(Aws::String&& value) { m_connectorIDHasBeenSet = true; m_connectorID = std::move(value); }
59 inline void SetConnectorID(const char* value) { m_connectorIDHasBeenSet = true; m_connectorID.assign(value); }
60 inline Connector& WithConnectorID(const Aws::String& value) { SetConnectorID(value); return *this;}
61 inline Connector& WithConnectorID(Aws::String&& value) { SetConnectorID(std::move(value)); return *this;}
62 inline Connector& WithConnectorID(const char* value) { SetConnectorID(value); return *this;}
64
66
69 inline const Aws::String& GetName() const{ return m_name; }
70 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
71 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
72 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
73 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
74 inline Connector& WithName(const Aws::String& value) { SetName(value); return *this;}
75 inline Connector& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
76 inline Connector& WithName(const char* value) { SetName(value); return *this;}
78
80
83 inline const ConnectorSsmCommandConfig& GetSsmCommandConfig() const{ return m_ssmCommandConfig; }
84 inline bool SsmCommandConfigHasBeenSet() const { return m_ssmCommandConfigHasBeenSet; }
85 inline void SetSsmCommandConfig(const ConnectorSsmCommandConfig& value) { m_ssmCommandConfigHasBeenSet = true; m_ssmCommandConfig = value; }
86 inline void SetSsmCommandConfig(ConnectorSsmCommandConfig&& value) { m_ssmCommandConfigHasBeenSet = true; m_ssmCommandConfig = std::move(value); }
87 inline Connector& WithSsmCommandConfig(const ConnectorSsmCommandConfig& value) { SetSsmCommandConfig(value); return *this;}
88 inline Connector& WithSsmCommandConfig(ConnectorSsmCommandConfig&& value) { SetSsmCommandConfig(std::move(value)); return *this;}
90
92
95 inline const Aws::String& GetSsmInstanceID() const{ return m_ssmInstanceID; }
96 inline bool SsmInstanceIDHasBeenSet() const { return m_ssmInstanceIDHasBeenSet; }
97 inline void SetSsmInstanceID(const Aws::String& value) { m_ssmInstanceIDHasBeenSet = true; m_ssmInstanceID = value; }
98 inline void SetSsmInstanceID(Aws::String&& value) { m_ssmInstanceIDHasBeenSet = true; m_ssmInstanceID = std::move(value); }
99 inline void SetSsmInstanceID(const char* value) { m_ssmInstanceIDHasBeenSet = true; m_ssmInstanceID.assign(value); }
100 inline Connector& WithSsmInstanceID(const Aws::String& value) { SetSsmInstanceID(value); return *this;}
101 inline Connector& WithSsmInstanceID(Aws::String&& value) { SetSsmInstanceID(std::move(value)); return *this;}
102 inline Connector& WithSsmInstanceID(const char* value) { SetSsmInstanceID(value); return *this;}
104
106
109 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
110 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
111 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
112 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
113 inline Connector& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
114 inline Connector& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
115 inline Connector& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
116 inline Connector& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
117 inline Connector& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
118 inline Connector& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
119 inline Connector& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
120 inline Connector& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
121 inline Connector& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
123
125
126 inline const Aws::String& GetRequestId() const{ return m_requestId; }
127 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
128 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
129 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
130 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
131 inline Connector& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
132 inline Connector& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
133 inline Connector& WithRequestId(const char* value) { SetRequestId(value); return *this;}
135 private:
136
137 Aws::String m_arn;
138 bool m_arnHasBeenSet = false;
139
140 Aws::String m_connectorID;
141 bool m_connectorIDHasBeenSet = false;
142
143 Aws::String m_name;
144 bool m_nameHasBeenSet = false;
145
146 ConnectorSsmCommandConfig m_ssmCommandConfig;
147 bool m_ssmCommandConfigHasBeenSet = false;
148
149 Aws::String m_ssmInstanceID;
150 bool m_ssmInstanceIDHasBeenSet = false;
151
153 bool m_tagsHasBeenSet = false;
154
155 Aws::String m_requestId;
156 bool m_requestIdHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace mgn
161} // namespace Aws
Connector & WithRequestId(Aws::String &&value)
Definition Connector.h:132
Connector & WithConnectorID(const char *value)
Definition Connector.h:62
const Aws::String & GetRequestId() const
Definition Connector.h:126
bool SsmCommandConfigHasBeenSet() const
Definition Connector.h:84
void SetSsmInstanceID(const Aws::String &value)
Definition Connector.h:97
void SetArn(const char *value)
Definition Connector.h:45
Connector & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Connector.h:113
void SetArn(const Aws::String &value)
Definition Connector.h:43
void SetSsmInstanceID(Aws::String &&value)
Definition Connector.h:98
const Aws::String & GetSsmInstanceID() const
Definition Connector.h:95
Connector & WithArn(const char *value)
Definition Connector.h:48
Connector & AddTags(Aws::String &&key, const char *value)
Definition Connector.h:120
const ConnectorSsmCommandConfig & GetSsmCommandConfig() const
Definition Connector.h:83
Connector & WithSsmInstanceID(const Aws::String &value)
Definition Connector.h:100
Connector & WithArn(const Aws::String &value)
Definition Connector.h:46
void SetSsmCommandConfig(const ConnectorSsmCommandConfig &value)
Definition Connector.h:85
Connector & WithSsmInstanceID(Aws::String &&value)
Definition Connector.h:101
Connector & WithConnectorID(Aws::String &&value)
Definition Connector.h:61
void SetConnectorID(Aws::String &&value)
Definition Connector.h:58
bool RequestIdHasBeenSet() const
Definition Connector.h:127
Connector & AddTags(const Aws::String &key, Aws::String &&value)
Definition Connector.h:117
Connector & WithRequestId(const char *value)
Definition Connector.h:133
void SetConnectorID(const Aws::String &value)
Definition Connector.h:57
void SetName(Aws::String &&value)
Definition Connector.h:72
bool ArnHasBeenSet() const
Definition Connector.h:42
void SetName(const char *value)
Definition Connector.h:73
void SetRequestId(const Aws::String &value)
Definition Connector.h:128
const Aws::String & GetConnectorID() const
Definition Connector.h:55
void SetSsmInstanceID(const char *value)
Definition Connector.h:99
bool TagsHasBeenSet() const
Definition Connector.h:110
bool ConnectorIDHasBeenSet() const
Definition Connector.h:56
Connector & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Connector.h:114
AWS_MGN_API Connector(Aws::Utils::Json::JsonView jsonValue)
Connector & AddTags(const Aws::String &key, const Aws::String &value)
Definition Connector.h:115
void SetRequestId(Aws::String &&value)
Definition Connector.h:129
Connector & WithName(const char *value)
Definition Connector.h:76
Connector & WithName(const Aws::String &value)
Definition Connector.h:74
const Aws::String & GetArn() const
Definition Connector.h:41
Connector & WithArn(Aws::String &&value)
Definition Connector.h:47
Connector & WithSsmCommandConfig(ConnectorSsmCommandConfig &&value)
Definition Connector.h:88
const Aws::String & GetName() const
Definition Connector.h:69
Connector & WithConnectorID(const Aws::String &value)
Definition Connector.h:60
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Connector.h:109
Connector & WithName(Aws::String &&value)
Definition Connector.h:75
void SetSsmCommandConfig(ConnectorSsmCommandConfig &&value)
Definition Connector.h:86
Connector & WithSsmInstanceID(const char *value)
Definition Connector.h:102
Connector & WithSsmCommandConfig(const ConnectorSsmCommandConfig &value)
Definition Connector.h:87
Connector & AddTags(const char *key, Aws::String &&value)
Definition Connector.h:119
Connector & WithRequestId(const Aws::String &value)
Definition Connector.h:131
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Connector.h:111
void SetConnectorID(const char *value)
Definition Connector.h:59
bool NameHasBeenSet() const
Definition Connector.h:70
Connector & AddTags(const char *key, const char *value)
Definition Connector.h:121
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Connector.h:112
Connector & AddTags(Aws::String &&key, const Aws::String &value)
Definition Connector.h:116
void SetName(const Aws::String &value)
Definition Connector.h:71
AWS_MGN_API Connector & operator=(Aws::Utils::Json::JsonView jsonValue)
bool SsmInstanceIDHasBeenSet() const
Definition Connector.h:96
void SetRequestId(const char *value)
Definition Connector.h:130
Connector & AddTags(Aws::String &&key, Aws::String &&value)
Definition Connector.h:118
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
void SetArn(Aws::String &&value)
Definition Connector.h:44
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue