AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
MessageMetadata.h
1
6#pragma once
7#include <aws/connectparticipant/ConnectParticipant_EXPORTS.h>
8#include <aws/connectparticipant/model/MessageProcessingStatus.h>
9#include <aws/connectparticipant/model/Receipt.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ConnectParticipant {
23namespace Model {
24
31 public:
32 AWS_CONNECTPARTICIPANT_API MessageMetadata() = default;
33 AWS_CONNECTPARTICIPANT_API MessageMetadata(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONNECTPARTICIPANT_API MessageMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CONNECTPARTICIPANT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetMessageId() const { return m_messageId; }
42 inline bool MessageIdHasBeenSet() const { return m_messageIdHasBeenSet; }
43 template <typename MessageIdT = Aws::String>
44 void SetMessageId(MessageIdT&& value) {
45 m_messageIdHasBeenSet = true;
46 m_messageId = std::forward<MessageIdT>(value);
47 }
48 template <typename MessageIdT = Aws::String>
49 MessageMetadata& WithMessageId(MessageIdT&& value) {
50 SetMessageId(std::forward<MessageIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<Receipt>& GetReceipts() const { return m_receipts; }
60 inline bool ReceiptsHasBeenSet() const { return m_receiptsHasBeenSet; }
61 template <typename ReceiptsT = Aws::Vector<Receipt>>
62 void SetReceipts(ReceiptsT&& value) {
63 m_receiptsHasBeenSet = true;
64 m_receipts = std::forward<ReceiptsT>(value);
65 }
66 template <typename ReceiptsT = Aws::Vector<Receipt>>
67 MessageMetadata& WithReceipts(ReceiptsT&& value) {
68 SetReceipts(std::forward<ReceiptsT>(value));
69 return *this;
70 }
71 template <typename ReceiptsT = Receipt>
72 MessageMetadata& AddReceipts(ReceiptsT&& value) {
73 m_receiptsHasBeenSet = true;
74 m_receipts.emplace_back(std::forward<ReceiptsT>(value));
75 return *this;
76 }
78
80
83 inline MessageProcessingStatus GetMessageProcessingStatus() const { return m_messageProcessingStatus; }
84 inline bool MessageProcessingStatusHasBeenSet() const { return m_messageProcessingStatusHasBeenSet; }
86 m_messageProcessingStatusHasBeenSet = true;
87 m_messageProcessingStatus = value;
88 }
91 return *this;
92 }
94 private:
95 Aws::String m_messageId;
96
97 Aws::Vector<Receipt> m_receipts;
98
100 bool m_messageIdHasBeenSet = false;
101 bool m_receiptsHasBeenSet = false;
102 bool m_messageProcessingStatusHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace ConnectParticipant
107} // namespace Aws
MessageMetadata & WithReceipts(ReceiptsT &&value)
AWS_CONNECTPARTICIPANT_API MessageMetadata(Aws::Utils::Json::JsonView jsonValue)
void SetMessageProcessingStatus(MessageProcessingStatus value)
AWS_CONNECTPARTICIPANT_API MessageMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
MessageProcessingStatus GetMessageProcessingStatus() const
AWS_CONNECTPARTICIPANT_API Aws::Utils::Json::JsonValue Jsonize() const
MessageMetadata & WithMessageId(MessageIdT &&value)
AWS_CONNECTPARTICIPANT_API MessageMetadata()=default
MessageMetadata & AddReceipts(ReceiptsT &&value)
MessageMetadata & WithMessageProcessingStatus(MessageProcessingStatus value)
const Aws::Vector< Receipt > & GetReceipts() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue