AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateConnectorRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mgn/MgnRequest.h>
10#include <aws/mgn/Mgn_EXPORTS.h>
11#include <aws/mgn/model/ConnectorSsmCommandConfig.h>
12
13#include <utility>
14
15namespace Aws {
16namespace mgn {
17namespace Model {
18
22 public:
23 AWS_MGN_API CreateConnectorRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateConnector"; }
30
31 AWS_MGN_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetName() const { return m_name; }
38 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
39 template <typename NameT = Aws::String>
40 void SetName(NameT&& value) {
41 m_nameHasBeenSet = true;
42 m_name = std::forward<NameT>(value);
43 }
44 template <typename NameT = Aws::String>
46 SetName(std::forward<NameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetSsmInstanceID() const { return m_ssmInstanceID; }
56 inline bool SsmInstanceIDHasBeenSet() const { return m_ssmInstanceIDHasBeenSet; }
57 template <typename SsmInstanceIDT = Aws::String>
58 void SetSsmInstanceID(SsmInstanceIDT&& value) {
59 m_ssmInstanceIDHasBeenSet = true;
60 m_ssmInstanceID = std::forward<SsmInstanceIDT>(value);
61 }
62 template <typename SsmInstanceIDT = Aws::String>
63 CreateConnectorRequest& WithSsmInstanceID(SsmInstanceIDT&& value) {
64 SetSsmInstanceID(std::forward<SsmInstanceIDT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
74 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
75 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
76 void SetTags(TagsT&& value) {
77 m_tagsHasBeenSet = true;
78 m_tags = std::forward<TagsT>(value);
79 }
80 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
82 SetTags(std::forward<TagsT>(value));
83 return *this;
84 }
85 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
86 CreateConnectorRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
87 m_tagsHasBeenSet = true;
88 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
89 return *this;
90 }
92
94
97 inline const ConnectorSsmCommandConfig& GetSsmCommandConfig() const { return m_ssmCommandConfig; }
98 inline bool SsmCommandConfigHasBeenSet() const { return m_ssmCommandConfigHasBeenSet; }
99 template <typename SsmCommandConfigT = ConnectorSsmCommandConfig>
100 void SetSsmCommandConfig(SsmCommandConfigT&& value) {
101 m_ssmCommandConfigHasBeenSet = true;
102 m_ssmCommandConfig = std::forward<SsmCommandConfigT>(value);
103 }
104 template <typename SsmCommandConfigT = ConnectorSsmCommandConfig>
105 CreateConnectorRequest& WithSsmCommandConfig(SsmCommandConfigT&& value) {
106 SetSsmCommandConfig(std::forward<SsmCommandConfigT>(value));
107 return *this;
108 }
110 private:
111 Aws::String m_name;
112
113 Aws::String m_ssmInstanceID;
114
116
117 ConnectorSsmCommandConfig m_ssmCommandConfig;
118 bool m_nameHasBeenSet = false;
119 bool m_ssmInstanceIDHasBeenSet = false;
120 bool m_tagsHasBeenSet = false;
121 bool m_ssmCommandConfigHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace mgn
126} // namespace Aws
const ConnectorSsmCommandConfig & GetSsmCommandConfig() const
AWS_MGN_API CreateConnectorRequest()=default
CreateConnectorRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_MGN_API Aws::String SerializePayload() const override
CreateConnectorRequest & WithSsmInstanceID(SsmInstanceIDT &&value)
CreateConnectorRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateConnectorRequest & WithName(NameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateConnectorRequest & WithSsmCommandConfig(SsmCommandConfigT &&value)
void SetSsmCommandConfig(SsmCommandConfigT &&value)
void SetSsmInstanceID(SsmInstanceIDT &&value)
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