AWS SDK for C++

AWS SDK for C++ Version 1.11.899

Loading...
Searching...
No Matches
UpdateIntegrationRequest.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/IntegrationIdentifier.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace CloudWatchOmni {
18namespace Model {
19
27 public:
28 AWS_CLOUDWATCHOMNI_API UpdateIntegrationRequest() = 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 "UpdateIntegration"; }
35
36 AWS_CLOUDWATCHOMNI_API Aws::String SerializePayload() const override;
37
38 AWS_CLOUDWATCHOMNI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
41
45 inline const IntegrationIdentifier& GetIdentifier() const { return m_identifier; }
46 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
47 template <typename IdentifierT = IntegrationIdentifier>
48 void SetIdentifier(IdentifierT&& value) {
49 m_identifierHasBeenSet = true;
50 m_identifier = std::forward<IdentifierT>(value);
51 }
52 template <typename IdentifierT = IntegrationIdentifier>
54 SetIdentifier(std::forward<IdentifierT>(value));
55 return *this;
56 }
58
60
63 inline const IntegrationCredential& GetCredential() const { return m_credential; }
64 inline bool CredentialHasBeenSet() const { return m_credentialHasBeenSet; }
65 template <typename CredentialT = IntegrationCredential>
66 void SetCredential(CredentialT&& value) {
67 m_credentialHasBeenSet = true;
68 m_credential = std::forward<CredentialT>(value);
69 }
70 template <typename CredentialT = IntegrationCredential>
72 SetCredential(std::forward<CredentialT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::Map<Aws::String, Aws::String>& GetIntegrationAttributes() const { return m_integrationAttributes; }
82 inline bool IntegrationAttributesHasBeenSet() const { return m_integrationAttributesHasBeenSet; }
83 template <typename IntegrationAttributesT = Aws::Map<Aws::String, Aws::String>>
84 void SetIntegrationAttributes(IntegrationAttributesT&& value) {
85 m_integrationAttributesHasBeenSet = true;
86 m_integrationAttributes = std::forward<IntegrationAttributesT>(value);
87 }
88 template <typename IntegrationAttributesT = Aws::Map<Aws::String, Aws::String>>
89 UpdateIntegrationRequest& WithIntegrationAttributes(IntegrationAttributesT&& value) {
90 SetIntegrationAttributes(std::forward<IntegrationAttributesT>(value));
91 return *this;
92 }
93 template <typename IntegrationAttributesKeyT = Aws::String, typename IntegrationAttributesValueT = Aws::String>
94 UpdateIntegrationRequest& AddIntegrationAttributes(IntegrationAttributesKeyT&& key, IntegrationAttributesValueT&& value) {
95 m_integrationAttributesHasBeenSet = true;
96 m_integrationAttributes.emplace(std::forward<IntegrationAttributesKeyT>(key), std::forward<IntegrationAttributesValueT>(value));
97 return *this;
98 }
100
102
106 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
107 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
108 template <typename RoleArnT = Aws::String>
109 void SetRoleArn(RoleArnT&& value) {
110 m_roleArnHasBeenSet = true;
111 m_roleArn = std::forward<RoleArnT>(value);
112 }
113 template <typename RoleArnT = Aws::String>
115 SetRoleArn(std::forward<RoleArnT>(value));
116 return *this;
117 }
119 private:
120 IntegrationIdentifier m_identifier;
121
122 IntegrationCredential m_credential;
123
124 Aws::Map<Aws::String, Aws::String> m_integrationAttributes;
125
126 Aws::String m_roleArn;
127 bool m_identifierHasBeenSet = false;
128 bool m_credentialHasBeenSet = false;
129 bool m_integrationAttributesHasBeenSet = false;
130 bool m_roleArnHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace CloudWatchOmni
135} // namespace Aws
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetIntegrationAttributes() const
UpdateIntegrationRequest & WithIdentifier(IdentifierT &&value)
void SetIntegrationAttributes(IntegrationAttributesT &&value)
AWS_CLOUDWATCHOMNI_API UpdateIntegrationRequest()=default
AWS_CLOUDWATCHOMNI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateIntegrationRequest & WithCredential(CredentialT &&value)
UpdateIntegrationRequest & WithRoleArn(RoleArnT &&value)
AWS_CLOUDWATCHOMNI_API Aws::String SerializePayload() const override
UpdateIntegrationRequest & AddIntegrationAttributes(IntegrationAttributesKeyT &&key, IntegrationAttributesValueT &&value)
UpdateIntegrationRequest & WithIntegrationAttributes(IntegrationAttributesT &&value)
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