AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
45 template<typename ArnT = Aws::String>
46 Connector& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
48
50
53 inline const Aws::String& GetConnectorID() const { return m_connectorID; }
54 inline bool ConnectorIDHasBeenSet() const { return m_connectorIDHasBeenSet; }
55 template<typename ConnectorIDT = Aws::String>
56 void SetConnectorID(ConnectorIDT&& value) { m_connectorIDHasBeenSet = true; m_connectorID = std::forward<ConnectorIDT>(value); }
57 template<typename ConnectorIDT = Aws::String>
58 Connector& WithConnectorID(ConnectorIDT&& value) { SetConnectorID(std::forward<ConnectorIDT>(value)); return *this;}
60
62
65 inline const Aws::String& GetName() const { return m_name; }
66 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
67 template<typename NameT = Aws::String>
68 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
69 template<typename NameT = Aws::String>
70 Connector& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
72
74
77 inline const ConnectorSsmCommandConfig& GetSsmCommandConfig() const { return m_ssmCommandConfig; }
78 inline bool SsmCommandConfigHasBeenSet() const { return m_ssmCommandConfigHasBeenSet; }
79 template<typename SsmCommandConfigT = ConnectorSsmCommandConfig>
80 void SetSsmCommandConfig(SsmCommandConfigT&& value) { m_ssmCommandConfigHasBeenSet = true; m_ssmCommandConfig = std::forward<SsmCommandConfigT>(value); }
81 template<typename SsmCommandConfigT = ConnectorSsmCommandConfig>
82 Connector& WithSsmCommandConfig(SsmCommandConfigT&& value) { SetSsmCommandConfig(std::forward<SsmCommandConfigT>(value)); return *this;}
84
86
89 inline const Aws::String& GetSsmInstanceID() const { return m_ssmInstanceID; }
90 inline bool SsmInstanceIDHasBeenSet() const { return m_ssmInstanceIDHasBeenSet; }
91 template<typename SsmInstanceIDT = Aws::String>
92 void SetSsmInstanceID(SsmInstanceIDT&& value) { m_ssmInstanceIDHasBeenSet = true; m_ssmInstanceID = std::forward<SsmInstanceIDT>(value); }
93 template<typename SsmInstanceIDT = Aws::String>
94 Connector& WithSsmInstanceID(SsmInstanceIDT&& value) { SetSsmInstanceID(std::forward<SsmInstanceIDT>(value)); return *this;}
96
98
101 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
102 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
103 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
104 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
105 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
106 Connector& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
107 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
108 Connector& AddTags(TagsKeyT&& key, TagsValueT&& value) {
109 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
110 }
112
114
115 inline const Aws::String& GetRequestId() const { return m_requestId; }
116 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
117 template<typename RequestIdT = Aws::String>
118 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
119 template<typename RequestIdT = Aws::String>
120 Connector& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
122 private:
123
124 Aws::String m_arn;
125 bool m_arnHasBeenSet = false;
126
127 Aws::String m_connectorID;
128 bool m_connectorIDHasBeenSet = false;
129
130 Aws::String m_name;
131 bool m_nameHasBeenSet = false;
132
133 ConnectorSsmCommandConfig m_ssmCommandConfig;
134 bool m_ssmCommandConfigHasBeenSet = false;
135
136 Aws::String m_ssmInstanceID;
137 bool m_ssmInstanceIDHasBeenSet = false;
138
140 bool m_tagsHasBeenSet = false;
141
142 Aws::String m_requestId;
143 bool m_requestIdHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace mgn
148} // namespace Aws
Connector & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Connector.h:108
const Aws::String & GetRequestId() const
Definition Connector.h:115
bool SsmCommandConfigHasBeenSet() const
Definition Connector.h:78
const Aws::String & GetSsmInstanceID() const
Definition Connector.h:89
AWS_MGN_API Connector()=default
Connector & WithTags(TagsT &&value)
Definition Connector.h:106
Connector & WithSsmCommandConfig(SsmCommandConfigT &&value)
Definition Connector.h:82
const ConnectorSsmCommandConfig & GetSsmCommandConfig() const
Definition Connector.h:77
void SetName(NameT &&value)
Definition Connector.h:68
void SetTags(TagsT &&value)
Definition Connector.h:104
bool RequestIdHasBeenSet() const
Definition Connector.h:116
void SetRequestId(RequestIdT &&value)
Definition Connector.h:118
Connector & WithName(NameT &&value)
Definition Connector.h:70
bool ArnHasBeenSet() const
Definition Connector.h:42
const Aws::String & GetConnectorID() const
Definition Connector.h:53
bool TagsHasBeenSet() const
Definition Connector.h:102
Connector & WithSsmInstanceID(SsmInstanceIDT &&value)
Definition Connector.h:94
bool ConnectorIDHasBeenSet() const
Definition Connector.h:54
AWS_MGN_API Connector(Aws::Utils::Json::JsonView jsonValue)
void SetSsmCommandConfig(SsmCommandConfigT &&value)
Definition Connector.h:80
void SetArn(ArnT &&value)
Definition Connector.h:44
const Aws::String & GetArn() const
Definition Connector.h:41
Connector & WithRequestId(RequestIdT &&value)
Definition Connector.h:120
const Aws::String & GetName() const
Definition Connector.h:65
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Connector.h:101
Connector & WithConnectorID(ConnectorIDT &&value)
Definition Connector.h:58
bool NameHasBeenSet() const
Definition Connector.h:66
void SetSsmInstanceID(SsmInstanceIDT &&value)
Definition Connector.h:92
AWS_MGN_API Connector & operator=(Aws::Utils::Json::JsonView jsonValue)
bool SsmInstanceIDHasBeenSet() const
Definition Connector.h:90
Connector & WithArn(ArnT &&value)
Definition Connector.h:46
void SetConnectorID(ConnectorIDT &&value)
Definition Connector.h:56
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
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