AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MessageResult.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/pinpoint/model/DeliveryStatus.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Pinpoint
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_PINPOINT_API MessageResult();
37 AWS_PINPOINT_API MessageResult(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
58 inline const DeliveryStatus& GetDeliveryStatus() const{ return m_deliveryStatus; }
59 inline bool DeliveryStatusHasBeenSet() const { return m_deliveryStatusHasBeenSet; }
60 inline void SetDeliveryStatus(const DeliveryStatus& value) { m_deliveryStatusHasBeenSet = true; m_deliveryStatus = value; }
61 inline void SetDeliveryStatus(DeliveryStatus&& value) { m_deliveryStatusHasBeenSet = true; m_deliveryStatus = std::move(value); }
62 inline MessageResult& WithDeliveryStatus(const DeliveryStatus& value) { SetDeliveryStatus(value); return *this;}
63 inline MessageResult& WithDeliveryStatus(DeliveryStatus&& value) { SetDeliveryStatus(std::move(value)); return *this;}
65
67
70 inline const Aws::String& GetMessageId() const{ return m_messageId; }
71 inline bool MessageIdHasBeenSet() const { return m_messageIdHasBeenSet; }
72 inline void SetMessageId(const Aws::String& value) { m_messageIdHasBeenSet = true; m_messageId = value; }
73 inline void SetMessageId(Aws::String&& value) { m_messageIdHasBeenSet = true; m_messageId = std::move(value); }
74 inline void SetMessageId(const char* value) { m_messageIdHasBeenSet = true; m_messageId.assign(value); }
75 inline MessageResult& WithMessageId(const Aws::String& value) { SetMessageId(value); return *this;}
76 inline MessageResult& WithMessageId(Aws::String&& value) { SetMessageId(std::move(value)); return *this;}
77 inline MessageResult& WithMessageId(const char* value) { SetMessageId(value); return *this;}
79
81
84 inline int GetStatusCode() const{ return m_statusCode; }
85 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
86 inline void SetStatusCode(int value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
87 inline MessageResult& WithStatusCode(int value) { SetStatusCode(value); return *this;}
89
91
94 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
95 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
96 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
97 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
98 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
99 inline MessageResult& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
100 inline MessageResult& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
101 inline MessageResult& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
103
105
110 inline const Aws::String& GetUpdatedToken() const{ return m_updatedToken; }
111 inline bool UpdatedTokenHasBeenSet() const { return m_updatedTokenHasBeenSet; }
112 inline void SetUpdatedToken(const Aws::String& value) { m_updatedTokenHasBeenSet = true; m_updatedToken = value; }
113 inline void SetUpdatedToken(Aws::String&& value) { m_updatedTokenHasBeenSet = true; m_updatedToken = std::move(value); }
114 inline void SetUpdatedToken(const char* value) { m_updatedTokenHasBeenSet = true; m_updatedToken.assign(value); }
115 inline MessageResult& WithUpdatedToken(const Aws::String& value) { SetUpdatedToken(value); return *this;}
116 inline MessageResult& WithUpdatedToken(Aws::String&& value) { SetUpdatedToken(std::move(value)); return *this;}
117 inline MessageResult& WithUpdatedToken(const char* value) { SetUpdatedToken(value); return *this;}
119 private:
120
121 DeliveryStatus m_deliveryStatus;
122 bool m_deliveryStatusHasBeenSet = false;
123
124 Aws::String m_messageId;
125 bool m_messageIdHasBeenSet = false;
126
127 int m_statusCode;
128 bool m_statusCodeHasBeenSet = false;
129
130 Aws::String m_statusMessage;
131 bool m_statusMessageHasBeenSet = false;
132
133 Aws::String m_updatedToken;
134 bool m_updatedTokenHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace Pinpoint
139} // namespace Aws
MessageResult & WithMessageId(const char *value)
MessageResult & WithDeliveryStatus(DeliveryStatus &&value)
MessageResult & WithStatusCode(int value)
MessageResult & WithStatusMessage(Aws::String &&value)
const DeliveryStatus & GetDeliveryStatus() const
const Aws::String & GetMessageId() const
void SetMessageId(const char *value)
MessageResult & WithUpdatedToken(const char *value)
MessageResult & WithUpdatedToken(const Aws::String &value)
const Aws::String & GetStatusMessage() const
MessageResult & WithDeliveryStatus(const DeliveryStatus &value)
void SetStatusMessage(Aws::String &&value)
MessageResult & WithStatusMessage(const Aws::String &value)
AWS_PINPOINT_API MessageResult & operator=(Aws::Utils::Json::JsonView jsonValue)
MessageResult & WithStatusMessage(const char *value)
const Aws::String & GetUpdatedToken() const
void SetUpdatedToken(const char *value)
void SetStatusMessage(const Aws::String &value)
void SetMessageId(const Aws::String &value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatusMessage(const char *value)
AWS_PINPOINT_API MessageResult(Aws::Utils::Json::JsonView jsonValue)
void SetMessageId(Aws::String &&value)
void SetUpdatedToken(const Aws::String &value)
void SetUpdatedToken(Aws::String &&value)
void SetDeliveryStatus(const DeliveryStatus &value)
void SetDeliveryStatus(DeliveryStatus &&value)
MessageResult & WithMessageId(const Aws::String &value)
MessageResult & WithMessageId(Aws::String &&value)
MessageResult & WithUpdatedToken(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue