AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ApplicationMetrics.h
1
6#pragma once
7#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/elasticbeanstalk/model/StatusCodes.h>
10#include <aws/elasticbeanstalk/model/Latency.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace ElasticBeanstalk
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_ELASTICBEANSTALK_API ApplicationMetrics() = default;
37 AWS_ELASTICBEANSTALK_API ApplicationMetrics(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_ELASTICBEANSTALK_API ApplicationMetrics& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
50 inline int GetDuration() const { return m_duration; }
51 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
52 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
53 inline ApplicationMetrics& WithDuration(int value) { SetDuration(value); return *this;}
55
57
61 inline int GetRequestCount() const { return m_requestCount; }
62 inline bool RequestCountHasBeenSet() const { return m_requestCountHasBeenSet; }
63 inline void SetRequestCount(int value) { m_requestCountHasBeenSet = true; m_requestCount = value; }
64 inline ApplicationMetrics& WithRequestCount(int value) { SetRequestCount(value); return *this;}
66
68
72 inline const StatusCodes& GetStatusCodes() const { return m_statusCodes; }
73 inline bool StatusCodesHasBeenSet() const { return m_statusCodesHasBeenSet; }
74 template<typename StatusCodesT = StatusCodes>
75 void SetStatusCodes(StatusCodesT&& value) { m_statusCodesHasBeenSet = true; m_statusCodes = std::forward<StatusCodesT>(value); }
76 template<typename StatusCodesT = StatusCodes>
77 ApplicationMetrics& WithStatusCodes(StatusCodesT&& value) { SetStatusCodes(std::forward<StatusCodesT>(value)); return *this;}
79
81
85 inline const Latency& GetLatency() const { return m_latency; }
86 inline bool LatencyHasBeenSet() const { return m_latencyHasBeenSet; }
87 template<typename LatencyT = Latency>
88 void SetLatency(LatencyT&& value) { m_latencyHasBeenSet = true; m_latency = std::forward<LatencyT>(value); }
89 template<typename LatencyT = Latency>
90 ApplicationMetrics& WithLatency(LatencyT&& value) { SetLatency(std::forward<LatencyT>(value)); return *this;}
92 private:
93
94 int m_duration{0};
95 bool m_durationHasBeenSet = false;
96
97 int m_requestCount{0};
98 bool m_requestCountHasBeenSet = false;
99
100 StatusCodes m_statusCodes;
101 bool m_statusCodesHasBeenSet = false;
102
103 Latency m_latency;
104 bool m_latencyHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace ElasticBeanstalk
109} // namespace Aws
AWS_ELASTICBEANSTALK_API ApplicationMetrics & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICBEANSTALK_API ApplicationMetrics(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ApplicationMetrics & WithStatusCodes(StatusCodesT &&value)
ApplicationMetrics & WithLatency(LatencyT &&value)
AWS_ELASTICBEANSTALK_API ApplicationMetrics()=default
std::basic_ostream< char, std::char_traits< char > > OStream