AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EndpointMessageResult.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pinpoint/model/DeliveryStatus.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 EndpointMessageResult();
39 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetAddress() const{ return m_address; }
47 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
48 inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; }
49 inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = std::move(value); }
50 inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); }
51 inline EndpointMessageResult& WithAddress(const Aws::String& value) { SetAddress(value); return *this;}
52 inline EndpointMessageResult& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;}
53 inline EndpointMessageResult& WithAddress(const char* value) { SetAddress(value); return *this;}
55
57
72 inline const DeliveryStatus& GetDeliveryStatus() const{ return m_deliveryStatus; }
73 inline bool DeliveryStatusHasBeenSet() const { return m_deliveryStatusHasBeenSet; }
74 inline void SetDeliveryStatus(const DeliveryStatus& value) { m_deliveryStatusHasBeenSet = true; m_deliveryStatus = value; }
75 inline void SetDeliveryStatus(DeliveryStatus&& value) { m_deliveryStatusHasBeenSet = true; m_deliveryStatus = std::move(value); }
76 inline EndpointMessageResult& WithDeliveryStatus(const DeliveryStatus& value) { SetDeliveryStatus(value); return *this;}
77 inline EndpointMessageResult& WithDeliveryStatus(DeliveryStatus&& value) { SetDeliveryStatus(std::move(value)); return *this;}
79
81
84 inline const Aws::String& GetMessageId() const{ return m_messageId; }
85 inline bool MessageIdHasBeenSet() const { return m_messageIdHasBeenSet; }
86 inline void SetMessageId(const Aws::String& value) { m_messageIdHasBeenSet = true; m_messageId = value; }
87 inline void SetMessageId(Aws::String&& value) { m_messageIdHasBeenSet = true; m_messageId = std::move(value); }
88 inline void SetMessageId(const char* value) { m_messageIdHasBeenSet = true; m_messageId.assign(value); }
89 inline EndpointMessageResult& WithMessageId(const Aws::String& value) { SetMessageId(value); return *this;}
90 inline EndpointMessageResult& WithMessageId(Aws::String&& value) { SetMessageId(std::move(value)); return *this;}
91 inline EndpointMessageResult& WithMessageId(const char* value) { SetMessageId(value); return *this;}
93
95
98 inline int GetStatusCode() const{ return m_statusCode; }
99 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
100 inline void SetStatusCode(int value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
101 inline EndpointMessageResult& WithStatusCode(int value) { SetStatusCode(value); return *this;}
103
105
108 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
109 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
110 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
111 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
112 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
113 inline EndpointMessageResult& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
114 inline EndpointMessageResult& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
115 inline EndpointMessageResult& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
117
119
124 inline const Aws::String& GetUpdatedToken() const{ return m_updatedToken; }
125 inline bool UpdatedTokenHasBeenSet() const { return m_updatedTokenHasBeenSet; }
126 inline void SetUpdatedToken(const Aws::String& value) { m_updatedTokenHasBeenSet = true; m_updatedToken = value; }
127 inline void SetUpdatedToken(Aws::String&& value) { m_updatedTokenHasBeenSet = true; m_updatedToken = std::move(value); }
128 inline void SetUpdatedToken(const char* value) { m_updatedTokenHasBeenSet = true; m_updatedToken.assign(value); }
129 inline EndpointMessageResult& WithUpdatedToken(const Aws::String& value) { SetUpdatedToken(value); return *this;}
130 inline EndpointMessageResult& WithUpdatedToken(Aws::String&& value) { SetUpdatedToken(std::move(value)); return *this;}
131 inline EndpointMessageResult& WithUpdatedToken(const char* value) { SetUpdatedToken(value); return *this;}
133 private:
134
135 Aws::String m_address;
136 bool m_addressHasBeenSet = false;
137
138 DeliveryStatus m_deliveryStatus;
139 bool m_deliveryStatusHasBeenSet = false;
140
141 Aws::String m_messageId;
142 bool m_messageIdHasBeenSet = false;
143
144 int m_statusCode;
145 bool m_statusCodeHasBeenSet = false;
146
147 Aws::String m_statusMessage;
148 bool m_statusMessageHasBeenSet = false;
149
150 Aws::String m_updatedToken;
151 bool m_updatedTokenHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace Pinpoint
156} // namespace Aws
void SetDeliveryStatus(const DeliveryStatus &value)
EndpointMessageResult & WithAddress(const Aws::String &value)
EndpointMessageResult & WithUpdatedToken(const Aws::String &value)
EndpointMessageResult & WithStatusCode(int value)
const DeliveryStatus & GetDeliveryStatus() const
EndpointMessageResult & WithMessageId(const char *value)
AWS_PINPOINT_API EndpointMessageResult(Aws::Utils::Json::JsonView jsonValue)
EndpointMessageResult & WithUpdatedToken(const char *value)
EndpointMessageResult & WithStatusMessage(const char *value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
EndpointMessageResult & WithMessageId(Aws::String &&value)
EndpointMessageResult & WithAddress(const char *value)
EndpointMessageResult & WithMessageId(const Aws::String &value)
AWS_PINPOINT_API EndpointMessageResult & operator=(Aws::Utils::Json::JsonView jsonValue)
EndpointMessageResult & WithStatusMessage(const Aws::String &value)
EndpointMessageResult & WithUpdatedToken(Aws::String &&value)
EndpointMessageResult & WithStatusMessage(Aws::String &&value)
EndpointMessageResult & WithDeliveryStatus(const DeliveryStatus &value)
EndpointMessageResult & WithAddress(Aws::String &&value)
EndpointMessageResult & WithDeliveryStatus(DeliveryStatus &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue