AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
IgnoreNearExpected.h
1
6#pragma once
7#include <aws/amp/PrometheusService_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace PrometheusService {
17namespace Model {
18
26 public:
27 AWS_PROMETHEUSSERVICE_API IgnoreNearExpected() = default;
28 AWS_PROMETHEUSSERVICE_API IgnoreNearExpected(Aws::Utils::Json::JsonView jsonValue);
29 AWS_PROMETHEUSSERVICE_API IgnoreNearExpected& operator=(Aws::Utils::Json::JsonView jsonValue);
30 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
37 inline double GetAmount() const { return m_amount; }
38 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
39 inline void SetAmount(double value) {
40 m_amountHasBeenSet = true;
41 m_amount = value;
42 }
43 inline IgnoreNearExpected& WithAmount(double value) {
44 SetAmount(value);
45 return *this;
46 }
48
50
54 inline double GetRatio() const { return m_ratio; }
55 inline bool RatioHasBeenSet() const { return m_ratioHasBeenSet; }
56 inline void SetRatio(double value) {
57 m_ratioHasBeenSet = true;
58 m_ratio = value;
59 }
60 inline IgnoreNearExpected& WithRatio(double value) {
61 SetRatio(value);
62 return *this;
63 }
65 private:
66 double m_amount{0.0};
67
68 double m_ratio{0.0};
69 bool m_amountHasBeenSet = false;
70 bool m_ratioHasBeenSet = false;
71};
72
73} // namespace Model
74} // namespace PrometheusService
75} // namespace Aws
AWS_PROMETHEUSSERVICE_API IgnoreNearExpected & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PROMETHEUSSERVICE_API IgnoreNearExpected()=default
AWS_PROMETHEUSSERVICE_API IgnoreNearExpected(Aws::Utils::Json::JsonView jsonValue)
IgnoreNearExpected & WithAmount(double value)
Aws::Utils::Json::JsonValue JsonValue