AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AuditEvent.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/connectcases/model/AuditEventPerformedBy.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/connectcases/model/RelatedItemType.h>
13#include <aws/connectcases/model/AuditEventType.h>
14#include <aws/connectcases/model/AuditEventField.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace ConnectCases
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_CONNECTCASES_API AuditEvent();
42 AWS_CONNECTCASES_API AuditEvent(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CONNECTCASES_API AuditEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetEventId() const{ return m_eventId; }
52 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
53 inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
54 inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); }
55 inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
56 inline AuditEvent& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
57 inline AuditEvent& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;}
58 inline AuditEvent& WithEventId(const char* value) { SetEventId(value); return *this;}
60
62
65 inline const Aws::Vector<AuditEventField>& GetFields() const{ return m_fields; }
66 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
67 inline void SetFields(const Aws::Vector<AuditEventField>& value) { m_fieldsHasBeenSet = true; m_fields = value; }
68 inline void SetFields(Aws::Vector<AuditEventField>&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); }
69 inline AuditEvent& WithFields(const Aws::Vector<AuditEventField>& value) { SetFields(value); return *this;}
70 inline AuditEvent& WithFields(Aws::Vector<AuditEventField>&& value) { SetFields(std::move(value)); return *this;}
71 inline AuditEvent& AddFields(const AuditEventField& value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; }
72 inline AuditEvent& AddFields(AuditEventField&& value) { m_fieldsHasBeenSet = true; m_fields.push_back(std::move(value)); return *this; }
74
76
79 inline const AuditEventPerformedBy& GetPerformedBy() const{ return m_performedBy; }
80 inline bool PerformedByHasBeenSet() const { return m_performedByHasBeenSet; }
81 inline void SetPerformedBy(const AuditEventPerformedBy& value) { m_performedByHasBeenSet = true; m_performedBy = value; }
82 inline void SetPerformedBy(AuditEventPerformedBy&& value) { m_performedByHasBeenSet = true; m_performedBy = std::move(value); }
83 inline AuditEvent& WithPerformedBy(const AuditEventPerformedBy& value) { SetPerformedBy(value); return *this;}
84 inline AuditEvent& WithPerformedBy(AuditEventPerformedBy&& value) { SetPerformedBy(std::move(value)); return *this;}
86
88
91 inline const Aws::Utils::DateTime& GetPerformedTime() const{ return m_performedTime; }
92 inline bool PerformedTimeHasBeenSet() const { return m_performedTimeHasBeenSet; }
93 inline void SetPerformedTime(const Aws::Utils::DateTime& value) { m_performedTimeHasBeenSet = true; m_performedTime = value; }
94 inline void SetPerformedTime(Aws::Utils::DateTime&& value) { m_performedTimeHasBeenSet = true; m_performedTime = std::move(value); }
95 inline AuditEvent& WithPerformedTime(const Aws::Utils::DateTime& value) { SetPerformedTime(value); return *this;}
96 inline AuditEvent& WithPerformedTime(Aws::Utils::DateTime&& value) { SetPerformedTime(std::move(value)); return *this;}
98
100
103 inline const RelatedItemType& GetRelatedItemType() const{ return m_relatedItemType; }
104 inline bool RelatedItemTypeHasBeenSet() const { return m_relatedItemTypeHasBeenSet; }
105 inline void SetRelatedItemType(const RelatedItemType& value) { m_relatedItemTypeHasBeenSet = true; m_relatedItemType = value; }
106 inline void SetRelatedItemType(RelatedItemType&& value) { m_relatedItemTypeHasBeenSet = true; m_relatedItemType = std::move(value); }
107 inline AuditEvent& WithRelatedItemType(const RelatedItemType& value) { SetRelatedItemType(value); return *this;}
108 inline AuditEvent& WithRelatedItemType(RelatedItemType&& value) { SetRelatedItemType(std::move(value)); return *this;}
110
112
115 inline const AuditEventType& GetType() const{ return m_type; }
116 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
117 inline void SetType(const AuditEventType& value) { m_typeHasBeenSet = true; m_type = value; }
118 inline void SetType(AuditEventType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
119 inline AuditEvent& WithType(const AuditEventType& value) { SetType(value); return *this;}
120 inline AuditEvent& WithType(AuditEventType&& value) { SetType(std::move(value)); return *this;}
122 private:
123
124 Aws::String m_eventId;
125 bool m_eventIdHasBeenSet = false;
126
128 bool m_fieldsHasBeenSet = false;
129
130 AuditEventPerformedBy m_performedBy;
131 bool m_performedByHasBeenSet = false;
132
133 Aws::Utils::DateTime m_performedTime;
134 bool m_performedTimeHasBeenSet = false;
135
136 RelatedItemType m_relatedItemType;
137 bool m_relatedItemTypeHasBeenSet = false;
138
139 AuditEventType m_type;
140 bool m_typeHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace ConnectCases
145} // namespace Aws
AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetPerformedTime() const
Definition AuditEvent.h:91
const AuditEventType & GetType() const
Definition AuditEvent.h:115
AWS_CONNECTCASES_API AuditEvent()
AuditEvent & WithEventId(Aws::String &&value)
Definition AuditEvent.h:57
AuditEvent & WithType(const AuditEventType &value)
Definition AuditEvent.h:119
AuditEvent & WithEventId(const char *value)
Definition AuditEvent.h:58
AuditEvent & WithPerformedBy(const AuditEventPerformedBy &value)
Definition AuditEvent.h:83
void SetEventId(Aws::String &&value)
Definition AuditEvent.h:54
AuditEvent & WithRelatedItemType(RelatedItemType &&value)
Definition AuditEvent.h:108
void SetFields(Aws::Vector< AuditEventField > &&value)
Definition AuditEvent.h:68
void SetEventId(const Aws::String &value)
Definition AuditEvent.h:53
void SetType(AuditEventType &&value)
Definition AuditEvent.h:118
void SetRelatedItemType(const RelatedItemType &value)
Definition AuditEvent.h:105
AWS_CONNECTCASES_API AuditEvent(Aws::Utils::Json::JsonView jsonValue)
AuditEvent & AddFields(const AuditEventField &value)
Definition AuditEvent.h:71
AuditEvent & WithPerformedTime(const Aws::Utils::DateTime &value)
Definition AuditEvent.h:95
void SetFields(const Aws::Vector< AuditEventField > &value)
Definition AuditEvent.h:67
AuditEvent & WithFields(Aws::Vector< AuditEventField > &&value)
Definition AuditEvent.h:70
void SetType(const AuditEventType &value)
Definition AuditEvent.h:117
void SetPerformedTime(Aws::Utils::DateTime &&value)
Definition AuditEvent.h:94
AuditEvent & WithRelatedItemType(const RelatedItemType &value)
Definition AuditEvent.h:107
AuditEvent & AddFields(AuditEventField &&value)
Definition AuditEvent.h:72
void SetPerformedTime(const Aws::Utils::DateTime &value)
Definition AuditEvent.h:93
AuditEvent & WithPerformedBy(AuditEventPerformedBy &&value)
Definition AuditEvent.h:84
const RelatedItemType & GetRelatedItemType() const
Definition AuditEvent.h:103
AuditEvent & WithFields(const Aws::Vector< AuditEventField > &value)
Definition AuditEvent.h:69
const AuditEventPerformedBy & GetPerformedBy() const
Definition AuditEvent.h:79
AWS_CONNECTCASES_API AuditEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRelatedItemType(RelatedItemType &&value)
Definition AuditEvent.h:106
const Aws::Vector< AuditEventField > & GetFields() const
Definition AuditEvent.h:65
const Aws::String & GetEventId() const
Definition AuditEvent.h:51
AuditEvent & WithType(AuditEventType &&value)
Definition AuditEvent.h:120
AuditEvent & WithEventId(const Aws::String &value)
Definition AuditEvent.h:56
void SetPerformedBy(AuditEventPerformedBy &&value)
Definition AuditEvent.h:82
void SetPerformedBy(const AuditEventPerformedBy &value)
Definition AuditEvent.h:81
void SetEventId(const char *value)
Definition AuditEvent.h:55
AuditEvent & WithPerformedTime(Aws::Utils::DateTime &&value)
Definition AuditEvent.h:96
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue