AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateConnectorV2Request.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/SecurityHubRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/securityhub/model/ProviderConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace SecurityHub
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SECURITYHUB_API CreateConnectorV2Request() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateConnectorV2"; }
34
35 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template<typename NameT = Aws::String>
45 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
46 template<typename NameT = Aws::String>
47 CreateConnectorV2Request& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
49
51
54 inline const Aws::String& GetDescription() const { return m_description; }
55 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
56 template<typename DescriptionT = Aws::String>
57 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
58 template<typename DescriptionT = Aws::String>
59 CreateConnectorV2Request& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
61
63
66 inline const ProviderConfiguration& GetProvider() const { return m_provider; }
67 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
68 template<typename ProviderT = ProviderConfiguration>
69 void SetProvider(ProviderT&& value) { m_providerHasBeenSet = true; m_provider = std::forward<ProviderT>(value); }
70 template<typename ProviderT = ProviderConfiguration>
71 CreateConnectorV2Request& WithProvider(ProviderT&& value) { SetProvider(std::forward<ProviderT>(value)); return *this;}
73
75
79 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
80 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
81 template<typename KmsKeyArnT = Aws::String>
82 void SetKmsKeyArn(KmsKeyArnT&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::forward<KmsKeyArnT>(value); }
83 template<typename KmsKeyArnT = Aws::String>
84 CreateConnectorV2Request& WithKmsKeyArn(KmsKeyArnT&& value) { SetKmsKeyArn(std::forward<KmsKeyArnT>(value)); return *this;}
86
88
91 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
92 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
93 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
94 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
95 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
96 CreateConnectorV2Request& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
97 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
98 CreateConnectorV2Request& AddTags(TagsKeyT&& key, TagsValueT&& value) {
99 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
100 }
102
104
107 inline const Aws::String& GetClientToken() const { return m_clientToken; }
108 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
109 template<typename ClientTokenT = Aws::String>
110 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
111 template<typename ClientTokenT = Aws::String>
112 CreateConnectorV2Request& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
114 private:
115
116 Aws::String m_name;
117 bool m_nameHasBeenSet = false;
118
119 Aws::String m_description;
120 bool m_descriptionHasBeenSet = false;
121
122 ProviderConfiguration m_provider;
123 bool m_providerHasBeenSet = false;
124
125 Aws::String m_kmsKeyArn;
126 bool m_kmsKeyArnHasBeenSet = false;
127
129 bool m_tagsHasBeenSet = false;
130
132 bool m_clientTokenHasBeenSet = true;
133 };
134
135} // namespace Model
136} // namespace SecurityHub
137} // 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