AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetStatusCodes(const StatusCodes& value) { m_statusCodesHasBeenSet = true; m_statusCodes = value; }
75 inline void SetStatusCodes(StatusCodes&& value) { m_statusCodesHasBeenSet = true; m_statusCodes = std::move(value); }
76 inline ApplicationMetrics& WithStatusCodes(const StatusCodes& value) { SetStatusCodes(value); return *this;}
77 inline ApplicationMetrics& WithStatusCodes(StatusCodes&& value) { SetStatusCodes(std::move(value)); return *this;}
79
81
85 inline const Latency& GetLatency() const{ return m_latency; }
86 inline bool LatencyHasBeenSet() const { return m_latencyHasBeenSet; }
87 inline void SetLatency(const Latency& value) { m_latencyHasBeenSet = true; m_latency = value; }
88 inline void SetLatency(Latency&& value) { m_latencyHasBeenSet = true; m_latency = std::move(value); }
89 inline ApplicationMetrics& WithLatency(const Latency& value) { SetLatency(value); return *this;}
90 inline ApplicationMetrics& WithLatency(Latency&& value) { SetLatency(std::move(value)); return *this;}
92 private:
93
94 int m_duration;
95 bool m_durationHasBeenSet = false;
96
97 int m_requestCount;
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)
ApplicationMetrics & WithStatusCodes(StatusCodes &&value)
ApplicationMetrics & WithLatency(const Latency &value)
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(const StatusCodes &value)
ApplicationMetrics & WithLatency(Latency &&value)
std::basic_ostream< char, std::char_traits< char > > OStream