AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
GetResourceMetricsResult.h
1
6#pragma once
7#include <aws/pi/PI_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/pi/model/MetricKeyDataPoints.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace PI
27{
28namespace Model
29{
31 {
32 public:
33 AWS_PI_API GetResourceMetricsResult() = default;
36
37
39
45 inline const Aws::Utils::DateTime& GetAlignedStartTime() const { return m_alignedStartTime; }
46 template<typename AlignedStartTimeT = Aws::Utils::DateTime>
47 void SetAlignedStartTime(AlignedStartTimeT&& value) { m_alignedStartTimeHasBeenSet = true; m_alignedStartTime = std::forward<AlignedStartTimeT>(value); }
48 template<typename AlignedStartTimeT = Aws::Utils::DateTime>
49 GetResourceMetricsResult& WithAlignedStartTime(AlignedStartTimeT&& value) { SetAlignedStartTime(std::forward<AlignedStartTimeT>(value)); return *this;}
51
53
59 inline const Aws::Utils::DateTime& GetAlignedEndTime() const { return m_alignedEndTime; }
60 template<typename AlignedEndTimeT = Aws::Utils::DateTime>
61 void SetAlignedEndTime(AlignedEndTimeT&& value) { m_alignedEndTimeHasBeenSet = true; m_alignedEndTime = std::forward<AlignedEndTimeT>(value); }
62 template<typename AlignedEndTimeT = Aws::Utils::DateTime>
63 GetResourceMetricsResult& WithAlignedEndTime(AlignedEndTimeT&& value) { SetAlignedEndTime(std::forward<AlignedEndTimeT>(value)); return *this;}
65
67
74 inline const Aws::String& GetIdentifier() const { return m_identifier; }
75 template<typename IdentifierT = Aws::String>
76 void SetIdentifier(IdentifierT&& value) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
77 template<typename IdentifierT = Aws::String>
78 GetResourceMetricsResult& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
80
82
86 inline const Aws::Vector<MetricKeyDataPoints>& GetMetricList() const { return m_metricList; }
87 template<typename MetricListT = Aws::Vector<MetricKeyDataPoints>>
88 void SetMetricList(MetricListT&& value) { m_metricListHasBeenSet = true; m_metricList = std::forward<MetricListT>(value); }
89 template<typename MetricListT = Aws::Vector<MetricKeyDataPoints>>
90 GetResourceMetricsResult& WithMetricList(MetricListT&& value) { SetMetricList(std::forward<MetricListT>(value)); return *this;}
91 template<typename MetricListT = MetricKeyDataPoints>
92 GetResourceMetricsResult& AddMetricList(MetricListT&& value) { m_metricListHasBeenSet = true; m_metricList.emplace_back(std::forward<MetricListT>(value)); return *this; }
94
96
101 inline const Aws::String& GetNextToken() const { return m_nextToken; }
102 template<typename NextTokenT = Aws::String>
103 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
104 template<typename NextTokenT = Aws::String>
105 GetResourceMetricsResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
107
109
110 inline const Aws::String& GetRequestId() const { return m_requestId; }
111 template<typename RequestIdT = Aws::String>
112 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
113 template<typename RequestIdT = Aws::String>
114 GetResourceMetricsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
116 private:
117
118 Aws::Utils::DateTime m_alignedStartTime{};
119 bool m_alignedStartTimeHasBeenSet = false;
120
121 Aws::Utils::DateTime m_alignedEndTime{};
122 bool m_alignedEndTimeHasBeenSet = false;
123
124 Aws::String m_identifier;
125 bool m_identifierHasBeenSet = false;
126
128 bool m_metricListHasBeenSet = false;
129
130 Aws::String m_nextToken;
131 bool m_nextTokenHasBeenSet = false;
132
133 Aws::String m_requestId;
134 bool m_requestIdHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace PI
139} // namespace Aws
GetResourceMetricsResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetAlignedStartTime() const
AWS_PI_API GetResourceMetricsResult()=default
const Aws::Vector< MetricKeyDataPoints > & GetMetricList() const
void SetAlignedStartTime(AlignedStartTimeT &&value)
AWS_PI_API GetResourceMetricsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetResourceMetricsResult & WithAlignedEndTime(AlignedEndTimeT &&value)
GetResourceMetricsResult & WithAlignedStartTime(AlignedStartTimeT &&value)
const Aws::Utils::DateTime & GetAlignedEndTime() const
GetResourceMetricsResult & WithNextToken(NextTokenT &&value)
AWS_PI_API GetResourceMetricsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetResourceMetricsResult & AddMetricList(MetricListT &&value)
GetResourceMetricsResult & WithIdentifier(IdentifierT &&value)
GetResourceMetricsResult & WithMetricList(MetricListT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue