AWS SDK for C++

AWS SDK for C++ Version 1.11.899

Loading...
Searching...
No Matches
CreateIntegrationRequest.h
1
6#pragma once
7#include <aws/cloudwatchomni/CloudWatchOmniRequest.h>
8#include <aws/cloudwatchomni/CloudWatchOmni_EXPORTS.h>
9#include <aws/cloudwatchomni/model/IntegrationCredential.h>
10#include <aws/cloudwatchomni/model/IntegrationType.h>
11#include <aws/core/utils/UUID.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace CloudWatchOmni {
19namespace Model {
20
28 public:
29 AWS_CLOUDWATCHOMNI_API CreateIntegrationRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateIntegration"; }
36
37 AWS_CLOUDWATCHOMNI_API Aws::String SerializePayload() const override;
38
39 AWS_CLOUDWATCHOMNI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
42
45 inline IntegrationType GetIntegrationType() const { return m_integrationType; }
46 inline bool IntegrationTypeHasBeenSet() const { return m_integrationTypeHasBeenSet; }
48 m_integrationTypeHasBeenSet = true;
49 m_integrationType = value;
50 }
52 SetIntegrationType(value);
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline const IntegrationCredential& GetCredential() const { return m_credential; }
80 inline bool CredentialHasBeenSet() const { return m_credentialHasBeenSet; }
81 template <typename CredentialT = IntegrationCredential>
82 void SetCredential(CredentialT&& value) {
83 m_credentialHasBeenSet = true;
84 m_credential = std::forward<CredentialT>(value);
85 }
86 template <typename CredentialT = IntegrationCredential>
88 SetCredential(std::forward<CredentialT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Map<Aws::String, Aws::String>& GetIntegrationAttributes() const { return m_integrationAttributes; }
98 inline bool IntegrationAttributesHasBeenSet() const { return m_integrationAttributesHasBeenSet; }
99 template <typename IntegrationAttributesT = Aws::Map<Aws::String, Aws::String>>
100 void SetIntegrationAttributes(IntegrationAttributesT&& value) {
101 m_integrationAttributesHasBeenSet = true;
102 m_integrationAttributes = std::forward<IntegrationAttributesT>(value);
103 }
104 template <typename IntegrationAttributesT = Aws::Map<Aws::String, Aws::String>>
105 CreateIntegrationRequest& WithIntegrationAttributes(IntegrationAttributesT&& value) {
106 SetIntegrationAttributes(std::forward<IntegrationAttributesT>(value));
107 return *this;
108 }
109 template <typename IntegrationAttributesKeyT = Aws::String, typename IntegrationAttributesValueT = Aws::String>
110 CreateIntegrationRequest& AddIntegrationAttributes(IntegrationAttributesKeyT&& key, IntegrationAttributesValueT&& value) {
111 m_integrationAttributesHasBeenSet = true;
112 m_integrationAttributes.emplace(std::forward<IntegrationAttributesKeyT>(key), std::forward<IntegrationAttributesValueT>(value));
113 return *this;
114 }
116
118
122 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
123 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
124 template <typename RoleArnT = Aws::String>
125 void SetRoleArn(RoleArnT&& value) {
126 m_roleArnHasBeenSet = true;
127 m_roleArn = std::forward<RoleArnT>(value);
128 }
129 template <typename RoleArnT = Aws::String>
131 SetRoleArn(std::forward<RoleArnT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
141 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
142 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
143 void SetTags(TagsT&& value) {
144 m_tagsHasBeenSet = true;
145 m_tags = std::forward<TagsT>(value);
146 }
147 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
149 SetTags(std::forward<TagsT>(value));
150 return *this;
151 }
152 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
153 CreateIntegrationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
154 m_tagsHasBeenSet = true;
155 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
156 return *this;
157 }
159
161
165 inline const Aws::String& GetClientToken() const { return m_clientToken; }
166 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
167 template <typename ClientTokenT = Aws::String>
168 void SetClientToken(ClientTokenT&& value) {
169 m_clientTokenHasBeenSet = true;
170 m_clientToken = std::forward<ClientTokenT>(value);
171 }
172 template <typename ClientTokenT = Aws::String>
174 SetClientToken(std::forward<ClientTokenT>(value));
175 return *this;
176 }
178 private:
179 IntegrationType m_integrationType{IntegrationType::NOT_SET};
180
181 Aws::String m_name;
182
183 IntegrationCredential m_credential;
184
185 Aws::Map<Aws::String, Aws::String> m_integrationAttributes;
186
187 Aws::String m_roleArn;
188
190
192 bool m_integrationTypeHasBeenSet = false;
193 bool m_nameHasBeenSet = false;
194 bool m_credentialHasBeenSet = false;
195 bool m_integrationAttributesHasBeenSet = false;
196 bool m_roleArnHasBeenSet = false;
197 bool m_tagsHasBeenSet = false;
198 bool m_clientTokenHasBeenSet = true;
199};
200
201} // namespace Model
202} // namespace CloudWatchOmni
203} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_CLOUDWATCHOMNI_API CreateIntegrationRequest()=default
CreateIntegrationRequest & AddIntegrationAttributes(IntegrationAttributesKeyT &&key, IntegrationAttributesValueT &&value)
CreateIntegrationRequest & WithIntegrationType(IntegrationType value)
CreateIntegrationRequest & WithIntegrationAttributes(IntegrationAttributesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateIntegrationRequest & WithRoleArn(RoleArnT &&value)
AWS_CLOUDWATCHOMNI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CLOUDWATCHOMNI_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetIntegrationAttributes() const
CreateIntegrationRequest & WithCredential(CredentialT &&value)
CreateIntegrationRequest & WithClientToken(ClientTokenT &&value)
CreateIntegrationRequest & WithName(NameT &&value)
CreateIntegrationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetIntegrationAttributes(IntegrationAttributesT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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