AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateConnectorV2Request.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/securityhub/SecurityHubRequest.h>
11#include <aws/securityhub/SecurityHub_EXPORTS.h>
12#include <aws/securityhub/model/ProviderConfiguration.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SecurityHub {
18namespace Model {
19
23 public:
24 AWS_SECURITYHUB_API CreateConnectorV2Request() = 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 "CreateConnectorV2"; }
31
32 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetDescription() const { return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 template <typename DescriptionT = Aws::String>
59 void SetDescription(DescriptionT&& value) {
60 m_descriptionHasBeenSet = true;
61 m_description = std::forward<DescriptionT>(value);
62 }
63 template <typename DescriptionT = Aws::String>
65 SetDescription(std::forward<DescriptionT>(value));
66 return *this;
67 }
69
71
74 inline const ProviderConfiguration& GetProvider() const { return m_provider; }
75 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
76 template <typename ProviderT = ProviderConfiguration>
77 void SetProvider(ProviderT&& value) {
78 m_providerHasBeenSet = true;
79 m_provider = std::forward<ProviderT>(value);
80 }
81 template <typename ProviderT = ProviderConfiguration>
83 SetProvider(std::forward<ProviderT>(value));
84 return *this;
85 }
87
89
93 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
94 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
95 template <typename KmsKeyArnT = Aws::String>
96 void SetKmsKeyArn(KmsKeyArnT&& value) {
97 m_kmsKeyArnHasBeenSet = true;
98 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
99 }
100 template <typename KmsKeyArnT = Aws::String>
102 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
112 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
113 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
114 void SetTags(TagsT&& value) {
115 m_tagsHasBeenSet = true;
116 m_tags = std::forward<TagsT>(value);
117 }
118 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
120 SetTags(std::forward<TagsT>(value));
121 return *this;
122 }
123 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
124 CreateConnectorV2Request& AddTags(TagsKeyT&& key, TagsValueT&& value) {
125 m_tagsHasBeenSet = true;
126 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::String& GetClientToken() const { return m_clientToken; }
136 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
137 template <typename ClientTokenT = Aws::String>
138 void SetClientToken(ClientTokenT&& value) {
139 m_clientTokenHasBeenSet = true;
140 m_clientToken = std::forward<ClientTokenT>(value);
141 }
142 template <typename ClientTokenT = Aws::String>
144 SetClientToken(std::forward<ClientTokenT>(value));
145 return *this;
146 }
148 private:
149 Aws::String m_name;
150
151 Aws::String m_description;
152
153 ProviderConfiguration m_provider;
154
155 Aws::String m_kmsKeyArn;
156
158
160 bool m_nameHasBeenSet = false;
161 bool m_descriptionHasBeenSet = false;
162 bool m_providerHasBeenSet = false;
163 bool m_kmsKeyArnHasBeenSet = false;
164 bool m_tagsHasBeenSet = false;
165 bool m_clientTokenHasBeenSet = true;
166};
167
168} // namespace Model
169} // namespace SecurityHub
170} // namespace Aws
CreateConnectorV2Request & WithTags(TagsT &&value)
CreateConnectorV2Request & WithClientToken(ClientTokenT &&value)
CreateConnectorV2Request & WithProvider(ProviderT &&value)
CreateConnectorV2Request & WithKmsKeyArn(KmsKeyArnT &&value)
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateConnectorV2Request & WithName(NameT &&value)
CreateConnectorV2Request & WithDescription(DescriptionT &&value)
AWS_SECURITYHUB_API CreateConnectorV2Request()=default
virtual const char * GetServiceRequestName() const override
CreateConnectorV2Request & AddTags(TagsKeyT &&key, TagsValueT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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