AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
CaseEditItem.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/security-ir/SecurityIR_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SecurityIR {
21namespace Model {
22
29 public:
30 AWS_SECURITYIR_API CaseEditItem() = default;
31 AWS_SECURITYIR_API CaseEditItem(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SECURITYIR_API CaseEditItem& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SECURITYIR_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Utils::DateTime& GetEventTimestamp() const { return m_eventTimestamp; }
40 inline bool EventTimestampHasBeenSet() const { return m_eventTimestampHasBeenSet; }
41 template <typename EventTimestampT = Aws::Utils::DateTime>
42 void SetEventTimestamp(EventTimestampT&& value) {
43 m_eventTimestampHasBeenSet = true;
44 m_eventTimestamp = std::forward<EventTimestampT>(value);
45 }
46 template <typename EventTimestampT = Aws::Utils::DateTime>
47 CaseEditItem& WithEventTimestamp(EventTimestampT&& value) {
48 SetEventTimestamp(std::forward<EventTimestampT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetPrincipal() const { return m_principal; }
58 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
59 template <typename PrincipalT = Aws::String>
60 void SetPrincipal(PrincipalT&& value) {
61 m_principalHasBeenSet = true;
62 m_principal = std::forward<PrincipalT>(value);
63 }
64 template <typename PrincipalT = Aws::String>
65 CaseEditItem& WithPrincipal(PrincipalT&& value) {
66 SetPrincipal(std::forward<PrincipalT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetAction() const { return m_action; }
76 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
77 template <typename ActionT = Aws::String>
78 void SetAction(ActionT&& value) {
79 m_actionHasBeenSet = true;
80 m_action = std::forward<ActionT>(value);
81 }
82 template <typename ActionT = Aws::String>
83 CaseEditItem& WithAction(ActionT&& value) {
84 SetAction(std::forward<ActionT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetMessage() const { return m_message; }
94 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
95 template <typename MessageT = Aws::String>
96 void SetMessage(MessageT&& value) {
97 m_messageHasBeenSet = true;
98 m_message = std::forward<MessageT>(value);
99 }
100 template <typename MessageT = Aws::String>
101 CaseEditItem& WithMessage(MessageT&& value) {
102 SetMessage(std::forward<MessageT>(value));
103 return *this;
104 }
106 private:
107 Aws::Utils::DateTime m_eventTimestamp{};
108
109 Aws::String m_principal;
110
111 Aws::String m_action;
112
113 Aws::String m_message;
114 bool m_eventTimestampHasBeenSet = false;
115 bool m_principalHasBeenSet = false;
116 bool m_actionHasBeenSet = false;
117 bool m_messageHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace SecurityIR
122} // namespace Aws
AWS_SECURITYIR_API CaseEditItem()=default
const Aws::String & GetMessage() const
AWS_SECURITYIR_API CaseEditItem(Aws::Utils::Json::JsonView jsonValue)
void SetPrincipal(PrincipalT &&value)
CaseEditItem & WithEventTimestamp(EventTimestampT &&value)
CaseEditItem & WithMessage(MessageT &&value)
AWS_SECURITYIR_API CaseEditItem & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetEventTimestamp() const
AWS_SECURITYIR_API Aws::Utils::Json::JsonValue Jsonize() const
CaseEditItem & WithAction(ActionT &&value)
const Aws::String & GetPrincipal() const
CaseEditItem & WithPrincipal(PrincipalT &&value)
void SetEventTimestamp(EventTimestampT &&value)
const Aws::String & GetAction() const
void SetMessage(MessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue