AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
44 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
45 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
46 inline CreateConnectorRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
47 inline CreateConnectorRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
48 inline CreateConnectorRequest& WithName(const char* value) { SetName(value); return *this;}
50
52
55 inline const ConnectorSsmCommandConfig& GetSsmCommandConfig() const{ return m_ssmCommandConfig; }
56 inline bool SsmCommandConfigHasBeenSet() const { return m_ssmCommandConfigHasBeenSet; }
57 inline void SetSsmCommandConfig(const ConnectorSsmCommandConfig& value) { m_ssmCommandConfigHasBeenSet = true; m_ssmCommandConfig = value; }
58 inline void SetSsmCommandConfig(ConnectorSsmCommandConfig&& value) { m_ssmCommandConfigHasBeenSet = true; m_ssmCommandConfig = std::move(value); }
62
64
67 inline const Aws::String& GetSsmInstanceID() const{ return m_ssmInstanceID; }
68 inline bool SsmInstanceIDHasBeenSet() const { return m_ssmInstanceIDHasBeenSet; }
69 inline void SetSsmInstanceID(const Aws::String& value) { m_ssmInstanceIDHasBeenSet = true; m_ssmInstanceID = value; }
70 inline void SetSsmInstanceID(Aws::String&& value) { m_ssmInstanceIDHasBeenSet = true; m_ssmInstanceID = std::move(value); }
71 inline void SetSsmInstanceID(const char* value) { m_ssmInstanceIDHasBeenSet = true; m_ssmInstanceID.assign(value); }
72 inline CreateConnectorRequest& WithSsmInstanceID(const Aws::String& value) { SetSsmInstanceID(value); return *this;}
73 inline CreateConnectorRequest& WithSsmInstanceID(Aws::String&& value) { SetSsmInstanceID(std::move(value)); return *this;}
74 inline CreateConnectorRequest& WithSsmInstanceID(const char* value) { SetSsmInstanceID(value); return *this;}
76
78
81 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
82 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
83 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
84 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
85 inline CreateConnectorRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
86 inline CreateConnectorRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
87 inline CreateConnectorRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
88 inline CreateConnectorRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
89 inline CreateConnectorRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
90 inline CreateConnectorRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
91 inline CreateConnectorRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
92 inline CreateConnectorRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
93 inline CreateConnectorRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
95 private:
96
97 Aws::String m_name;
98 bool m_nameHasBeenSet = false;
99
100 ConnectorSsmCommandConfig m_ssmCommandConfig;
101 bool m_ssmCommandConfigHasBeenSet = false;
102
103 Aws::String m_ssmInstanceID;
104 bool m_ssmInstanceIDHasBeenSet = false;
105
107 bool m_tagsHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace mgn
112} // namespace Aws
const ConnectorSsmCommandConfig & GetSsmCommandConfig() const
CreateConnectorRequest & WithName(Aws::String &&value)
CreateConnectorRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateConnectorRequest & WithName(const char *value)
CreateConnectorRequest & WithName(const Aws::String &value)
void SetSsmInstanceID(const Aws::String &value)
CreateConnectorRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateConnectorRequest & WithSsmInstanceID(const char *value)
CreateConnectorRequest & AddTags(const char *key, Aws::String &&value)
CreateConnectorRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_MGN_API Aws::String SerializePayload() const override
CreateConnectorRequest & WithSsmInstanceID(const Aws::String &value)
void SetSsmCommandConfig(const ConnectorSsmCommandConfig &value)
CreateConnectorRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateConnectorRequest & AddTags(const char *key, const char *value)
CreateConnectorRequest & AddTags(Aws::String &&key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateConnectorRequest & WithSsmCommandConfig(const ConnectorSsmCommandConfig &value)
void SetSsmCommandConfig(ConnectorSsmCommandConfig &&value)
CreateConnectorRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateConnectorRequest & WithSsmCommandConfig(ConnectorSsmCommandConfig &&value)
CreateConnectorRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateConnectorRequest & WithSsmInstanceID(Aws::String &&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