AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
CreateConnectorRequest.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/CspmProviderConfiguration.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SecurityHub {
18namespace Model {
19
23 public:
24 AWS_SECURITYHUB_API CreateConnectorRequest() = 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 "CreateConnector"; }
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>
64 CreateConnectorRequest& WithDescription(DescriptionT&& value) {
65 SetDescription(std::forward<DescriptionT>(value));
66 return *this;
67 }
69
71
75 inline const CspmProviderConfiguration& GetProvider() const { return m_provider; }
76 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
77 template <typename ProviderT = CspmProviderConfiguration>
78 void SetProvider(ProviderT&& value) {
79 m_providerHasBeenSet = true;
80 m_provider = std::forward<ProviderT>(value);
81 }
82 template <typename ProviderT = CspmProviderConfiguration>
84 SetProvider(std::forward<ProviderT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
94 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
95 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
96 void SetTags(TagsT&& value) {
97 m_tagsHasBeenSet = true;
98 m_tags = std::forward<TagsT>(value);
99 }
100 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
102 SetTags(std::forward<TagsT>(value));
103 return *this;
104 }
105 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
106 CreateConnectorRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
107 m_tagsHasBeenSet = true;
108 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetClientToken() const { return m_clientToken; }
118 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
119 template <typename ClientTokenT = Aws::String>
120 void SetClientToken(ClientTokenT&& value) {
121 m_clientTokenHasBeenSet = true;
122 m_clientToken = std::forward<ClientTokenT>(value);
123 }
124 template <typename ClientTokenT = Aws::String>
126 SetClientToken(std::forward<ClientTokenT>(value));
127 return *this;
128 }
130 private:
131 Aws::String m_name;
132
133 Aws::String m_description;
134
135 CspmProviderConfiguration m_provider;
136
138
140 bool m_nameHasBeenSet = false;
141 bool m_descriptionHasBeenSet = false;
142 bool m_providerHasBeenSet = false;
143 bool m_tagsHasBeenSet = false;
144 bool m_clientTokenHasBeenSet = true;
145};
146
147} // namespace Model
148} // namespace SecurityHub
149} // namespace Aws
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateConnectorRequest & WithName(NameT &&value)
CreateConnectorRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateConnectorRequest & WithTags(TagsT &&value)
CreateConnectorRequest & WithProvider(ProviderT &&value)
CreateConnectorRequest & WithDescription(DescriptionT &&value)
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
CreateConnectorRequest & WithClientToken(ClientTokenT &&value)
AWS_SECURITYHUB_API CreateConnectorRequest()=default
const CspmProviderConfiguration & GetProvider() const
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