AWS SDK for C++

AWS SDK for C++ Version 1.11.868

Loading...
Searching...
No Matches
CreateDlpSettingRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/quicksight/QuickSightRequest.h>
10#include <aws/quicksight/QuickSight_EXPORTS.h>
11#include <aws/quicksight/model/DlpAction.h>
12#include <aws/quicksight/model/DlpProviderType.h>
13#include <aws/quicksight/model/ProviderConfig.h>
14#include <aws/quicksight/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace QuickSight {
20namespace Model {
21
25 public:
26 AWS_QUICKSIGHT_API CreateDlpSettingRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateDlpSetting"; }
33
34 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
35
37
41 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
42 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
43 template <typename AwsAccountIdT = Aws::String>
44 void SetAwsAccountId(AwsAccountIdT&& value) {
45 m_awsAccountIdHasBeenSet = true;
46 m_awsAccountId = std::forward<AwsAccountIdT>(value);
47 }
48 template <typename AwsAccountIdT = Aws::String>
49 CreateDlpSettingRequest& WithAwsAccountId(AwsAccountIdT&& value) {
50 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDlpSettingId() const { return m_dlpSettingId; }
60 inline bool DlpSettingIdHasBeenSet() const { return m_dlpSettingIdHasBeenSet; }
61 template <typename DlpSettingIdT = Aws::String>
62 void SetDlpSettingId(DlpSettingIdT&& value) {
63 m_dlpSettingIdHasBeenSet = true;
64 m_dlpSettingId = std::forward<DlpSettingIdT>(value);
65 }
66 template <typename DlpSettingIdT = Aws::String>
67 CreateDlpSettingRequest& WithDlpSettingId(DlpSettingIdT&& value) {
68 SetDlpSettingId(std::forward<DlpSettingIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetName() const { return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 template <typename NameT = Aws::String>
80 void SetName(NameT&& value) {
81 m_nameHasBeenSet = true;
82 m_name = std::forward<NameT>(value);
83 }
84 template <typename NameT = Aws::String>
86 SetName(std::forward<NameT>(value));
87 return *this;
88 }
90
92
97 inline DlpProviderType GetProviderType() const { return m_providerType; }
98 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
99 inline void SetProviderType(DlpProviderType value) {
100 m_providerTypeHasBeenSet = true;
101 m_providerType = value;
102 }
104 SetProviderType(value);
105 return *this;
106 }
108
110
115 inline const ProviderConfig& GetProviderConfig() const { return m_providerConfig; }
116 inline bool ProviderConfigHasBeenSet() const { return m_providerConfigHasBeenSet; }
117 template <typename ProviderConfigT = ProviderConfig>
118 void SetProviderConfig(ProviderConfigT&& value) {
119 m_providerConfigHasBeenSet = true;
120 m_providerConfig = std::forward<ProviderConfigT>(value);
121 }
122 template <typename ProviderConfigT = ProviderConfig>
123 CreateDlpSettingRequest& WithProviderConfig(ProviderConfigT&& value) {
124 SetProviderConfig(std::forward<ProviderConfigT>(value));
125 return *this;
126 }
128
130
134 inline DlpAction GetProviderOutageAction() const { return m_providerOutageAction; }
135 inline bool ProviderOutageActionHasBeenSet() const { return m_providerOutageActionHasBeenSet; }
137 m_providerOutageActionHasBeenSet = true;
138 m_providerOutageAction = value;
139 }
142 return *this;
143 }
145
147
152 inline bool GetEnabled() const { return m_enabled; }
153 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
154 inline void SetEnabled(bool value) {
155 m_enabledHasBeenSet = true;
156 m_enabled = value;
157 }
159 SetEnabled(value);
160 return *this;
161 }
163
165
169 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
170 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
171 template <typename TagsT = Aws::Vector<Tag>>
172 void SetTags(TagsT&& value) {
173 m_tagsHasBeenSet = true;
174 m_tags = std::forward<TagsT>(value);
175 }
176 template <typename TagsT = Aws::Vector<Tag>>
178 SetTags(std::forward<TagsT>(value));
179 return *this;
180 }
181 template <typename TagsT = Tag>
183 m_tagsHasBeenSet = true;
184 m_tags.emplace_back(std::forward<TagsT>(value));
185 return *this;
186 }
188 private:
189 Aws::String m_awsAccountId;
190
191 Aws::String m_dlpSettingId;
192
193 Aws::String m_name;
194
196
197 ProviderConfig m_providerConfig;
198
199 DlpAction m_providerOutageAction{DlpAction::NOT_SET};
200
201 bool m_enabled{false};
202
203 Aws::Vector<Tag> m_tags;
204 bool m_awsAccountIdHasBeenSet = false;
205 bool m_dlpSettingIdHasBeenSet = false;
206 bool m_nameHasBeenSet = false;
207 bool m_providerTypeHasBeenSet = false;
208 bool m_providerConfigHasBeenSet = false;
209 bool m_providerOutageActionHasBeenSet = false;
210 bool m_enabledHasBeenSet = false;
211 bool m_tagsHasBeenSet = false;
212};
213
214} // namespace Model
215} // namespace QuickSight
216} // namespace Aws
AWS_QUICKSIGHT_API CreateDlpSettingRequest()=default
CreateDlpSettingRequest & WithDlpSettingId(DlpSettingIdT &&value)
virtual const char * GetServiceRequestName() const override
CreateDlpSettingRequest & WithTags(TagsT &&value)
CreateDlpSettingRequest & WithProviderConfig(ProviderConfigT &&value)
CreateDlpSettingRequest & WithProviderType(DlpProviderType value)
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
CreateDlpSettingRequest & WithEnabled(bool value)
CreateDlpSettingRequest & WithAwsAccountId(AwsAccountIdT &&value)
CreateDlpSettingRequest & AddTags(TagsT &&value)
CreateDlpSettingRequest & WithProviderOutageAction(DlpAction value)
CreateDlpSettingRequest & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector