AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssessmentMetadataItem.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/AssessmentStatus.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/auditmanager/model/Role.h>
13#include <aws/auditmanager/model/Delegation.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace AuditManager
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_AUDITMANAGER_API AssessmentMetadataItem();
41 AWS_AUDITMANAGER_API AssessmentMetadataItem(Aws::Utils::Json::JsonView jsonValue);
43 AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetName() const{ return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
53 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
54 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
55 inline AssessmentMetadataItem& WithName(const Aws::String& value) { SetName(value); return *this;}
56 inline AssessmentMetadataItem& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
57 inline AssessmentMetadataItem& WithName(const char* value) { SetName(value); return *this;}
59
61
64 inline const Aws::String& GetId() const{ return m_id; }
65 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
66 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
67 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
68 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
69 inline AssessmentMetadataItem& WithId(const Aws::String& value) { SetId(value); return *this;}
70 inline AssessmentMetadataItem& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
71 inline AssessmentMetadataItem& WithId(const char* value) { SetId(value); return *this;}
73
75
79 inline const Aws::String& GetComplianceType() const{ return m_complianceType; }
80 inline bool ComplianceTypeHasBeenSet() const { return m_complianceTypeHasBeenSet; }
81 inline void SetComplianceType(const Aws::String& value) { m_complianceTypeHasBeenSet = true; m_complianceType = value; }
82 inline void SetComplianceType(Aws::String&& value) { m_complianceTypeHasBeenSet = true; m_complianceType = std::move(value); }
83 inline void SetComplianceType(const char* value) { m_complianceTypeHasBeenSet = true; m_complianceType.assign(value); }
84 inline AssessmentMetadataItem& WithComplianceType(const Aws::String& value) { SetComplianceType(value); return *this;}
85 inline AssessmentMetadataItem& WithComplianceType(Aws::String&& value) { SetComplianceType(std::move(value)); return *this;}
86 inline AssessmentMetadataItem& WithComplianceType(const char* value) { SetComplianceType(value); return *this;}
88
90
93 inline const AssessmentStatus& GetStatus() const{ return m_status; }
94 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
95 inline void SetStatus(const AssessmentStatus& value) { m_statusHasBeenSet = true; m_status = value; }
96 inline void SetStatus(AssessmentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
97 inline AssessmentMetadataItem& WithStatus(const AssessmentStatus& value) { SetStatus(value); return *this;}
98 inline AssessmentMetadataItem& WithStatus(AssessmentStatus&& value) { SetStatus(std::move(value)); return *this;}
100
102
105 inline const Aws::Vector<Role>& GetRoles() const{ return m_roles; }
106 inline bool RolesHasBeenSet() const { return m_rolesHasBeenSet; }
107 inline void SetRoles(const Aws::Vector<Role>& value) { m_rolesHasBeenSet = true; m_roles = value; }
108 inline void SetRoles(Aws::Vector<Role>&& value) { m_rolesHasBeenSet = true; m_roles = std::move(value); }
109 inline AssessmentMetadataItem& WithRoles(const Aws::Vector<Role>& value) { SetRoles(value); return *this;}
110 inline AssessmentMetadataItem& WithRoles(Aws::Vector<Role>&& value) { SetRoles(std::move(value)); return *this;}
111 inline AssessmentMetadataItem& AddRoles(const Role& value) { m_rolesHasBeenSet = true; m_roles.push_back(value); return *this; }
112 inline AssessmentMetadataItem& AddRoles(Role&& value) { m_rolesHasBeenSet = true; m_roles.push_back(std::move(value)); return *this; }
114
116
119 inline const Aws::Vector<Delegation>& GetDelegations() const{ return m_delegations; }
120 inline bool DelegationsHasBeenSet() const { return m_delegationsHasBeenSet; }
121 inline void SetDelegations(const Aws::Vector<Delegation>& value) { m_delegationsHasBeenSet = true; m_delegations = value; }
122 inline void SetDelegations(Aws::Vector<Delegation>&& value) { m_delegationsHasBeenSet = true; m_delegations = std::move(value); }
124 inline AssessmentMetadataItem& WithDelegations(Aws::Vector<Delegation>&& value) { SetDelegations(std::move(value)); return *this;}
125 inline AssessmentMetadataItem& AddDelegations(const Delegation& value) { m_delegationsHasBeenSet = true; m_delegations.push_back(value); return *this; }
126 inline AssessmentMetadataItem& AddDelegations(Delegation&& value) { m_delegationsHasBeenSet = true; m_delegations.push_back(std::move(value)); return *this; }
128
130
133 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
134 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
135 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
136 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
138 inline AssessmentMetadataItem& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
140
142
145 inline const Aws::Utils::DateTime& GetLastUpdated() const{ return m_lastUpdated; }
146 inline bool LastUpdatedHasBeenSet() const { return m_lastUpdatedHasBeenSet; }
147 inline void SetLastUpdated(const Aws::Utils::DateTime& value) { m_lastUpdatedHasBeenSet = true; m_lastUpdated = value; }
148 inline void SetLastUpdated(Aws::Utils::DateTime&& value) { m_lastUpdatedHasBeenSet = true; m_lastUpdated = std::move(value); }
149 inline AssessmentMetadataItem& WithLastUpdated(const Aws::Utils::DateTime& value) { SetLastUpdated(value); return *this;}
150 inline AssessmentMetadataItem& WithLastUpdated(Aws::Utils::DateTime&& value) { SetLastUpdated(std::move(value)); return *this;}
152 private:
153
154 Aws::String m_name;
155 bool m_nameHasBeenSet = false;
156
157 Aws::String m_id;
158 bool m_idHasBeenSet = false;
159
160 Aws::String m_complianceType;
161 bool m_complianceTypeHasBeenSet = false;
162
163 AssessmentStatus m_status;
164 bool m_statusHasBeenSet = false;
165
166 Aws::Vector<Role> m_roles;
167 bool m_rolesHasBeenSet = false;
168
169 Aws::Vector<Delegation> m_delegations;
170 bool m_delegationsHasBeenSet = false;
171
172 Aws::Utils::DateTime m_creationTime;
173 bool m_creationTimeHasBeenSet = false;
174
175 Aws::Utils::DateTime m_lastUpdated;
176 bool m_lastUpdatedHasBeenSet = false;
177 };
178
179} // namespace Model
180} // namespace AuditManager
181} // namespace Aws
const Aws::Utils::DateTime & GetCreationTime() const
AssessmentMetadataItem & WithId(Aws::String &&value)
AssessmentMetadataItem & WithName(const char *value)
AssessmentMetadataItem & WithLastUpdated(Aws::Utils::DateTime &&value)
AssessmentMetadataItem & WithRoles(const Aws::Vector< Role > &value)
void SetLastUpdated(const Aws::Utils::DateTime &value)
AssessmentMetadataItem & WithCreationTime(const Aws::Utils::DateTime &value)
AWS_AUDITMANAGER_API AssessmentMetadataItem(Aws::Utils::Json::JsonView jsonValue)
AssessmentMetadataItem & WithName(Aws::String &&value)
AssessmentMetadataItem & WithId(const char *value)
void SetDelegations(const Aws::Vector< Delegation > &value)
const Aws::Utils::DateTime & GetLastUpdated() const
AssessmentMetadataItem & WithStatus(AssessmentStatus &&value)
AssessmentMetadataItem & WithName(const Aws::String &value)
AssessmentMetadataItem & WithComplianceType(const Aws::String &value)
AssessmentMetadataItem & WithDelegations(Aws::Vector< Delegation > &&value)
void SetRoles(const Aws::Vector< Role > &value)
AssessmentMetadataItem & AddDelegations(Delegation &&value)
AssessmentMetadataItem & WithComplianceType(const char *value)
AssessmentMetadataItem & AddDelegations(const Delegation &value)
AssessmentMetadataItem & WithRoles(Aws::Vector< Role > &&value)
const Aws::Vector< Delegation > & GetDelegations() const
AssessmentMetadataItem & WithId(const Aws::String &value)
void SetCreationTime(const Aws::Utils::DateTime &value)
AssessmentMetadataItem & WithComplianceType(Aws::String &&value)
AssessmentMetadataItem & AddRoles(const Role &value)
AssessmentMetadataItem & WithCreationTime(Aws::Utils::DateTime &&value)
AssessmentMetadataItem & WithDelegations(const Aws::Vector< Delegation > &value)
AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AssessmentMetadataItem & WithStatus(const AssessmentStatus &value)
AssessmentMetadataItem & AddRoles(Role &&value)
void SetDelegations(Aws::Vector< Delegation > &&value)
AssessmentMetadataItem & WithLastUpdated(const Aws::Utils::DateTime &value)
AWS_AUDITMANAGER_API AssessmentMetadataItem & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue