AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
JourneyRunExecutionMetricsResponse.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 JourneyRunExecutionMetricsResponse() = 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
100 inline const Aws::Map<Aws::String, Aws::String>& GetMetrics() const { return m_metrics; }
101 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
102 template <typename MetricsT = Aws::Map<Aws::String, Aws::String>>
103 void SetMetrics(MetricsT&& value) {
104 m_metricsHasBeenSet = true;
105 m_metrics = std::forward<MetricsT>(value);
106 }
107 template <typename MetricsT = Aws::Map<Aws::String, Aws::String>>
109 SetMetrics(std::forward<MetricsT>(value));
110 return *this;
111 }
112 template <typename MetricsKeyT = Aws::String, typename MetricsValueT = Aws::String>
113 JourneyRunExecutionMetricsResponse& AddMetrics(MetricsKeyT&& key, MetricsValueT&& value) {
114 m_metricsHasBeenSet = true;
115 m_metrics.emplace(std::forward<MetricsKeyT>(key), std::forward<MetricsValueT>(value));
116 return *this;
117 }
119
121
124 inline const Aws::String& GetRunId() const { return m_runId; }
125 inline bool RunIdHasBeenSet() const { return m_runIdHasBeenSet; }
126 template <typename RunIdT = Aws::String>
127 void SetRunId(RunIdT&& value) {
128 m_runIdHasBeenSet = true;
129 m_runId = std::forward<RunIdT>(value);
130 }
131 template <typename RunIdT = Aws::String>
133 SetRunId(std::forward<RunIdT>(value));
134 return *this;
135 }
137 private:
138 Aws::String m_applicationId;
139 bool m_applicationIdHasBeenSet = false;
140
141 Aws::String m_journeyId;
142 bool m_journeyIdHasBeenSet = false;
143
144 Aws::String m_lastEvaluatedTime;
145 bool m_lastEvaluatedTimeHasBeenSet = false;
146
148 bool m_metricsHasBeenSet = false;
149
150 Aws::String m_runId;
151 bool m_runIdHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace Pinpoint
156} // namespace Aws
JourneyRunExecutionMetricsResponse & WithApplicationId(ApplicationIdT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PINPOINT_API JourneyRunExecutionMetricsResponse(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API JourneyRunExecutionMetricsResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
JourneyRunExecutionMetricsResponse & WithMetrics(MetricsT &&value)
JourneyRunExecutionMetricsResponse & WithLastEvaluatedTime(LastEvaluatedTimeT &&value)
JourneyRunExecutionMetricsResponse & AddMetrics(MetricsKeyT &&key, MetricsValueT &&value)
JourneyRunExecutionMetricsResponse & WithJourneyId(JourneyIdT &&value)
JourneyRunExecutionMetricsResponse & WithRunId(RunIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetMetrics() const
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