AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ChangeLog.h
1
6#pragma once
7#include <aws/auditmanager/AuditManager_EXPORTS.h>
8#include <aws/auditmanager/model/ActionEnum.h>
9#include <aws/auditmanager/model/ObjectTypeEnum.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AuditManager {
23namespace Model {
24
32class ChangeLog {
33 public:
34 AWS_AUDITMANAGER_API ChangeLog() = default;
35 AWS_AUDITMANAGER_API ChangeLog(Aws::Utils::Json::JsonView jsonValue);
36 AWS_AUDITMANAGER_API ChangeLog& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline ObjectTypeEnum GetObjectType() const { return m_objectType; }
45 inline bool ObjectTypeHasBeenSet() const { return m_objectTypeHasBeenSet; }
46 inline void SetObjectType(ObjectTypeEnum value) {
47 m_objectTypeHasBeenSet = true;
48 m_objectType = value;
49 }
51 SetObjectType(value);
52 return *this;
53 }
55
57
61 inline const Aws::String& GetObjectName() const { return m_objectName; }
62 inline bool ObjectNameHasBeenSet() const { return m_objectNameHasBeenSet; }
63 template <typename ObjectNameT = Aws::String>
64 void SetObjectName(ObjectNameT&& value) {
65 m_objectNameHasBeenSet = true;
66 m_objectName = std::forward<ObjectNameT>(value);
67 }
68 template <typename ObjectNameT = Aws::String>
69 ChangeLog& WithObjectName(ObjectNameT&& value) {
70 SetObjectName(std::forward<ObjectNameT>(value));
71 return *this;
72 }
74
76
79 inline ActionEnum GetAction() const { return m_action; }
80 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
81 inline void SetAction(ActionEnum value) {
82 m_actionHasBeenSet = true;
83 m_action = value;
84 }
86 SetAction(value);
87 return *this;
88 }
90
92
96 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
97 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
98 template <typename CreatedAtT = Aws::Utils::DateTime>
99 void SetCreatedAt(CreatedAtT&& value) {
100 m_createdAtHasBeenSet = true;
101 m_createdAt = std::forward<CreatedAtT>(value);
102 }
103 template <typename CreatedAtT = Aws::Utils::DateTime>
104 ChangeLog& WithCreatedAt(CreatedAtT&& value) {
105 SetCreatedAt(std::forward<CreatedAtT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
115 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
116 template <typename CreatedByT = Aws::String>
117 void SetCreatedBy(CreatedByT&& value) {
118 m_createdByHasBeenSet = true;
119 m_createdBy = std::forward<CreatedByT>(value);
120 }
121 template <typename CreatedByT = Aws::String>
122 ChangeLog& WithCreatedBy(CreatedByT&& value) {
123 SetCreatedBy(std::forward<CreatedByT>(value));
124 return *this;
125 }
127 private:
129
130 Aws::String m_objectName;
131
133
134 Aws::Utils::DateTime m_createdAt{};
135
136 Aws::String m_createdBy;
137 bool m_objectTypeHasBeenSet = false;
138 bool m_objectNameHasBeenSet = false;
139 bool m_actionHasBeenSet = false;
140 bool m_createdAtHasBeenSet = false;
141 bool m_createdByHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace AuditManager
146} // namespace Aws
ChangeLog & WithCreatedBy(CreatedByT &&value)
Definition ChangeLog.h:122
void SetObjectType(ObjectTypeEnum value)
Definition ChangeLog.h:46
ChangeLog & WithCreatedAt(CreatedAtT &&value)
Definition ChangeLog.h:104
void SetObjectName(ObjectNameT &&value)
Definition ChangeLog.h:64
AWS_AUDITMANAGER_API ChangeLog(Aws::Utils::Json::JsonView jsonValue)
void SetAction(ActionEnum value)
Definition ChangeLog.h:81
const Aws::String & GetObjectName() const
Definition ChangeLog.h:61
const Aws::String & GetCreatedBy() const
Definition ChangeLog.h:114
ObjectTypeEnum GetObjectType() const
Definition ChangeLog.h:44
AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_AUDITMANAGER_API ChangeLog()=default
ChangeLog & WithObjectName(ObjectNameT &&value)
Definition ChangeLog.h:69
const Aws::Utils::DateTime & GetCreatedAt() const
Definition ChangeLog.h:96
void SetCreatedAt(CreatedAtT &&value)
Definition ChangeLog.h:99
AWS_AUDITMANAGER_API ChangeLog & operator=(Aws::Utils::Json::JsonView jsonValue)
ChangeLog & WithAction(ActionEnum value)
Definition ChangeLog.h:85
ChangeLog & WithObjectType(ObjectTypeEnum value)
Definition ChangeLog.h:50
void SetCreatedBy(CreatedByT &&value)
Definition ChangeLog.h:117
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue