AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
CreateIntegrationRequest.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/securityagent/SecurityAgentRequest.h>
10#include <aws/securityagent/SecurityAgent_EXPORTS.h>
11#include <aws/securityagent/model/Provider.h>
12#include <aws/securityagent/model/ProviderInput.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SecurityAgent {
18namespace Model {
19
23 public:
24 AWS_SECURITYAGENT_API CreateIntegrationRequest() = 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 "CreateIntegration"; }
31
32 AWS_SECURITYAGENT_API Aws::String SerializePayload() const override;
33
35
38 inline Provider GetProvider() const { return m_provider; }
39 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
40 inline void SetProvider(Provider value) {
41 m_providerHasBeenSet = true;
42 m_provider = value;
43 }
45 SetProvider(value);
46 return *this;
47 }
49
51
54 inline const ProviderInput& GetInput() const { return m_input; }
55 inline bool InputHasBeenSet() const { return m_inputHasBeenSet; }
56 template <typename InputT = ProviderInput>
57 void SetInput(InputT&& value) {
58 m_inputHasBeenSet = true;
59 m_input = std::forward<InputT>(value);
60 }
61 template <typename InputT = ProviderInput>
63 SetInput(std::forward<InputT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetIntegrationDisplayName() const { return m_integrationDisplayName; }
73 inline bool IntegrationDisplayNameHasBeenSet() const { return m_integrationDisplayNameHasBeenSet; }
74 template <typename IntegrationDisplayNameT = Aws::String>
75 void SetIntegrationDisplayName(IntegrationDisplayNameT&& value) {
76 m_integrationDisplayNameHasBeenSet = true;
77 m_integrationDisplayName = std::forward<IntegrationDisplayNameT>(value);
78 }
79 template <typename IntegrationDisplayNameT = Aws::String>
80 CreateIntegrationRequest& WithIntegrationDisplayName(IntegrationDisplayNameT&& value) {
81 SetIntegrationDisplayName(std::forward<IntegrationDisplayNameT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
91 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
92 template <typename KmsKeyIdT = Aws::String>
93 void SetKmsKeyId(KmsKeyIdT&& value) {
94 m_kmsKeyIdHasBeenSet = true;
95 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
96 }
97 template <typename KmsKeyIdT = Aws::String>
99 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
109 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
110 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
111 void SetTags(TagsT&& value) {
112 m_tagsHasBeenSet = true;
113 m_tags = std::forward<TagsT>(value);
114 }
115 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
117 SetTags(std::forward<TagsT>(value));
118 return *this;
119 }
120 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
121 CreateIntegrationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
122 m_tagsHasBeenSet = true;
123 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
124 return *this;
125 }
127 private:
128 Provider m_provider{Provider::NOT_SET};
129
130 ProviderInput m_input;
131
132 Aws::String m_integrationDisplayName;
133
134 Aws::String m_kmsKeyId;
135
137 bool m_providerHasBeenSet = false;
138 bool m_inputHasBeenSet = false;
139 bool m_integrationDisplayNameHasBeenSet = false;
140 bool m_kmsKeyIdHasBeenSet = false;
141 bool m_tagsHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace SecurityAgent
146} // namespace Aws
CreateIntegrationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateIntegrationRequest & WithProvider(Provider value)
void SetIntegrationDisplayName(IntegrationDisplayNameT &&value)
CreateIntegrationRequest & WithKmsKeyId(KmsKeyIdT &&value)
CreateIntegrationRequest & WithIntegrationDisplayName(IntegrationDisplayNameT &&value)
AWS_SECURITYAGENT_API CreateIntegrationRequest()=default
virtual const char * GetServiceRequestName() const override
CreateIntegrationRequest & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_SECURITYAGENT_API Aws::String SerializePayload() const override
CreateIntegrationRequest & WithInput(InputT &&value)
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