AWS SDK for C++  0.12.9
AWS SDK for C++
ApplicationMetrics.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace ElasticBeanstalk
31 {
32 namespace Model
33 {
34 
39  {
40  public:
43  ApplicationMetrics& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
53  inline long GetDuration() const{ return m_duration; }
54 
60  inline void SetDuration(long value) { m_durationHasBeenSet = true; m_duration = value; }
61 
67  inline ApplicationMetrics& WithDuration(long value) { SetDuration(value); return *this;}
68 
73  inline long GetRequestCount() const{ return m_requestCount; }
74 
79  inline void SetRequestCount(long value) { m_requestCountHasBeenSet = true; m_requestCount = value; }
80 
85  inline ApplicationMetrics& WithRequestCount(long value) { SetRequestCount(value); return *this;}
86 
91  inline const StatusCodes& GetStatusCodes() const{ return m_statusCodes; }
92 
97  inline void SetStatusCodes(const StatusCodes& value) { m_statusCodesHasBeenSet = true; m_statusCodes = value; }
98 
103  inline void SetStatusCodes(StatusCodes&& value) { m_statusCodesHasBeenSet = true; m_statusCodes = value; }
104 
109  inline ApplicationMetrics& WithStatusCodes(const StatusCodes& value) { SetStatusCodes(value); return *this;}
110 
115  inline ApplicationMetrics& WithStatusCodes(StatusCodes&& value) { SetStatusCodes(value); return *this;}
116 
121  inline const Latency& GetLatency() const{ return m_latency; }
122 
127  inline void SetLatency(const Latency& value) { m_latencyHasBeenSet = true; m_latency = value; }
128 
133  inline void SetLatency(Latency&& value) { m_latencyHasBeenSet = true; m_latency = value; }
134 
139  inline ApplicationMetrics& WithLatency(const Latency& value) { SetLatency(value); return *this;}
140 
145  inline ApplicationMetrics& WithLatency(Latency&& value) { SetLatency(value); return *this;}
146 
147  private:
148  long m_duration;
149  bool m_durationHasBeenSet;
150  long m_requestCount;
151  bool m_requestCountHasBeenSet;
152  StatusCodes m_statusCodes;
153  bool m_statusCodesHasBeenSet;
154  Latency m_latency;
155  bool m_latencyHasBeenSet;
156  };
157 
158 } // namespace Model
159 } // namespace ElasticBeanstalk
160 } // namespace Aws
ApplicationMetrics & WithStatusCodes(StatusCodes &&value)
ApplicationMetrics & WithDuration(long value)
#define AWS_ELASTICBEANSTALK_API
ApplicationMetrics & WithStatusCodes(const StatusCodes &value)
ApplicationMetrics & WithLatency(const Latency &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
ApplicationMetrics & WithRequestCount(long value)
ApplicationMetrics & WithLatency(Latency &&value)
JSON (JavaScript Object Notation).