AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename ApplicationIdT = Aws::String>
52 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::forward<ApplicationIdT>(value); }
53 template<typename ApplicationIdT = Aws::String>
54 MessageResponse& WithApplicationId(ApplicationIdT&& value) { SetApplicationId(std::forward<ApplicationIdT>(value)); return *this;}
56
58
63 inline const Aws::Map<Aws::String, EndpointMessageResult>& GetEndpointResult() const { return m_endpointResult; }
64 inline bool EndpointResultHasBeenSet() const { return m_endpointResultHasBeenSet; }
65 template<typename EndpointResultT = Aws::Map<Aws::String, EndpointMessageResult>>
66 void SetEndpointResult(EndpointResultT&& value) { m_endpointResultHasBeenSet = true; m_endpointResult = std::forward<EndpointResultT>(value); }
67 template<typename EndpointResultT = Aws::Map<Aws::String, EndpointMessageResult>>
68 MessageResponse& WithEndpointResult(EndpointResultT&& value) { SetEndpointResult(std::forward<EndpointResultT>(value)); return *this;}
69 template<typename EndpointResultKeyT = Aws::String, typename EndpointResultValueT = EndpointMessageResult>
70 MessageResponse& AddEndpointResult(EndpointResultKeyT&& key, EndpointResultValueT&& value) {
71 m_endpointResultHasBeenSet = true; m_endpointResult.emplace(std::forward<EndpointResultKeyT>(key), std::forward<EndpointResultValueT>(value)); return *this;
72 }
74
76
80 inline const Aws::String& GetRequestId() const { return m_requestId; }
81 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
82 template<typename RequestIdT = Aws::String>
83 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
84 template<typename RequestIdT = Aws::String>
85 MessageResponse& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
87
89
94 inline const Aws::Map<Aws::String, MessageResult>& GetResult() const { return m_result; }
95 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
96 template<typename ResultT = Aws::Map<Aws::String, MessageResult>>
97 void SetResult(ResultT&& value) { m_resultHasBeenSet = true; m_result = std::forward<ResultT>(value); }
98 template<typename ResultT = Aws::Map<Aws::String, MessageResult>>
99 MessageResponse& WithResult(ResultT&& value) { SetResult(std::forward<ResultT>(value)); return *this;}
100 template<typename ResultKeyT = Aws::String, typename ResultValueT = MessageResult>
101 MessageResponse& AddResult(ResultKeyT&& key, ResultValueT&& value) {
102 m_resultHasBeenSet = true; m_result.emplace(std::forward<ResultKeyT>(key), std::forward<ResultValueT>(value)); return *this;
103 }
105 private:
106
107 Aws::String m_applicationId;
108 bool m_applicationIdHasBeenSet = false;
109
111 bool m_endpointResultHasBeenSet = false;
112
113 Aws::String m_requestId;
114 bool m_requestIdHasBeenSet = false;
115
117 bool m_resultHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace Pinpoint
122} // namespace Aws
AWS_PINPOINT_API MessageResponse(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API MessageResponse()=default
const Aws::Map< Aws::String, EndpointMessageResult > & GetEndpointResult() const
MessageResponse & AddResult(ResultKeyT &&key, ResultValueT &&value)
MessageResponse & AddEndpointResult(EndpointResultKeyT &&key, EndpointResultValueT &&value)
MessageResponse & WithEndpointResult(EndpointResultT &&value)
void SetEndpointResult(EndpointResultT &&value)
void SetRequestId(RequestIdT &&value)
MessageResponse & WithApplicationId(ApplicationIdT &&value)
MessageResponse & WithRequestId(RequestIdT &&value)
void SetApplicationId(ApplicationIdT &&value)
const Aws::Map< Aws::String, MessageResult > & GetResult() const
AWS_PINPOINT_API MessageResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetApplicationId() const
const Aws::String & GetRequestId() const
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
MessageResponse & WithResult(ResultT &&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