AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Settings.h
1
6#pragma once
7#include <aws/auditmanager/AuditManager_EXPORTS.h>
8#include <aws/auditmanager/model/AssessmentReportsDestination.h>
9#include <aws/auditmanager/model/DefaultExportDestination.h>
10#include <aws/auditmanager/model/DeregistrationPolicy.h>
11#include <aws/auditmanager/model/EvidenceFinderEnablement.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 Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace AuditManager {
26namespace Model {
27
34class Settings {
35 public:
36 AWS_AUDITMANAGER_API Settings() = default;
37 AWS_AUDITMANAGER_API Settings(Aws::Utils::Json::JsonView jsonValue);
38 AWS_AUDITMANAGER_API Settings& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline bool GetIsAwsOrgEnabled() const { return m_isAwsOrgEnabled; }
46 inline bool IsAwsOrgEnabledHasBeenSet() const { return m_isAwsOrgEnabledHasBeenSet; }
47 inline void SetIsAwsOrgEnabled(bool value) {
48 m_isAwsOrgEnabledHasBeenSet = true;
49 m_isAwsOrgEnabled = value;
50 }
51 inline Settings& WithIsAwsOrgEnabled(bool value) {
52 SetIsAwsOrgEnabled(value);
53 return *this;
54 }
56
58
61 inline const Aws::String& GetSnsTopic() const { return m_snsTopic; }
62 inline bool SnsTopicHasBeenSet() const { return m_snsTopicHasBeenSet; }
63 template <typename SnsTopicT = Aws::String>
64 void SetSnsTopic(SnsTopicT&& value) {
65 m_snsTopicHasBeenSet = true;
66 m_snsTopic = std::forward<SnsTopicT>(value);
67 }
68 template <typename SnsTopicT = Aws::String>
69 Settings& WithSnsTopic(SnsTopicT&& value) {
70 SetSnsTopic(std::forward<SnsTopicT>(value));
71 return *this;
72 }
74
76
80 return m_defaultAssessmentReportsDestination;
81 }
82 inline bool DefaultAssessmentReportsDestinationHasBeenSet() const { return m_defaultAssessmentReportsDestinationHasBeenSet; }
83 template <typename DefaultAssessmentReportsDestinationT = AssessmentReportsDestination>
84 void SetDefaultAssessmentReportsDestination(DefaultAssessmentReportsDestinationT&& value) {
85 m_defaultAssessmentReportsDestinationHasBeenSet = true;
86 m_defaultAssessmentReportsDestination = std::forward<DefaultAssessmentReportsDestinationT>(value);
87 }
88 template <typename DefaultAssessmentReportsDestinationT = AssessmentReportsDestination>
89 Settings& WithDefaultAssessmentReportsDestination(DefaultAssessmentReportsDestinationT&& value) {
90 SetDefaultAssessmentReportsDestination(std::forward<DefaultAssessmentReportsDestinationT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::Vector<Role>& GetDefaultProcessOwners() const { return m_defaultProcessOwners; }
100 inline bool DefaultProcessOwnersHasBeenSet() const { return m_defaultProcessOwnersHasBeenSet; }
101 template <typename DefaultProcessOwnersT = Aws::Vector<Role>>
102 void SetDefaultProcessOwners(DefaultProcessOwnersT&& value) {
103 m_defaultProcessOwnersHasBeenSet = true;
104 m_defaultProcessOwners = std::forward<DefaultProcessOwnersT>(value);
105 }
106 template <typename DefaultProcessOwnersT = Aws::Vector<Role>>
107 Settings& WithDefaultProcessOwners(DefaultProcessOwnersT&& value) {
108 SetDefaultProcessOwners(std::forward<DefaultProcessOwnersT>(value));
109 return *this;
110 }
111 template <typename DefaultProcessOwnersT = Role>
112 Settings& AddDefaultProcessOwners(DefaultProcessOwnersT&& value) {
113 m_defaultProcessOwnersHasBeenSet = true;
114 m_defaultProcessOwners.emplace_back(std::forward<DefaultProcessOwnersT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::String& GetKmsKey() const { return m_kmsKey; }
124 inline bool KmsKeyHasBeenSet() const { return m_kmsKeyHasBeenSet; }
125 template <typename KmsKeyT = Aws::String>
126 void SetKmsKey(KmsKeyT&& value) {
127 m_kmsKeyHasBeenSet = true;
128 m_kmsKey = std::forward<KmsKeyT>(value);
129 }
130 template <typename KmsKeyT = Aws::String>
131 Settings& WithKmsKey(KmsKeyT&& value) {
132 SetKmsKey(std::forward<KmsKeyT>(value));
133 return *this;
134 }
136
138
141 inline const EvidenceFinderEnablement& GetEvidenceFinderEnablement() const { return m_evidenceFinderEnablement; }
142 inline bool EvidenceFinderEnablementHasBeenSet() const { return m_evidenceFinderEnablementHasBeenSet; }
143 template <typename EvidenceFinderEnablementT = EvidenceFinderEnablement>
144 void SetEvidenceFinderEnablement(EvidenceFinderEnablementT&& value) {
145 m_evidenceFinderEnablementHasBeenSet = true;
146 m_evidenceFinderEnablement = std::forward<EvidenceFinderEnablementT>(value);
147 }
148 template <typename EvidenceFinderEnablementT = EvidenceFinderEnablement>
149 Settings& WithEvidenceFinderEnablement(EvidenceFinderEnablementT&& value) {
150 SetEvidenceFinderEnablement(std::forward<EvidenceFinderEnablementT>(value));
151 return *this;
152 }
154
156
161 inline const DeregistrationPolicy& GetDeregistrationPolicy() const { return m_deregistrationPolicy; }
162 inline bool DeregistrationPolicyHasBeenSet() const { return m_deregistrationPolicyHasBeenSet; }
163 template <typename DeregistrationPolicyT = DeregistrationPolicy>
164 void SetDeregistrationPolicy(DeregistrationPolicyT&& value) {
165 m_deregistrationPolicyHasBeenSet = true;
166 m_deregistrationPolicy = std::forward<DeregistrationPolicyT>(value);
167 }
168 template <typename DeregistrationPolicyT = DeregistrationPolicy>
169 Settings& WithDeregistrationPolicy(DeregistrationPolicyT&& value) {
170 SetDeregistrationPolicy(std::forward<DeregistrationPolicyT>(value));
171 return *this;
172 }
174
176
179 inline const DefaultExportDestination& GetDefaultExportDestination() const { return m_defaultExportDestination; }
180 inline bool DefaultExportDestinationHasBeenSet() const { return m_defaultExportDestinationHasBeenSet; }
181 template <typename DefaultExportDestinationT = DefaultExportDestination>
182 void SetDefaultExportDestination(DefaultExportDestinationT&& value) {
183 m_defaultExportDestinationHasBeenSet = true;
184 m_defaultExportDestination = std::forward<DefaultExportDestinationT>(value);
185 }
186 template <typename DefaultExportDestinationT = DefaultExportDestination>
187 Settings& WithDefaultExportDestination(DefaultExportDestinationT&& value) {
188 SetDefaultExportDestination(std::forward<DefaultExportDestinationT>(value));
189 return *this;
190 }
192 private:
193 bool m_isAwsOrgEnabled{false};
194
195 Aws::String m_snsTopic;
196
197 AssessmentReportsDestination m_defaultAssessmentReportsDestination;
198
199 Aws::Vector<Role> m_defaultProcessOwners;
200
201 Aws::String m_kmsKey;
202
203 EvidenceFinderEnablement m_evidenceFinderEnablement;
204
205 DeregistrationPolicy m_deregistrationPolicy;
206
207 DefaultExportDestination m_defaultExportDestination;
208 bool m_isAwsOrgEnabledHasBeenSet = false;
209 bool m_snsTopicHasBeenSet = false;
210 bool m_defaultAssessmentReportsDestinationHasBeenSet = false;
211 bool m_defaultProcessOwnersHasBeenSet = false;
212 bool m_kmsKeyHasBeenSet = false;
213 bool m_evidenceFinderEnablementHasBeenSet = false;
214 bool m_deregistrationPolicyHasBeenSet = false;
215 bool m_defaultExportDestinationHasBeenSet = false;
216};
217
218} // namespace Model
219} // namespace AuditManager
220} // namespace Aws
bool DefaultExportDestinationHasBeenSet() const
Definition Settings.h:180
Settings & WithDefaultExportDestination(DefaultExportDestinationT &&value)
Definition Settings.h:187
AWS_AUDITMANAGER_API Settings(Aws::Utils::Json::JsonView jsonValue)
const EvidenceFinderEnablement & GetEvidenceFinderEnablement() const
Definition Settings.h:141
bool DefaultAssessmentReportsDestinationHasBeenSet() const
Definition Settings.h:82
const DefaultExportDestination & GetDefaultExportDestination() const
Definition Settings.h:179
AWS_AUDITMANAGER_API Settings & operator=(Aws::Utils::Json::JsonView jsonValue)
Settings & WithKmsKey(KmsKeyT &&value)
Definition Settings.h:131
void SetDefaultAssessmentReportsDestination(DefaultAssessmentReportsDestinationT &&value)
Definition Settings.h:84
const Aws::Vector< Role > & GetDefaultProcessOwners() const
Definition Settings.h:99
const Aws::String & GetSnsTopic() const
Definition Settings.h:61
const Aws::String & GetKmsKey() const
Definition Settings.h:123
Settings & WithDefaultProcessOwners(DefaultProcessOwnersT &&value)
Definition Settings.h:107
AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
Settings & WithDeregistrationPolicy(DeregistrationPolicyT &&value)
Definition Settings.h:169
void SetDefaultExportDestination(DefaultExportDestinationT &&value)
Definition Settings.h:182
bool DefaultProcessOwnersHasBeenSet() const
Definition Settings.h:100
bool EvidenceFinderEnablementHasBeenSet() const
Definition Settings.h:142
Settings & WithIsAwsOrgEnabled(bool value)
Definition Settings.h:51
void SetIsAwsOrgEnabled(bool value)
Definition Settings.h:47
Settings & AddDefaultProcessOwners(DefaultProcessOwnersT &&value)
Definition Settings.h:112
bool DeregistrationPolicyHasBeenSet() const
Definition Settings.h:162
Settings & WithSnsTopic(SnsTopicT &&value)
Definition Settings.h:69
void SetEvidenceFinderEnablement(EvidenceFinderEnablementT &&value)
Definition Settings.h:144
void SetDefaultProcessOwners(DefaultProcessOwnersT &&value)
Definition Settings.h:102
void SetSnsTopic(SnsTopicT &&value)
Definition Settings.h:64
Settings & WithEvidenceFinderEnablement(EvidenceFinderEnablementT &&value)
Definition Settings.h:149
const DeregistrationPolicy & GetDeregistrationPolicy() const
Definition Settings.h:161
void SetDeregistrationPolicy(DeregistrationPolicyT &&value)
Definition Settings.h:164
Settings & WithDefaultAssessmentReportsDestination(DefaultAssessmentReportsDestinationT &&value)
Definition Settings.h:89
const AssessmentReportsDestination & GetDefaultAssessmentReportsDestination() const
Definition Settings.h:79
AWS_AUDITMANAGER_API Settings()=default
void SetKmsKey(KmsKeyT &&value)
Definition Settings.h:126
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue