AWS SDK for C++

AWS SDK for C++ Version 1.11.903

Loading...
Searching...
No Matches
ActorMessage.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityagent/SecurityAgent_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SecurityAgent {
21namespace Model {
22
30 public:
31 AWS_SECURITYAGENT_API ActorMessage() = default;
32 AWS_SECURITYAGENT_API ActorMessage(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SECURITYAGENT_API ActorMessage& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetSender() const { return m_sender; }
41 inline bool SenderHasBeenSet() const { return m_senderHasBeenSet; }
42 template <typename SenderT = Aws::String>
43 void SetSender(SenderT&& value) {
44 m_senderHasBeenSet = true;
45 m_sender = std::forward<SenderT>(value);
46 }
47 template <typename SenderT = Aws::String>
48 ActorMessage& WithSender(SenderT&& value) {
49 SetSender(std::forward<SenderT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetSubject() const { return m_subject; }
59 inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
60 template <typename SubjectT = Aws::String>
61 void SetSubject(SubjectT&& value) {
62 m_subjectHasBeenSet = true;
63 m_subject = std::forward<SubjectT>(value);
64 }
65 template <typename SubjectT = Aws::String>
66 ActorMessage& WithSubject(SubjectT&& value) {
67 SetSubject(std::forward<SubjectT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetBody() const { return m_body; }
78 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
79 template <typename BodyT = Aws::String>
80 void SetBody(BodyT&& value) {
81 m_bodyHasBeenSet = true;
82 m_body = std::forward<BodyT>(value);
83 }
84 template <typename BodyT = Aws::String>
85 ActorMessage& WithBody(BodyT&& value) {
86 SetBody(std::forward<BodyT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Utils::DateTime& GetReceivedAt() const { return m_receivedAt; }
96 inline bool ReceivedAtHasBeenSet() const { return m_receivedAtHasBeenSet; }
97 template <typename ReceivedAtT = Aws::Utils::DateTime>
98 void SetReceivedAt(ReceivedAtT&& value) {
99 m_receivedAtHasBeenSet = true;
100 m_receivedAt = std::forward<ReceivedAtT>(value);
101 }
102 template <typename ReceivedAtT = Aws::Utils::DateTime>
103 ActorMessage& WithReceivedAt(ReceivedAtT&& value) {
104 SetReceivedAt(std::forward<ReceivedAtT>(value));
105 return *this;
106 }
108 private:
109 Aws::String m_sender;
110
111 Aws::String m_subject;
112
113 Aws::String m_body;
114
115 Aws::Utils::DateTime m_receivedAt{};
116 bool m_senderHasBeenSet = false;
117 bool m_subjectHasBeenSet = false;
118 bool m_bodyHasBeenSet = false;
119 bool m_receivedAtHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace SecurityAgent
124} // namespace Aws
const Aws::String & GetBody() const
ActorMessage & WithSubject(SubjectT &&value)
ActorMessage & WithReceivedAt(ReceivedAtT &&value)
AWS_SECURITYAGENT_API ActorMessage(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYAGENT_API ActorMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSender() const
AWS_SECURITYAGENT_API ActorMessage()=default
const Aws::Utils::DateTime & GetReceivedAt() const
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetReceivedAt(ReceivedAtT &&value)
const Aws::String & GetSubject() const
ActorMessage & WithSender(SenderT &&value)
ActorMessage & WithBody(BodyT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue