AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
UpdateSettingsRequest.h
1
6#pragma once
7#include <aws/auditmanager/AuditManagerRequest.h>
8#include <aws/auditmanager/AuditManager_EXPORTS.h>
9#include <aws/auditmanager/model/AssessmentReportsDestination.h>
10#include <aws/auditmanager/model/DefaultExportDestination.h>
11#include <aws/auditmanager/model/DeregistrationPolicy.h>
12#include <aws/auditmanager/model/Role.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace AuditManager {
20namespace Model {
21
25 public:
26 AWS_AUDITMANAGER_API UpdateSettingsRequest() = 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 "UpdateSettings"; }
33
34 AWS_AUDITMANAGER_API Aws::String SerializePayload() const override;
35
37
41 inline const Aws::String& GetSnsTopic() const { return m_snsTopic; }
42 inline bool SnsTopicHasBeenSet() const { return m_snsTopicHasBeenSet; }
43 template <typename SnsTopicT = Aws::String>
44 void SetSnsTopic(SnsTopicT&& value) {
45 m_snsTopicHasBeenSet = true;
46 m_snsTopic = std::forward<SnsTopicT>(value);
47 }
48 template <typename SnsTopicT = Aws::String>
49 UpdateSettingsRequest& WithSnsTopic(SnsTopicT&& value) {
50 SetSnsTopic(std::forward<SnsTopicT>(value));
51 return *this;
52 }
54
56
60 return m_defaultAssessmentReportsDestination;
61 }
62 inline bool DefaultAssessmentReportsDestinationHasBeenSet() const { return m_defaultAssessmentReportsDestinationHasBeenSet; }
63 template <typename DefaultAssessmentReportsDestinationT = AssessmentReportsDestination>
64 void SetDefaultAssessmentReportsDestination(DefaultAssessmentReportsDestinationT&& value) {
65 m_defaultAssessmentReportsDestinationHasBeenSet = true;
66 m_defaultAssessmentReportsDestination = std::forward<DefaultAssessmentReportsDestinationT>(value);
67 }
68 template <typename DefaultAssessmentReportsDestinationT = AssessmentReportsDestination>
69 UpdateSettingsRequest& WithDefaultAssessmentReportsDestination(DefaultAssessmentReportsDestinationT&& value) {
70 SetDefaultAssessmentReportsDestination(std::forward<DefaultAssessmentReportsDestinationT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Vector<Role>& GetDefaultProcessOwners() const { return m_defaultProcessOwners; }
80 inline bool DefaultProcessOwnersHasBeenSet() const { return m_defaultProcessOwnersHasBeenSet; }
81 template <typename DefaultProcessOwnersT = Aws::Vector<Role>>
82 void SetDefaultProcessOwners(DefaultProcessOwnersT&& value) {
83 m_defaultProcessOwnersHasBeenSet = true;
84 m_defaultProcessOwners = std::forward<DefaultProcessOwnersT>(value);
85 }
86 template <typename DefaultProcessOwnersT = Aws::Vector<Role>>
87 UpdateSettingsRequest& WithDefaultProcessOwners(DefaultProcessOwnersT&& value) {
88 SetDefaultProcessOwners(std::forward<DefaultProcessOwnersT>(value));
89 return *this;
90 }
91 template <typename DefaultProcessOwnersT = Role>
92 UpdateSettingsRequest& AddDefaultProcessOwners(DefaultProcessOwnersT&& value) {
93 m_defaultProcessOwnersHasBeenSet = true;
94 m_defaultProcessOwners.emplace_back(std::forward<DefaultProcessOwnersT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::String& GetKmsKey() const { return m_kmsKey; }
104 inline bool KmsKeyHasBeenSet() const { return m_kmsKeyHasBeenSet; }
105 template <typename KmsKeyT = Aws::String>
106 void SetKmsKey(KmsKeyT&& value) {
107 m_kmsKeyHasBeenSet = true;
108 m_kmsKey = std::forward<KmsKeyT>(value);
109 }
110 template <typename KmsKeyT = Aws::String>
112 SetKmsKey(std::forward<KmsKeyT>(value));
113 return *this;
114 }
116
118
129 inline bool GetEvidenceFinderEnabled() const { return m_evidenceFinderEnabled; }
130 inline bool EvidenceFinderEnabledHasBeenSet() const { return m_evidenceFinderEnabledHasBeenSet; }
131 inline void SetEvidenceFinderEnabled(bool value) {
132 m_evidenceFinderEnabledHasBeenSet = true;
133 m_evidenceFinderEnabled = value;
134 }
137 return *this;
138 }
140
142
147 inline const DeregistrationPolicy& GetDeregistrationPolicy() const { return m_deregistrationPolicy; }
148 inline bool DeregistrationPolicyHasBeenSet() const { return m_deregistrationPolicyHasBeenSet; }
149 template <typename DeregistrationPolicyT = DeregistrationPolicy>
150 void SetDeregistrationPolicy(DeregistrationPolicyT&& value) {
151 m_deregistrationPolicyHasBeenSet = true;
152 m_deregistrationPolicy = std::forward<DeregistrationPolicyT>(value);
153 }
154 template <typename DeregistrationPolicyT = DeregistrationPolicy>
155 UpdateSettingsRequest& WithDeregistrationPolicy(DeregistrationPolicyT&& value) {
156 SetDeregistrationPolicy(std::forward<DeregistrationPolicyT>(value));
157 return *this;
158 }
160
162
165 inline const DefaultExportDestination& GetDefaultExportDestination() const { return m_defaultExportDestination; }
166 inline bool DefaultExportDestinationHasBeenSet() const { return m_defaultExportDestinationHasBeenSet; }
167 template <typename DefaultExportDestinationT = DefaultExportDestination>
168 void SetDefaultExportDestination(DefaultExportDestinationT&& value) {
169 m_defaultExportDestinationHasBeenSet = true;
170 m_defaultExportDestination = std::forward<DefaultExportDestinationT>(value);
171 }
172 template <typename DefaultExportDestinationT = DefaultExportDestination>
173 UpdateSettingsRequest& WithDefaultExportDestination(DefaultExportDestinationT&& value) {
174 SetDefaultExportDestination(std::forward<DefaultExportDestinationT>(value));
175 return *this;
176 }
178 private:
179 Aws::String m_snsTopic;
180
181 AssessmentReportsDestination m_defaultAssessmentReportsDestination;
182
183 Aws::Vector<Role> m_defaultProcessOwners;
184
185 Aws::String m_kmsKey;
186
187 bool m_evidenceFinderEnabled{false};
188
189 DeregistrationPolicy m_deregistrationPolicy;
190
191 DefaultExportDestination m_defaultExportDestination;
192 bool m_snsTopicHasBeenSet = false;
193 bool m_defaultAssessmentReportsDestinationHasBeenSet = false;
194 bool m_defaultProcessOwnersHasBeenSet = false;
195 bool m_kmsKeyHasBeenSet = false;
196 bool m_evidenceFinderEnabledHasBeenSet = false;
197 bool m_deregistrationPolicyHasBeenSet = false;
198 bool m_defaultExportDestinationHasBeenSet = false;
199};
200
201} // namespace Model
202} // namespace AuditManager
203} // namespace Aws
UpdateSettingsRequest & WithSnsTopic(SnsTopicT &&value)
AWS_AUDITMANAGER_API UpdateSettingsRequest()=default
void SetDefaultProcessOwners(DefaultProcessOwnersT &&value)
const DefaultExportDestination & GetDefaultExportDestination() const
UpdateSettingsRequest & WithDefaultAssessmentReportsDestination(DefaultAssessmentReportsDestinationT &&value)
virtual const char * GetServiceRequestName() const override
UpdateSettingsRequest & WithKmsKey(KmsKeyT &&value)
void SetDefaultAssessmentReportsDestination(DefaultAssessmentReportsDestinationT &&value)
UpdateSettingsRequest & WithDefaultExportDestination(DefaultExportDestinationT &&value)
const DeregistrationPolicy & GetDeregistrationPolicy() const
const AssessmentReportsDestination & GetDefaultAssessmentReportsDestination() const
UpdateSettingsRequest & AddDefaultProcessOwners(DefaultProcessOwnersT &&value)
void SetDefaultExportDestination(DefaultExportDestinationT &&value)
UpdateSettingsRequest & WithEvidenceFinderEnabled(bool value)
UpdateSettingsRequest & WithDeregistrationPolicy(DeregistrationPolicyT &&value)
AWS_AUDITMANAGER_API Aws::String SerializePayload() const override
void SetDeregistrationPolicy(DeregistrationPolicyT &&value)
UpdateSettingsRequest & WithDefaultProcessOwners(DefaultProcessOwnersT &&value)
const Aws::Vector< Role > & GetDefaultProcessOwners() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector