AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
CreateCloudConnectorRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ssm/SSMRequest.h>
10#include <aws/ssm/SSM_EXPORTS.h>
11#include <aws/ssm/model/CloudConnectorConfiguration.h>
12#include <aws/ssm/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SSM {
18namespace Model {
19
23 public:
24 AWS_SSM_API CreateCloudConnectorRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateCloudConnector"; }
31
32 AWS_SSM_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetDisplayName() const { return m_displayName; }
41 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
42 template <typename DisplayNameT = Aws::String>
43 void SetDisplayName(DisplayNameT&& value) {
44 m_displayNameHasBeenSet = true;
45 m_displayName = std::forward<DisplayNameT>(value);
46 }
47 template <typename DisplayNameT = Aws::String>
49 SetDisplayName(std::forward<DisplayNameT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
60 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
61 template <typename RoleArnT = Aws::String>
62 void SetRoleArn(RoleArnT&& value) {
63 m_roleArnHasBeenSet = true;
64 m_roleArn = std::forward<RoleArnT>(value);
65 }
66 template <typename RoleArnT = Aws::String>
68 SetRoleArn(std::forward<RoleArnT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template <typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) {
81 m_descriptionHasBeenSet = true;
82 m_description = std::forward<DescriptionT>(value);
83 }
84 template <typename DescriptionT = Aws::String>
86 SetDescription(std::forward<DescriptionT>(value));
87 return *this;
88 }
90
92
96 inline const CloudConnectorConfiguration& GetConfiguration() const { return m_configuration; }
97 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
98 template <typename ConfigurationT = CloudConnectorConfiguration>
99 void SetConfiguration(ConfigurationT&& value) {
100 m_configurationHasBeenSet = true;
101 m_configuration = std::forward<ConfigurationT>(value);
102 }
103 template <typename ConfigurationT = CloudConnectorConfiguration>
105 SetConfiguration(std::forward<ConfigurationT>(value));
106 return *this;
107 }
109
111
116 inline const Aws::String& GetConfigConnectorArn() const { return m_configConnectorArn; }
117 inline bool ConfigConnectorArnHasBeenSet() const { return m_configConnectorArnHasBeenSet; }
118 template <typename ConfigConnectorArnT = Aws::String>
119 void SetConfigConnectorArn(ConfigConnectorArnT&& value) {
120 m_configConnectorArnHasBeenSet = true;
121 m_configConnectorArn = std::forward<ConfigConnectorArnT>(value);
122 }
123 template <typename ConfigConnectorArnT = Aws::String>
125 SetConfigConnectorArn(std::forward<ConfigConnectorArnT>(value));
126 return *this;
127 }
129
131
136 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
137 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
138 template <typename TagsT = Aws::Vector<Tag>>
139 void SetTags(TagsT&& value) {
140 m_tagsHasBeenSet = true;
141 m_tags = std::forward<TagsT>(value);
142 }
143 template <typename TagsT = Aws::Vector<Tag>>
145 SetTags(std::forward<TagsT>(value));
146 return *this;
147 }
148 template <typename TagsT = Tag>
150 m_tagsHasBeenSet = true;
151 m_tags.emplace_back(std::forward<TagsT>(value));
152 return *this;
153 }
155 private:
156 Aws::String m_displayName;
157
158 Aws::String m_roleArn;
159
160 Aws::String m_description;
161
162 CloudConnectorConfiguration m_configuration;
163
164 Aws::String m_configConnectorArn;
165
166 Aws::Vector<Tag> m_tags;
167 bool m_displayNameHasBeenSet = false;
168 bool m_roleArnHasBeenSet = false;
169 bool m_descriptionHasBeenSet = false;
170 bool m_configurationHasBeenSet = false;
171 bool m_configConnectorArnHasBeenSet = false;
172 bool m_tagsHasBeenSet = false;
173};
174
175} // namespace Model
176} // namespace SSM
177} // namespace Aws
CreateCloudConnectorRequest & WithRoleArn(RoleArnT &&value)
CreateCloudConnectorRequest & WithConfiguration(ConfigurationT &&value)
CreateCloudConnectorRequest & AddTags(TagsT &&value)
CreateCloudConnectorRequest & WithDisplayName(DisplayNameT &&value)
CreateCloudConnectorRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
CreateCloudConnectorRequest & WithDescription(DescriptionT &&value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SSM_API Aws::String SerializePayload() const override
AWS_SSM_API CreateCloudConnectorRequest()=default
const CloudConnectorConfiguration & GetConfiguration() const
CreateCloudConnectorRequest & WithConfigConnectorArn(ConfigConnectorArnT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector