AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
JourneyExecutionMetricsResponse.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pinpoint/Pinpoint_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Pinpoint {
21namespace Model {
22
31 public:
32 AWS_PINPOINT_API JourneyExecutionMetricsResponse() = default;
35 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
42 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
43 template <typename ApplicationIdT = Aws::String>
44 void SetApplicationId(ApplicationIdT&& value) {
45 m_applicationIdHasBeenSet = true;
46 m_applicationId = std::forward<ApplicationIdT>(value);
47 }
48 template <typename ApplicationIdT = Aws::String>
50 SetApplicationId(std::forward<ApplicationIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetJourneyId() const { return m_journeyId; }
60 inline bool JourneyIdHasBeenSet() const { return m_journeyIdHasBeenSet; }
61 template <typename JourneyIdT = Aws::String>
62 void SetJourneyId(JourneyIdT&& value) {
63 m_journeyIdHasBeenSet = true;
64 m_journeyId = std::forward<JourneyIdT>(value);
65 }
66 template <typename JourneyIdT = Aws::String>
68 SetJourneyId(std::forward<JourneyIdT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetLastEvaluatedTime() const { return m_lastEvaluatedTime; }
79 inline bool LastEvaluatedTimeHasBeenSet() const { return m_lastEvaluatedTimeHasBeenSet; }
80 template <typename LastEvaluatedTimeT = Aws::String>
81 void SetLastEvaluatedTime(LastEvaluatedTimeT&& value) {
82 m_lastEvaluatedTimeHasBeenSet = true;
83 m_lastEvaluatedTime = std::forward<LastEvaluatedTimeT>(value);
84 }
85 template <typename LastEvaluatedTimeT = Aws::String>
87 SetLastEvaluatedTime(std::forward<LastEvaluatedTimeT>(value));
88 return *this;
89 }
91
93
99 inline const Aws::Map<Aws::String, Aws::String>& GetMetrics() const { return m_metrics; }
100 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
101 template <typename MetricsT = Aws::Map<Aws::String, Aws::String>>
102 void SetMetrics(MetricsT&& value) {
103 m_metricsHasBeenSet = true;
104 m_metrics = std::forward<MetricsT>(value);
105 }
106 template <typename MetricsT = Aws::Map<Aws::String, Aws::String>>
108 SetMetrics(std::forward<MetricsT>(value));
109 return *this;
110 }
111 template <typename MetricsKeyT = Aws::String, typename MetricsValueT = Aws::String>
112 JourneyExecutionMetricsResponse& AddMetrics(MetricsKeyT&& key, MetricsValueT&& value) {
113 m_metricsHasBeenSet = true;
114 m_metrics.emplace(std::forward<MetricsKeyT>(key), std::forward<MetricsValueT>(value));
115 return *this;
116 }
118 private:
119 Aws::String m_applicationId;
120 bool m_applicationIdHasBeenSet = false;
121
122 Aws::String m_journeyId;
123 bool m_journeyIdHasBeenSet = false;
124
125 Aws::String m_lastEvaluatedTime;
126 bool m_lastEvaluatedTimeHasBeenSet = false;
127
129 bool m_metricsHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace Pinpoint
134} // namespace Aws
AWS_PINPOINT_API JourneyExecutionMetricsResponse()=default
JourneyExecutionMetricsResponse & WithJourneyId(JourneyIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetMetrics() const
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
JourneyExecutionMetricsResponse & WithApplicationId(ApplicationIdT &&value)
AWS_PINPOINT_API JourneyExecutionMetricsResponse(Aws::Utils::Json::JsonView jsonValue)
JourneyExecutionMetricsResponse & AddMetrics(MetricsKeyT &&key, MetricsValueT &&value)
JourneyExecutionMetricsResponse & WithMetrics(MetricsT &&value)
AWS_PINPOINT_API JourneyExecutionMetricsResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
JourneyExecutionMetricsResponse & WithLastEvaluatedTime(LastEvaluatedTimeT &&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