AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
RegisterServiceRequest.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/devops-agent/DevOpsAgentRequest.h>
10#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
11#include <aws/devops-agent/model/PostRegisterServiceSupportedService.h>
12#include <aws/devops-agent/model/ServiceDetails.h>
13
14#include <utility>
15
16namespace Aws {
17namespace DevOpsAgent {
18namespace Model {
19
27 public:
28 AWS_DEVOPSAGENT_API RegisterServiceRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "RegisterService"; }
35
36 AWS_DEVOPSAGENT_API Aws::String SerializePayload() const override;
37
39
40 inline PostRegisterServiceSupportedService GetService() const { return m_service; }
41 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
43 m_serviceHasBeenSet = true;
44 m_service = value;
45 }
47 SetService(value);
48 return *this;
49 }
51
53
56 inline const ServiceDetails& GetServiceDetails() const { return m_serviceDetails; }
57 inline bool ServiceDetailsHasBeenSet() const { return m_serviceDetailsHasBeenSet; }
58 template <typename ServiceDetailsT = ServiceDetails>
59 void SetServiceDetails(ServiceDetailsT&& value) {
60 m_serviceDetailsHasBeenSet = true;
61 m_serviceDetails = std::forward<ServiceDetailsT>(value);
62 }
63 template <typename ServiceDetailsT = ServiceDetails>
64 RegisterServiceRequest& WithServiceDetails(ServiceDetailsT&& value) {
65 SetServiceDetails(std::forward<ServiceDetailsT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
76 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
77 template <typename KmsKeyArnT = Aws::String>
78 void SetKmsKeyArn(KmsKeyArnT&& value) {
79 m_kmsKeyArnHasBeenSet = true;
80 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
81 }
82 template <typename KmsKeyArnT = Aws::String>
84 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetPrivateConnectionName() const { return m_privateConnectionName; }
94 inline bool PrivateConnectionNameHasBeenSet() const { return m_privateConnectionNameHasBeenSet; }
95 template <typename PrivateConnectionNameT = Aws::String>
96 void SetPrivateConnectionName(PrivateConnectionNameT&& value) {
97 m_privateConnectionNameHasBeenSet = true;
98 m_privateConnectionName = std::forward<PrivateConnectionNameT>(value);
99 }
100 template <typename PrivateConnectionNameT = Aws::String>
101 RegisterServiceRequest& WithPrivateConnectionName(PrivateConnectionNameT&& value) {
102 SetPrivateConnectionName(std::forward<PrivateConnectionNameT>(value));
103 return *this;
104 }
106
108
112 inline const Aws::String& GetTargetUrlPrivateConnectionName() const { return m_targetUrlPrivateConnectionName; }
113 inline bool TargetUrlPrivateConnectionNameHasBeenSet() const { return m_targetUrlPrivateConnectionNameHasBeenSet; }
114 template <typename TargetUrlPrivateConnectionNameT = Aws::String>
115 void SetTargetUrlPrivateConnectionName(TargetUrlPrivateConnectionNameT&& value) {
116 m_targetUrlPrivateConnectionNameHasBeenSet = true;
117 m_targetUrlPrivateConnectionName = std::forward<TargetUrlPrivateConnectionNameT>(value);
118 }
119 template <typename TargetUrlPrivateConnectionNameT = Aws::String>
120 RegisterServiceRequest& WithTargetUrlPrivateConnectionName(TargetUrlPrivateConnectionNameT&& value) {
121 SetTargetUrlPrivateConnectionName(std::forward<TargetUrlPrivateConnectionNameT>(value));
122 return *this;
123 }
125
127
131 inline const Aws::String& GetExchangeUrlPrivateConnectionName() const { return m_exchangeUrlPrivateConnectionName; }
132 inline bool ExchangeUrlPrivateConnectionNameHasBeenSet() const { return m_exchangeUrlPrivateConnectionNameHasBeenSet; }
133 template <typename ExchangeUrlPrivateConnectionNameT = Aws::String>
134 void SetExchangeUrlPrivateConnectionName(ExchangeUrlPrivateConnectionNameT&& value) {
135 m_exchangeUrlPrivateConnectionNameHasBeenSet = true;
136 m_exchangeUrlPrivateConnectionName = std::forward<ExchangeUrlPrivateConnectionNameT>(value);
137 }
138 template <typename ExchangeUrlPrivateConnectionNameT = Aws::String>
139 RegisterServiceRequest& WithExchangeUrlPrivateConnectionName(ExchangeUrlPrivateConnectionNameT&& value) {
140 SetExchangeUrlPrivateConnectionName(std::forward<ExchangeUrlPrivateConnectionNameT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::String& GetName() const { return m_name; }
150 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
151 template <typename NameT = Aws::String>
152 void SetName(NameT&& value) {
153 m_nameHasBeenSet = true;
154 m_name = std::forward<NameT>(value);
155 }
156 template <typename NameT = Aws::String>
158 SetName(std::forward<NameT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
168 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
169 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
170 void SetTags(TagsT&& value) {
171 m_tagsHasBeenSet = true;
172 m_tags = std::forward<TagsT>(value);
173 }
174 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
176 SetTags(std::forward<TagsT>(value));
177 return *this;
178 }
179 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
180 RegisterServiceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
181 m_tagsHasBeenSet = true;
182 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
183 return *this;
184 }
186 private:
188
189 ServiceDetails m_serviceDetails;
190
191 Aws::String m_kmsKeyArn;
192
193 Aws::String m_privateConnectionName;
194
195 Aws::String m_targetUrlPrivateConnectionName;
196
197 Aws::String m_exchangeUrlPrivateConnectionName;
198
199 Aws::String m_name;
200
202 bool m_serviceHasBeenSet = false;
203 bool m_serviceDetailsHasBeenSet = false;
204 bool m_kmsKeyArnHasBeenSet = false;
205 bool m_privateConnectionNameHasBeenSet = false;
206 bool m_targetUrlPrivateConnectionNameHasBeenSet = false;
207 bool m_exchangeUrlPrivateConnectionNameHasBeenSet = false;
208 bool m_nameHasBeenSet = false;
209 bool m_tagsHasBeenSet = false;
210};
211
212} // namespace Model
213} // namespace DevOpsAgent
214} // namespace Aws
virtual const char * GetServiceRequestName() const override
RegisterServiceRequest & WithService(PostRegisterServiceSupportedService value)
RegisterServiceRequest & WithServiceDetails(ServiceDetailsT &&value)
RegisterServiceRequest & WithTargetUrlPrivateConnectionName(TargetUrlPrivateConnectionNameT &&value)
RegisterServiceRequest & WithTags(TagsT &&value)
void SetService(PostRegisterServiceSupportedService value)
PostRegisterServiceSupportedService GetService() const
RegisterServiceRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
RegisterServiceRequest & WithExchangeUrlPrivateConnectionName(ExchangeUrlPrivateConnectionNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
RegisterServiceRequest & WithName(NameT &&value)
void SetPrivateConnectionName(PrivateConnectionNameT &&value)
void SetExchangeUrlPrivateConnectionName(ExchangeUrlPrivateConnectionNameT &&value)
void SetTargetUrlPrivateConnectionName(TargetUrlPrivateConnectionNameT &&value)
AWS_DEVOPSAGENT_API Aws::String SerializePayload() const override
RegisterServiceRequest & WithKmsKeyArn(KmsKeyArnT &&value)
RegisterServiceRequest & WithPrivateConnectionName(PrivateConnectionNameT &&value)
AWS_DEVOPSAGENT_API RegisterServiceRequest()=default
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