AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MessageMetadata.h
1
6#pragma once
7#include <aws/connectparticipant/ConnectParticipant_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/connectparticipant/model/Receipt.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ConnectParticipant
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_CONNECTPARTICIPANT_API MessageMetadata() = default;
37 AWS_CONNECTPARTICIPANT_API MessageMetadata(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECTPARTICIPANT_API MessageMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECTPARTICIPANT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetMessageId() const { return m_messageId; }
47 inline bool MessageIdHasBeenSet() const { return m_messageIdHasBeenSet; }
48 template<typename MessageIdT = Aws::String>
49 void SetMessageId(MessageIdT&& value) { m_messageIdHasBeenSet = true; m_messageId = std::forward<MessageIdT>(value); }
50 template<typename MessageIdT = Aws::String>
51 MessageMetadata& WithMessageId(MessageIdT&& value) { SetMessageId(std::forward<MessageIdT>(value)); return *this;}
53
55
58 inline const Aws::Vector<Receipt>& GetReceipts() const { return m_receipts; }
59 inline bool ReceiptsHasBeenSet() const { return m_receiptsHasBeenSet; }
60 template<typename ReceiptsT = Aws::Vector<Receipt>>
61 void SetReceipts(ReceiptsT&& value) { m_receiptsHasBeenSet = true; m_receipts = std::forward<ReceiptsT>(value); }
62 template<typename ReceiptsT = Aws::Vector<Receipt>>
63 MessageMetadata& WithReceipts(ReceiptsT&& value) { SetReceipts(std::forward<ReceiptsT>(value)); return *this;}
64 template<typename ReceiptsT = Receipt>
65 MessageMetadata& AddReceipts(ReceiptsT&& value) { m_receiptsHasBeenSet = true; m_receipts.emplace_back(std::forward<ReceiptsT>(value)); return *this; }
67 private:
68
69 Aws::String m_messageId;
70 bool m_messageIdHasBeenSet = false;
71
72 Aws::Vector<Receipt> m_receipts;
73 bool m_receiptsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace ConnectParticipant
78} // namespace Aws
MessageMetadata & WithReceipts(ReceiptsT &&value)
AWS_CONNECTPARTICIPANT_API MessageMetadata(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTPARTICIPANT_API MessageMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTPARTICIPANT_API Aws::Utils::Json::JsonValue Jsonize() const
MessageMetadata & WithMessageId(MessageIdT &&value)
AWS_CONNECTPARTICIPANT_API MessageMetadata()=default
MessageMetadata & AddReceipts(ReceiptsT &&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