AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateConnectorRequest.h
1
6#pragma once
7#include <aws/mgn/Mgn_EXPORTS.h>
8#include <aws/mgn/MgnRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/mgn/model/ConnectorSsmCommandConfig.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace mgn
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_MGN_API CreateConnectorRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateConnector"; }
33
34 AWS_MGN_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template<typename NameT = Aws::String>
44 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
45 template<typename NameT = Aws::String>
46 CreateConnectorRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
48
50
53 inline const ConnectorSsmCommandConfig& GetSsmCommandConfig() const { return m_ssmCommandConfig; }
54 inline bool SsmCommandConfigHasBeenSet() const { return m_ssmCommandConfigHasBeenSet; }
55 template<typename SsmCommandConfigT = ConnectorSsmCommandConfig>
56 void SetSsmCommandConfig(SsmCommandConfigT&& value) { m_ssmCommandConfigHasBeenSet = true; m_ssmCommandConfig = std::forward<SsmCommandConfigT>(value); }
57 template<typename SsmCommandConfigT = ConnectorSsmCommandConfig>
58 CreateConnectorRequest& WithSsmCommandConfig(SsmCommandConfigT&& value) { SetSsmCommandConfig(std::forward<SsmCommandConfigT>(value)); return *this;}
60
62
65 inline const Aws::String& GetSsmInstanceID() const { return m_ssmInstanceID; }
66 inline bool SsmInstanceIDHasBeenSet() const { return m_ssmInstanceIDHasBeenSet; }
67 template<typename SsmInstanceIDT = Aws::String>
68 void SetSsmInstanceID(SsmInstanceIDT&& value) { m_ssmInstanceIDHasBeenSet = true; m_ssmInstanceID = std::forward<SsmInstanceIDT>(value); }
69 template<typename SsmInstanceIDT = Aws::String>
70 CreateConnectorRequest& WithSsmInstanceID(SsmInstanceIDT&& value) { SetSsmInstanceID(std::forward<SsmInstanceIDT>(value)); return *this;}
72
74
77 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
78 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
79 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
80 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
81 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
82 CreateConnectorRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
83 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
84 CreateConnectorRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
85 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
86 }
88 private:
89
90 Aws::String m_name;
91 bool m_nameHasBeenSet = false;
92
93 ConnectorSsmCommandConfig m_ssmCommandConfig;
94 bool m_ssmCommandConfigHasBeenSet = false;
95
96 Aws::String m_ssmInstanceID;
97 bool m_ssmInstanceIDHasBeenSet = false;
98
100 bool m_tagsHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace mgn
105} // 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