AWS SDK for C++

AWS SDK for C++ Version 1.11.847

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
115 inline const Aws::String& GetConfigConnectorArn() const { return m_configConnectorArn; }
116 inline bool ConfigConnectorArnHasBeenSet() const { return m_configConnectorArnHasBeenSet; }
117 template <typename ConfigConnectorArnT = Aws::String>
118 void SetConfigConnectorArn(ConfigConnectorArnT&& value) {
119 m_configConnectorArnHasBeenSet = true;
120 m_configConnectorArn = std::forward<ConfigConnectorArnT>(value);
121 }
122 template <typename ConfigConnectorArnT = Aws::String>
124 SetConfigConnectorArn(std::forward<ConfigConnectorArnT>(value));
125 return *this;
126 }
128
130
135 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
136 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
137 template <typename TagsT = Aws::Vector<Tag>>
138 void SetTags(TagsT&& value) {
139 m_tagsHasBeenSet = true;
140 m_tags = std::forward<TagsT>(value);
141 }
142 template <typename TagsT = Aws::Vector<Tag>>
144 SetTags(std::forward<TagsT>(value));
145 return *this;
146 }
147 template <typename TagsT = Tag>
149 m_tagsHasBeenSet = true;
150 m_tags.emplace_back(std::forward<TagsT>(value));
151 return *this;
152 }
154 private:
155 Aws::String m_displayName;
156
157 Aws::String m_roleArn;
158
159 Aws::String m_description;
160
161 CloudConnectorConfiguration m_configuration;
162
163 Aws::String m_configConnectorArn;
164
165 Aws::Vector<Tag> m_tags;
166 bool m_displayNameHasBeenSet = false;
167 bool m_roleArnHasBeenSet = false;
168 bool m_descriptionHasBeenSet = false;
169 bool m_configurationHasBeenSet = false;
170 bool m_configConnectorArnHasBeenSet = false;
171 bool m_tagsHasBeenSet = false;
172};
173
174} // namespace Model
175} // namespace SSM
176} // 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