AWS SDK for C++

AWS SDK for C++ Version 1.11.812

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
91 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
92 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
93 template <typename KmsKeyIdT = Aws::String>
94 void SetKmsKeyId(KmsKeyIdT&& value) {
95 m_kmsKeyIdHasBeenSet = true;
96 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
97 }
98 template <typename KmsKeyIdT = Aws::String>
100 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
110 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
111 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
112 void SetTags(TagsT&& value) {
113 m_tagsHasBeenSet = true;
114 m_tags = std::forward<TagsT>(value);
115 }
116 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
118 SetTags(std::forward<TagsT>(value));
119 return *this;
120 }
121 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
122 CreateIntegrationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
123 m_tagsHasBeenSet = true;
124 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
125 return *this;
126 }
128 private:
129 Provider m_provider{Provider::NOT_SET};
130
131 ProviderInput m_input;
132
133 Aws::String m_integrationDisplayName;
134
135 Aws::String m_kmsKeyId;
136
138 bool m_providerHasBeenSet = false;
139 bool m_inputHasBeenSet = false;
140 bool m_integrationDisplayNameHasBeenSet = false;
141 bool m_kmsKeyIdHasBeenSet = false;
142 bool m_tagsHasBeenSet = false;
143};
144
145} // namespace Model
146} // namespace SecurityAgent
147} // 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