AWS SDK for C++

AWS SDK for C++ Version 1.11.787

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
111 inline const Aws::String& GetName() const { return m_name; }
112 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
113 template <typename NameT = Aws::String>
114 void SetName(NameT&& value) {
115 m_nameHasBeenSet = true;
116 m_name = std::forward<NameT>(value);
117 }
118 template <typename NameT = Aws::String>
120 SetName(std::forward<NameT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
130 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
131 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
132 void SetTags(TagsT&& value) {
133 m_tagsHasBeenSet = true;
134 m_tags = std::forward<TagsT>(value);
135 }
136 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
138 SetTags(std::forward<TagsT>(value));
139 return *this;
140 }
141 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
142 RegisterServiceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
143 m_tagsHasBeenSet = true;
144 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
145 return *this;
146 }
148 private:
150
151 ServiceDetails m_serviceDetails;
152
153 Aws::String m_kmsKeyArn;
154
155 Aws::String m_privateConnectionName;
156
157 Aws::String m_name;
158
160 bool m_serviceHasBeenSet = false;
161 bool m_serviceDetailsHasBeenSet = false;
162 bool m_kmsKeyArnHasBeenSet = false;
163 bool m_privateConnectionNameHasBeenSet = false;
164 bool m_nameHasBeenSet = false;
165 bool m_tagsHasBeenSet = false;
166};
167
168} // namespace Model
169} // namespace DevOpsAgent
170} // namespace Aws
virtual const char * GetServiceRequestName() const override
RegisterServiceRequest & WithService(PostRegisterServiceSupportedService value)
RegisterServiceRequest & WithServiceDetails(ServiceDetailsT &&value)
RegisterServiceRequest & WithTags(TagsT &&value)
void SetService(PostRegisterServiceSupportedService value)
PostRegisterServiceSupportedService GetService() const
RegisterServiceRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
RegisterServiceRequest & WithName(NameT &&value)
void SetPrivateConnectionName(PrivateConnectionNameT &&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