AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MessageResponse.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/pinpoint/model/EndpointMessageResult.h>
11#include <aws/pinpoint/model/MessageResult.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Pinpoint
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_PINPOINT_API MessageResponse();
39 AWS_PINPOINT_API MessageResponse(Aws::Utils::Json::JsonView jsonValue);
41 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
50 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
51 inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
52 inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
53 inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
54 inline MessageResponse& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
55 inline MessageResponse& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
56 inline MessageResponse& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
58
60
65 inline const Aws::Map<Aws::String, EndpointMessageResult>& GetEndpointResult() const{ return m_endpointResult; }
66 inline bool EndpointResultHasBeenSet() const { return m_endpointResultHasBeenSet; }
67 inline void SetEndpointResult(const Aws::Map<Aws::String, EndpointMessageResult>& value) { m_endpointResultHasBeenSet = true; m_endpointResult = value; }
68 inline void SetEndpointResult(Aws::Map<Aws::String, EndpointMessageResult>&& value) { m_endpointResultHasBeenSet = true; m_endpointResult = std::move(value); }
71 inline MessageResponse& AddEndpointResult(const Aws::String& key, const EndpointMessageResult& value) { m_endpointResultHasBeenSet = true; m_endpointResult.emplace(key, value); return *this; }
72 inline MessageResponse& AddEndpointResult(Aws::String&& key, const EndpointMessageResult& value) { m_endpointResultHasBeenSet = true; m_endpointResult.emplace(std::move(key), value); return *this; }
73 inline MessageResponse& AddEndpointResult(const Aws::String& key, EndpointMessageResult&& value) { m_endpointResultHasBeenSet = true; m_endpointResult.emplace(key, std::move(value)); return *this; }
74 inline MessageResponse& AddEndpointResult(Aws::String&& key, EndpointMessageResult&& value) { m_endpointResultHasBeenSet = true; m_endpointResult.emplace(std::move(key), std::move(value)); return *this; }
75 inline MessageResponse& AddEndpointResult(const char* key, EndpointMessageResult&& value) { m_endpointResultHasBeenSet = true; m_endpointResult.emplace(key, std::move(value)); return *this; }
76 inline MessageResponse& AddEndpointResult(const char* key, const EndpointMessageResult& value) { m_endpointResultHasBeenSet = true; m_endpointResult.emplace(key, value); return *this; }
78
80
84 inline const Aws::String& GetRequestId() const{ return m_requestId; }
85 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
86 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
87 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
88 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
89 inline MessageResponse& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
90 inline MessageResponse& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
91 inline MessageResponse& WithRequestId(const char* value) { SetRequestId(value); return *this;}
93
95
100 inline const Aws::Map<Aws::String, MessageResult>& GetResult() const{ return m_result; }
101 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
102 inline void SetResult(const Aws::Map<Aws::String, MessageResult>& value) { m_resultHasBeenSet = true; m_result = value; }
103 inline void SetResult(Aws::Map<Aws::String, MessageResult>&& value) { m_resultHasBeenSet = true; m_result = std::move(value); }
104 inline MessageResponse& WithResult(const Aws::Map<Aws::String, MessageResult>& value) { SetResult(value); return *this;}
105 inline MessageResponse& WithResult(Aws::Map<Aws::String, MessageResult>&& value) { SetResult(std::move(value)); return *this;}
106 inline MessageResponse& AddResult(const Aws::String& key, const MessageResult& value) { m_resultHasBeenSet = true; m_result.emplace(key, value); return *this; }
107 inline MessageResponse& AddResult(Aws::String&& key, const MessageResult& value) { m_resultHasBeenSet = true; m_result.emplace(std::move(key), value); return *this; }
108 inline MessageResponse& AddResult(const Aws::String& key, MessageResult&& value) { m_resultHasBeenSet = true; m_result.emplace(key, std::move(value)); return *this; }
109 inline MessageResponse& AddResult(Aws::String&& key, MessageResult&& value) { m_resultHasBeenSet = true; m_result.emplace(std::move(key), std::move(value)); return *this; }
110 inline MessageResponse& AddResult(const char* key, MessageResult&& value) { m_resultHasBeenSet = true; m_result.emplace(key, std::move(value)); return *this; }
111 inline MessageResponse& AddResult(const char* key, const MessageResult& value) { m_resultHasBeenSet = true; m_result.emplace(key, value); return *this; }
113 private:
114
115 Aws::String m_applicationId;
116 bool m_applicationIdHasBeenSet = false;
117
119 bool m_endpointResultHasBeenSet = false;
120
121 Aws::String m_requestId;
122 bool m_requestIdHasBeenSet = false;
123
125 bool m_resultHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace Pinpoint
130} // namespace Aws
AWS_PINPOINT_API MessageResponse(Aws::Utils::Json::JsonView jsonValue)
MessageResponse & WithApplicationId(Aws::String &&value)
MessageResponse & AddEndpointResult(Aws::String &&key, const EndpointMessageResult &value)
MessageResponse & AddEndpointResult(const char *key, const EndpointMessageResult &value)
const Aws::Map< Aws::String, EndpointMessageResult > & GetEndpointResult() const
MessageResponse & WithRequestId(Aws::String &&value)
MessageResponse & AddEndpointResult(const char *key, EndpointMessageResult &&value)
MessageResponse & WithRequestId(const char *value)
MessageResponse & AddEndpointResult(const Aws::String &key, const EndpointMessageResult &value)
void SetEndpointResult(const Aws::Map< Aws::String, EndpointMessageResult > &value)
void SetApplicationId(Aws::String &&value)
MessageResponse & WithResult(Aws::Map< Aws::String, MessageResult > &&value)
MessageResponse & WithApplicationId(const Aws::String &value)
MessageResponse & WithResult(const Aws::Map< Aws::String, MessageResult > &value)
void SetRequestId(const Aws::String &value)
void SetResult(Aws::Map< Aws::String, MessageResult > &&value)
MessageResponse & WithEndpointResult(Aws::Map< Aws::String, EndpointMessageResult > &&value)
void SetApplicationId(const Aws::String &value)
void SetEndpointResult(Aws::Map< Aws::String, EndpointMessageResult > &&value)
MessageResponse & AddResult(const char *key, const MessageResult &value)
MessageResponse & WithApplicationId(const char *value)
MessageResponse & WithEndpointResult(const Aws::Map< Aws::String, EndpointMessageResult > &value)
MessageResponse & AddResult(const Aws::String &key, MessageResult &&value)
MessageResponse & AddEndpointResult(const Aws::String &key, EndpointMessageResult &&value)
MessageResponse & WithRequestId(const Aws::String &value)
void SetApplicationId(const char *value)
const Aws::Map< Aws::String, MessageResult > & GetResult() const
AWS_PINPOINT_API MessageResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
MessageResponse & AddResult(Aws::String &&key, MessageResult &&value)
const Aws::String & GetApplicationId() const
const Aws::String & GetRequestId() const
MessageResponse & AddResult(const char *key, MessageResult &&value)
void SetRequestId(Aws::String &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
MessageResponse & AddResult(Aws::String &&key, const MessageResult &value)
MessageResponse & AddResult(const Aws::String &key, const MessageResult &value)
MessageResponse & AddEndpointResult(Aws::String &&key, EndpointMessageResult &&value)
void SetResult(const Aws::Map< Aws::String, MessageResult > &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue