AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Delegation.h
1
6#pragma once
7#include <aws/auditmanager/AuditManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/auditmanager/model/DelegationStatus.h>
10#include <aws/auditmanager/model/RoleType.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AuditManager
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_AUDITMANAGER_API Delegation();
39 AWS_AUDITMANAGER_API Delegation(Aws::Utils::Json::JsonView jsonValue);
40 AWS_AUDITMANAGER_API Delegation& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetId() const{ return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
51 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
52 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
53 inline Delegation& WithId(const Aws::String& value) { SetId(value); return *this;}
54 inline Delegation& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
55 inline Delegation& WithId(const char* value) { SetId(value); return *this;}
57
59
62 inline const Aws::String& GetAssessmentName() const{ return m_assessmentName; }
63 inline bool AssessmentNameHasBeenSet() const { return m_assessmentNameHasBeenSet; }
64 inline void SetAssessmentName(const Aws::String& value) { m_assessmentNameHasBeenSet = true; m_assessmentName = value; }
65 inline void SetAssessmentName(Aws::String&& value) { m_assessmentNameHasBeenSet = true; m_assessmentName = std::move(value); }
66 inline void SetAssessmentName(const char* value) { m_assessmentNameHasBeenSet = true; m_assessmentName.assign(value); }
67 inline Delegation& WithAssessmentName(const Aws::String& value) { SetAssessmentName(value); return *this;}
68 inline Delegation& WithAssessmentName(Aws::String&& value) { SetAssessmentName(std::move(value)); return *this;}
69 inline Delegation& WithAssessmentName(const char* value) { SetAssessmentName(value); return *this;}
71
73
77 inline const Aws::String& GetAssessmentId() const{ return m_assessmentId; }
78 inline bool AssessmentIdHasBeenSet() const { return m_assessmentIdHasBeenSet; }
79 inline void SetAssessmentId(const Aws::String& value) { m_assessmentIdHasBeenSet = true; m_assessmentId = value; }
80 inline void SetAssessmentId(Aws::String&& value) { m_assessmentIdHasBeenSet = true; m_assessmentId = std::move(value); }
81 inline void SetAssessmentId(const char* value) { m_assessmentIdHasBeenSet = true; m_assessmentId.assign(value); }
82 inline Delegation& WithAssessmentId(const Aws::String& value) { SetAssessmentId(value); return *this;}
83 inline Delegation& WithAssessmentId(Aws::String&& value) { SetAssessmentId(std::move(value)); return *this;}
84 inline Delegation& WithAssessmentId(const char* value) { SetAssessmentId(value); return *this;}
86
88
91 inline const DelegationStatus& GetStatus() const{ return m_status; }
92 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
93 inline void SetStatus(const DelegationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
94 inline void SetStatus(DelegationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
95 inline Delegation& WithStatus(const DelegationStatus& value) { SetStatus(value); return *this;}
96 inline Delegation& WithStatus(DelegationStatus&& value) { SetStatus(std::move(value)); return *this;}
98
100
103 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
104 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
105 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
106 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
107 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
108 inline Delegation& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
109 inline Delegation& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
110 inline Delegation& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
112
114
122 inline const RoleType& GetRoleType() const{ return m_roleType; }
123 inline bool RoleTypeHasBeenSet() const { return m_roleTypeHasBeenSet; }
124 inline void SetRoleType(const RoleType& value) { m_roleTypeHasBeenSet = true; m_roleType = value; }
125 inline void SetRoleType(RoleType&& value) { m_roleTypeHasBeenSet = true; m_roleType = std::move(value); }
126 inline Delegation& WithRoleType(const RoleType& value) { SetRoleType(value); return *this;}
127 inline Delegation& WithRoleType(RoleType&& value) { SetRoleType(std::move(value)); return *this;}
129
131
134 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
135 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
136 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
137 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
138 inline Delegation& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
139 inline Delegation& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
141
143
146 inline const Aws::Utils::DateTime& GetLastUpdated() const{ return m_lastUpdated; }
147 inline bool LastUpdatedHasBeenSet() const { return m_lastUpdatedHasBeenSet; }
148 inline void SetLastUpdated(const Aws::Utils::DateTime& value) { m_lastUpdatedHasBeenSet = true; m_lastUpdated = value; }
149 inline void SetLastUpdated(Aws::Utils::DateTime&& value) { m_lastUpdatedHasBeenSet = true; m_lastUpdated = std::move(value); }
150 inline Delegation& WithLastUpdated(const Aws::Utils::DateTime& value) { SetLastUpdated(value); return *this;}
151 inline Delegation& WithLastUpdated(Aws::Utils::DateTime&& value) { SetLastUpdated(std::move(value)); return *this;}
153
155
159 inline const Aws::String& GetControlSetId() const{ return m_controlSetId; }
160 inline bool ControlSetIdHasBeenSet() const { return m_controlSetIdHasBeenSet; }
161 inline void SetControlSetId(const Aws::String& value) { m_controlSetIdHasBeenSet = true; m_controlSetId = value; }
162 inline void SetControlSetId(Aws::String&& value) { m_controlSetIdHasBeenSet = true; m_controlSetId = std::move(value); }
163 inline void SetControlSetId(const char* value) { m_controlSetIdHasBeenSet = true; m_controlSetId.assign(value); }
164 inline Delegation& WithControlSetId(const Aws::String& value) { SetControlSetId(value); return *this;}
165 inline Delegation& WithControlSetId(Aws::String&& value) { SetControlSetId(std::move(value)); return *this;}
166 inline Delegation& WithControlSetId(const char* value) { SetControlSetId(value); return *this;}
168
170
173 inline const Aws::String& GetComment() const{ return m_comment; }
174 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
175 inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
176 inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
177 inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
178 inline Delegation& WithComment(const Aws::String& value) { SetComment(value); return *this;}
179 inline Delegation& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
180 inline Delegation& WithComment(const char* value) { SetComment(value); return *this;}
182
184
187 inline const Aws::String& GetCreatedBy() const{ return m_createdBy; }
188 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
189 inline void SetCreatedBy(const Aws::String& value) { m_createdByHasBeenSet = true; m_createdBy = value; }
190 inline void SetCreatedBy(Aws::String&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); }
191 inline void SetCreatedBy(const char* value) { m_createdByHasBeenSet = true; m_createdBy.assign(value); }
192 inline Delegation& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}
193 inline Delegation& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}
194 inline Delegation& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;}
196 private:
197
198 Aws::String m_id;
199 bool m_idHasBeenSet = false;
200
201 Aws::String m_assessmentName;
202 bool m_assessmentNameHasBeenSet = false;
203
204 Aws::String m_assessmentId;
205 bool m_assessmentIdHasBeenSet = false;
206
207 DelegationStatus m_status;
208 bool m_statusHasBeenSet = false;
209
210 Aws::String m_roleArn;
211 bool m_roleArnHasBeenSet = false;
212
213 RoleType m_roleType;
214 bool m_roleTypeHasBeenSet = false;
215
216 Aws::Utils::DateTime m_creationTime;
217 bool m_creationTimeHasBeenSet = false;
218
219 Aws::Utils::DateTime m_lastUpdated;
220 bool m_lastUpdatedHasBeenSet = false;
221
222 Aws::String m_controlSetId;
223 bool m_controlSetIdHasBeenSet = false;
224
225 Aws::String m_comment;
226 bool m_commentHasBeenSet = false;
227
228 Aws::String m_createdBy;
229 bool m_createdByHasBeenSet = false;
230 };
231
232} // namespace Model
233} // namespace AuditManager
234} // namespace Aws
void SetRoleType(const RoleType &value)
Definition Delegation.h:124
AWS_AUDITMANAGER_API Delegation & operator=(Aws::Utils::Json::JsonView jsonValue)
Delegation & WithCreatedBy(Aws::String &&value)
Definition Delegation.h:193
void SetRoleArn(Aws::String &&value)
Definition Delegation.h:106
void SetAssessmentId(Aws::String &&value)
Definition Delegation.h:80
const Aws::Utils::DateTime & GetCreationTime() const
Definition Delegation.h:134
void SetRoleArn(const Aws::String &value)
Definition Delegation.h:105
Delegation & WithStatus(DelegationStatus &&value)
Definition Delegation.h:96
void SetId(Aws::String &&value)
Definition Delegation.h:51
Delegation & WithComment(const char *value)
Definition Delegation.h:180
Delegation & WithAssessmentName(const Aws::String &value)
Definition Delegation.h:67
Delegation & WithId(Aws::String &&value)
Definition Delegation.h:54
void SetAssessmentId(const char *value)
Definition Delegation.h:81
Delegation & WithAssessmentName(Aws::String &&value)
Definition Delegation.h:68
AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCreatedBy(const Aws::String &value)
Definition Delegation.h:189
const Aws::String & GetAssessmentId() const
Definition Delegation.h:77
void SetAssessmentId(const Aws::String &value)
Definition Delegation.h:79
Delegation & WithRoleArn(const Aws::String &value)
Definition Delegation.h:108
const Aws::Utils::DateTime & GetLastUpdated() const
Definition Delegation.h:146
Delegation & WithRoleArn(Aws::String &&value)
Definition Delegation.h:109
Delegation & WithComment(const Aws::String &value)
Definition Delegation.h:178
const Aws::String & GetId() const
Definition Delegation.h:48
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition Delegation.h:136
void SetId(const Aws::String &value)
Definition Delegation.h:50
Delegation & WithRoleArn(const char *value)
Definition Delegation.h:110
AWS_AUDITMANAGER_API Delegation()
void SetControlSetId(const char *value)
Definition Delegation.h:163
Delegation & WithControlSetId(Aws::String &&value)
Definition Delegation.h:165
Delegation & WithControlSetId(const char *value)
Definition Delegation.h:166
void SetStatus(DelegationStatus &&value)
Definition Delegation.h:94
void SetAssessmentName(const char *value)
Definition Delegation.h:66
void SetControlSetId(const Aws::String &value)
Definition Delegation.h:161
Delegation & WithAssessmentId(const char *value)
Definition Delegation.h:84
const Aws::String & GetAssessmentName() const
Definition Delegation.h:62
Delegation & WithStatus(const DelegationStatus &value)
Definition Delegation.h:95
Delegation & WithCreationTime(Aws::Utils::DateTime &&value)
Definition Delegation.h:139
void SetComment(const char *value)
Definition Delegation.h:177
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition Delegation.h:137
Delegation & WithCreationTime(const Aws::Utils::DateTime &value)
Definition Delegation.h:138
Delegation & WithId(const Aws::String &value)
Definition Delegation.h:53
void SetRoleArn(const char *value)
Definition Delegation.h:107
const Aws::String & GetComment() const
Definition Delegation.h:173
Delegation & WithId(const char *value)
Definition Delegation.h:55
Delegation & WithLastUpdated(const Aws::Utils::DateTime &value)
Definition Delegation.h:150
void SetAssessmentName(const Aws::String &value)
Definition Delegation.h:64
void SetLastUpdated(Aws::Utils::DateTime &&value)
Definition Delegation.h:149
Delegation & WithAssessmentId(const Aws::String &value)
Definition Delegation.h:82
Delegation & WithRoleType(const RoleType &value)
Definition Delegation.h:126
Delegation & WithControlSetId(const Aws::String &value)
Definition Delegation.h:164
void SetLastUpdated(const Aws::Utils::DateTime &value)
Definition Delegation.h:148
Delegation & WithLastUpdated(Aws::Utils::DateTime &&value)
Definition Delegation.h:151
AWS_AUDITMANAGER_API Delegation(Aws::Utils::Json::JsonView jsonValue)
Delegation & WithRoleType(RoleType &&value)
Definition Delegation.h:127
Delegation & WithComment(Aws::String &&value)
Definition Delegation.h:179
void SetAssessmentName(Aws::String &&value)
Definition Delegation.h:65
const Aws::String & GetCreatedBy() const
Definition Delegation.h:187
void SetControlSetId(Aws::String &&value)
Definition Delegation.h:162
void SetCreatedBy(Aws::String &&value)
Definition Delegation.h:190
void SetStatus(const DelegationStatus &value)
Definition Delegation.h:93
void SetRoleType(RoleType &&value)
Definition Delegation.h:125
Delegation & WithAssessmentName(const char *value)
Definition Delegation.h:69
const Aws::String & GetControlSetId() const
Definition Delegation.h:159
void SetCreatedBy(const char *value)
Definition Delegation.h:191
const DelegationStatus & GetStatus() const
Definition Delegation.h:91
const Aws::String & GetRoleArn() const
Definition Delegation.h:103
void SetComment(Aws::String &&value)
Definition Delegation.h:176
void SetComment(const Aws::String &value)
Definition Delegation.h:175
Delegation & WithCreatedBy(const Aws::String &value)
Definition Delegation.h:192
Delegation & WithCreatedBy(const char *value)
Definition Delegation.h:194
const RoleType & GetRoleType() const
Definition Delegation.h:122
void SetId(const char *value)
Definition Delegation.h:52
Delegation & WithAssessmentId(Aws::String &&value)
Definition Delegation.h:83
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue