AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DelegationMetadata.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/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AuditManager
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_AUDITMANAGER_API DelegationMetadata();
38 AWS_AUDITMANAGER_API DelegationMetadata(Aws::Utils::Json::JsonView jsonValue);
40 AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetId() const{ return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
50 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
51 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
52 inline DelegationMetadata& WithId(const Aws::String& value) { SetId(value); return *this;}
53 inline DelegationMetadata& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
54 inline DelegationMetadata& WithId(const char* value) { SetId(value); return *this;}
56
58
61 inline const Aws::String& GetAssessmentName() const{ return m_assessmentName; }
62 inline bool AssessmentNameHasBeenSet() const { return m_assessmentNameHasBeenSet; }
63 inline void SetAssessmentName(const Aws::String& value) { m_assessmentNameHasBeenSet = true; m_assessmentName = value; }
64 inline void SetAssessmentName(Aws::String&& value) { m_assessmentNameHasBeenSet = true; m_assessmentName = std::move(value); }
65 inline void SetAssessmentName(const char* value) { m_assessmentNameHasBeenSet = true; m_assessmentName.assign(value); }
66 inline DelegationMetadata& WithAssessmentName(const Aws::String& value) { SetAssessmentName(value); return *this;}
67 inline DelegationMetadata& WithAssessmentName(Aws::String&& value) { SetAssessmentName(std::move(value)); return *this;}
68 inline DelegationMetadata& WithAssessmentName(const char* value) { SetAssessmentName(value); return *this;}
70
72
75 inline const Aws::String& GetAssessmentId() const{ return m_assessmentId; }
76 inline bool AssessmentIdHasBeenSet() const { return m_assessmentIdHasBeenSet; }
77 inline void SetAssessmentId(const Aws::String& value) { m_assessmentIdHasBeenSet = true; m_assessmentId = value; }
78 inline void SetAssessmentId(Aws::String&& value) { m_assessmentIdHasBeenSet = true; m_assessmentId = std::move(value); }
79 inline void SetAssessmentId(const char* value) { m_assessmentIdHasBeenSet = true; m_assessmentId.assign(value); }
80 inline DelegationMetadata& WithAssessmentId(const Aws::String& value) { SetAssessmentId(value); return *this;}
81 inline DelegationMetadata& WithAssessmentId(Aws::String&& value) { SetAssessmentId(std::move(value)); return *this;}
82 inline DelegationMetadata& WithAssessmentId(const char* value) { SetAssessmentId(value); return *this;}
84
86
89 inline const DelegationStatus& GetStatus() const{ return m_status; }
90 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
91 inline void SetStatus(const DelegationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
92 inline void SetStatus(DelegationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
93 inline DelegationMetadata& WithStatus(const DelegationStatus& value) { SetStatus(value); return *this;}
94 inline DelegationMetadata& WithStatus(DelegationStatus&& value) { SetStatus(std::move(value)); return *this;}
96
98
101 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
102 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
103 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
104 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
105 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
106 inline DelegationMetadata& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
107 inline DelegationMetadata& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
108 inline DelegationMetadata& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
110
112
115 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
116 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
117 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
118 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
119 inline DelegationMetadata& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
120 inline DelegationMetadata& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
122
124
127 inline const Aws::String& GetControlSetName() const{ return m_controlSetName; }
128 inline bool ControlSetNameHasBeenSet() const { return m_controlSetNameHasBeenSet; }
129 inline void SetControlSetName(const Aws::String& value) { m_controlSetNameHasBeenSet = true; m_controlSetName = value; }
130 inline void SetControlSetName(Aws::String&& value) { m_controlSetNameHasBeenSet = true; m_controlSetName = std::move(value); }
131 inline void SetControlSetName(const char* value) { m_controlSetNameHasBeenSet = true; m_controlSetName.assign(value); }
132 inline DelegationMetadata& WithControlSetName(const Aws::String& value) { SetControlSetName(value); return *this;}
133 inline DelegationMetadata& WithControlSetName(Aws::String&& value) { SetControlSetName(std::move(value)); return *this;}
134 inline DelegationMetadata& WithControlSetName(const char* value) { SetControlSetName(value); return *this;}
136 private:
137
138 Aws::String m_id;
139 bool m_idHasBeenSet = false;
140
141 Aws::String m_assessmentName;
142 bool m_assessmentNameHasBeenSet = false;
143
144 Aws::String m_assessmentId;
145 bool m_assessmentIdHasBeenSet = false;
146
147 DelegationStatus m_status;
148 bool m_statusHasBeenSet = false;
149
150 Aws::String m_roleArn;
151 bool m_roleArnHasBeenSet = false;
152
153 Aws::Utils::DateTime m_creationTime;
154 bool m_creationTimeHasBeenSet = false;
155
156 Aws::String m_controlSetName;
157 bool m_controlSetNameHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace AuditManager
162} // namespace Aws
DelegationMetadata & WithAssessmentId(const char *value)
DelegationMetadata & WithRoleArn(const Aws::String &value)
DelegationMetadata & WithRoleArn(const char *value)
DelegationMetadata & WithAssessmentName(const char *value)
DelegationMetadata & WithAssessmentId(const Aws::String &value)
DelegationMetadata & WithAssessmentName(Aws::String &&value)
DelegationMetadata & WithId(Aws::String &&value)
DelegationMetadata & WithStatus(const DelegationStatus &value)
DelegationMetadata & WithControlSetName(const char *value)
DelegationMetadata & WithControlSetName(const Aws::String &value)
AWS_AUDITMANAGER_API DelegationMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCreationTime(Aws::Utils::DateTime &&value)
const DelegationStatus & GetStatus() const
DelegationMetadata & WithAssessmentName(const Aws::String &value)
DelegationMetadata & WithAssessmentId(Aws::String &&value)
void SetAssessmentName(const Aws::String &value)
void SetControlSetName(const Aws::String &value)
void SetStatus(const DelegationStatus &value)
DelegationMetadata & WithId(const Aws::String &value)
DelegationMetadata & WithId(const char *value)
AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
DelegationMetadata & WithRoleArn(Aws::String &&value)
DelegationMetadata & WithStatus(DelegationStatus &&value)
AWS_AUDITMANAGER_API DelegationMetadata(Aws::Utils::Json::JsonView jsonValue)
DelegationMetadata & WithControlSetName(Aws::String &&value)
DelegationMetadata & WithCreationTime(Aws::Utils::DateTime &&value)
DelegationMetadata & WithCreationTime(const Aws::Utils::DateTime &value)
void SetCreationTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetCreationTime() const
void SetAssessmentId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue