AWS SDK for C++  1.9.13
AWS SDK for C++
OutlierDetection.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace AppMesh
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Duration& GetBaseEjectionDuration() const{ return m_baseEjectionDuration; }
45 
49  inline bool BaseEjectionDurationHasBeenSet() const { return m_baseEjectionDurationHasBeenSet; }
50 
54  inline void SetBaseEjectionDuration(const Duration& value) { m_baseEjectionDurationHasBeenSet = true; m_baseEjectionDuration = value; }
55 
59  inline void SetBaseEjectionDuration(Duration&& value) { m_baseEjectionDurationHasBeenSet = true; m_baseEjectionDuration = std::move(value); }
60 
64  inline OutlierDetection& WithBaseEjectionDuration(const Duration& value) { SetBaseEjectionDuration(value); return *this;}
65 
69  inline OutlierDetection& WithBaseEjectionDuration(Duration&& value) { SetBaseEjectionDuration(std::move(value)); return *this;}
70 
71 
75  inline const Duration& GetInterval() const{ return m_interval; }
76 
80  inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
81 
85  inline void SetInterval(const Duration& value) { m_intervalHasBeenSet = true; m_interval = value; }
86 
90  inline void SetInterval(Duration&& value) { m_intervalHasBeenSet = true; m_interval = std::move(value); }
91 
95  inline OutlierDetection& WithInterval(const Duration& value) { SetInterval(value); return *this;}
96 
100  inline OutlierDetection& WithInterval(Duration&& value) { SetInterval(std::move(value)); return *this;}
101 
102 
107  inline int GetMaxEjectionPercent() const{ return m_maxEjectionPercent; }
108 
113  inline bool MaxEjectionPercentHasBeenSet() const { return m_maxEjectionPercentHasBeenSet; }
114 
119  inline void SetMaxEjectionPercent(int value) { m_maxEjectionPercentHasBeenSet = true; m_maxEjectionPercent = value; }
120 
125  inline OutlierDetection& WithMaxEjectionPercent(int value) { SetMaxEjectionPercent(value); return *this;}
126 
127 
131  inline long long GetMaxServerErrors() const{ return m_maxServerErrors; }
132 
136  inline bool MaxServerErrorsHasBeenSet() const { return m_maxServerErrorsHasBeenSet; }
137 
141  inline void SetMaxServerErrors(long long value) { m_maxServerErrorsHasBeenSet = true; m_maxServerErrors = value; }
142 
146  inline OutlierDetection& WithMaxServerErrors(long long value) { SetMaxServerErrors(value); return *this;}
147 
148  private:
149 
150  Duration m_baseEjectionDuration;
151  bool m_baseEjectionDurationHasBeenSet;
152 
153  Duration m_interval;
154  bool m_intervalHasBeenSet;
155 
156  int m_maxEjectionPercent;
157  bool m_maxEjectionPercentHasBeenSet;
158 
159  long long m_maxServerErrors;
160  bool m_maxServerErrorsHasBeenSet;
161  };
162 
163 } // namespace Model
164 } // namespace AppMesh
165 } // namespace Aws
Aws::AppMesh::Model::OutlierDetection::GetMaxServerErrors
long long GetMaxServerErrors() const
Definition: OutlierDetection.h:131
Aws::AppMesh::Model::OutlierDetection::MaxEjectionPercentHasBeenSet
bool MaxEjectionPercentHasBeenSet() const
Definition: OutlierDetection.h:113
Aws::AppMesh::Model::OutlierDetection::IntervalHasBeenSet
bool IntervalHasBeenSet() const
Definition: OutlierDetection.h:80
Aws::AppMesh::Model::OutlierDetection::SetInterval
void SetInterval(const Duration &value)
Definition: OutlierDetection.h:85
Aws::AppMesh::Model::OutlierDetection
Definition: OutlierDetection.h:33
Aws::AppMesh::Model::OutlierDetection::GetInterval
const Duration & GetInterval() const
Definition: OutlierDetection.h:75
Aws::AppMesh::Model::OutlierDetection::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::OutlierDetection::OutlierDetection
OutlierDetection()
Aws::AppMesh::Model::OutlierDetection::operator=
OutlierDetection & operator=(Aws::Utils::Json::JsonView jsonValue)
AppMesh_EXPORTS.h
Aws::AppMesh::Model::OutlierDetection::GetMaxEjectionPercent
int GetMaxEjectionPercent() const
Definition: OutlierDetection.h:107
Aws::AppMesh::Model::OutlierDetection::WithInterval
OutlierDetection & WithInterval(const Duration &value)
Definition: OutlierDetection.h:95
Aws::AppMesh::Model::OutlierDetection::WithBaseEjectionDuration
OutlierDetection & WithBaseEjectionDuration(Duration &&value)
Definition: OutlierDetection.h:69
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Duration.h
Aws::AppMesh::Model::OutlierDetection::MaxServerErrorsHasBeenSet
bool MaxServerErrorsHasBeenSet() const
Definition: OutlierDetection.h:136
Aws::AppMesh::Model::OutlierDetection::SetInterval
void SetInterval(Duration &&value)
Definition: OutlierDetection.h:90
Aws::AppMesh::Model::OutlierDetection::WithInterval
OutlierDetection & WithInterval(Duration &&value)
Definition: OutlierDetection.h:100
Aws::AppMesh::Model::OutlierDetection::WithMaxServerErrors
OutlierDetection & WithMaxServerErrors(long long value)
Definition: OutlierDetection.h:146
Aws::AppMesh::Model::OutlierDetection::SetMaxEjectionPercent
void SetMaxEjectionPercent(int value)
Definition: OutlierDetection.h:119
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::OutlierDetection::SetBaseEjectionDuration
void SetBaseEjectionDuration(const Duration &value)
Definition: OutlierDetection.h:54
Aws::AppMesh::Model::OutlierDetection::SetBaseEjectionDuration
void SetBaseEjectionDuration(Duration &&value)
Definition: OutlierDetection.h:59
Aws::AppMesh::Model::OutlierDetection::GetBaseEjectionDuration
const Duration & GetBaseEjectionDuration() const
Definition: OutlierDetection.h:44
Aws::AppMesh::Model::OutlierDetection::WithMaxEjectionPercent
OutlierDetection & WithMaxEjectionPercent(int value)
Definition: OutlierDetection.h:125
Aws::AppMesh::Model::Duration
Definition: Duration.h:32
Aws::AppMesh::Model::OutlierDetection::WithBaseEjectionDuration
OutlierDetection & WithBaseEjectionDuration(const Duration &value)
Definition: OutlierDetection.h:64
Aws::AppMesh::Model::OutlierDetection::SetMaxServerErrors
void SetMaxServerErrors(long long value)
Definition: OutlierDetection.h:141
Aws::AppMesh::Model::OutlierDetection::BaseEjectionDurationHasBeenSet
bool BaseEjectionDurationHasBeenSet() const
Definition: OutlierDetection.h:49
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
Aws::AppMesh::Model::OutlierDetection::OutlierDetection
OutlierDetection(Aws::Utils::Json::JsonView jsonValue)