AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetMessageId(const Aws::String& value) { m_messageIdHasBeenSet = true; m_messageId = value; }
49 inline void SetMessageId(Aws::String&& value) { m_messageIdHasBeenSet = true; m_messageId = std::move(value); }
50 inline void SetMessageId(const char* value) { m_messageIdHasBeenSet = true; m_messageId.assign(value); }
51 inline MessageMetadata& WithMessageId(const Aws::String& value) { SetMessageId(value); return *this;}
52 inline MessageMetadata& WithMessageId(Aws::String&& value) { SetMessageId(std::move(value)); return *this;}
53 inline MessageMetadata& WithMessageId(const char* value) { SetMessageId(value); return *this;}
55
57
60 inline const Aws::Vector<Receipt>& GetReceipts() const{ return m_receipts; }
61 inline bool ReceiptsHasBeenSet() const { return m_receiptsHasBeenSet; }
62 inline void SetReceipts(const Aws::Vector<Receipt>& value) { m_receiptsHasBeenSet = true; m_receipts = value; }
63 inline void SetReceipts(Aws::Vector<Receipt>&& value) { m_receiptsHasBeenSet = true; m_receipts = std::move(value); }
64 inline MessageMetadata& WithReceipts(const Aws::Vector<Receipt>& value) { SetReceipts(value); return *this;}
65 inline MessageMetadata& WithReceipts(Aws::Vector<Receipt>&& value) { SetReceipts(std::move(value)); return *this;}
66 inline MessageMetadata& AddReceipts(const Receipt& value) { m_receiptsHasBeenSet = true; m_receipts.push_back(value); return *this; }
67 inline MessageMetadata& AddReceipts(Receipt&& value) { m_receiptsHasBeenSet = true; m_receipts.push_back(std::move(value)); return *this; }
69 private:
70
71 Aws::String m_messageId;
72 bool m_messageIdHasBeenSet = false;
73
74 Aws::Vector<Receipt> m_receipts;
75 bool m_receiptsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace ConnectParticipant
80} // namespace Aws
MessageMetadata & AddReceipts(const Receipt &value)
MessageMetadata & WithMessageId(const Aws::String &value)
void SetReceipts(const Aws::Vector< Receipt > &value)
AWS_CONNECTPARTICIPANT_API MessageMetadata(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTPARTICIPANT_API MessageMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
MessageMetadata & WithReceipts(Aws::Vector< Receipt > &&value)
MessageMetadata & WithMessageId(const char *value)
AWS_CONNECTPARTICIPANT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetReceipts(Aws::Vector< Receipt > &&value)
MessageMetadata & WithReceipts(const Aws::Vector< Receipt > &value)
MessageMetadata & WithMessageId(Aws::String &&value)
const Aws::Vector< Receipt > & GetReceipts() const
AWS_CONNECTPARTICIPANT_API MessageMetadata()
void SetMessageId(const Aws::String &value)
MessageMetadata & AddReceipts(Receipt &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue