AWS SDK for C++  1.9.123
AWS SDK for C++
StatisticalThreshold.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
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 IoT
22 {
23 namespace Model
24 {
25 
34  {
35  public:
40 
41 
52  inline const Aws::String& GetStatistic() const{ return m_statistic; }
53 
64  inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
65 
76  inline void SetStatistic(const Aws::String& value) { m_statisticHasBeenSet = true; m_statistic = value; }
77 
88  inline void SetStatistic(Aws::String&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); }
89 
100  inline void SetStatistic(const char* value) { m_statisticHasBeenSet = true; m_statistic.assign(value); }
101 
112  inline StatisticalThreshold& WithStatistic(const Aws::String& value) { SetStatistic(value); return *this;}
113 
124  inline StatisticalThreshold& WithStatistic(Aws::String&& value) { SetStatistic(std::move(value)); return *this;}
125 
136  inline StatisticalThreshold& WithStatistic(const char* value) { SetStatistic(value); return *this;}
137 
138  private:
139 
140  Aws::String m_statistic;
141  bool m_statisticHasBeenSet;
142  };
143 
144 } // namespace Model
145 } // namespace IoT
146 } // namespace Aws
Aws::IoT::Model::StatisticalThreshold::StatisticalThreshold
StatisticalThreshold(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::StatisticalThreshold::WithStatistic
StatisticalThreshold & WithStatistic(const Aws::String &value)
Definition: StatisticalThreshold.h:112
Aws::IoT::Model::StatisticalThreshold::StatisticHasBeenSet
bool StatisticHasBeenSet() const
Definition: StatisticalThreshold.h:64
Aws::IoT::Model::StatisticalThreshold::WithStatistic
StatisticalThreshold & WithStatistic(const char *value)
Definition: StatisticalThreshold.h:136
Aws::IoT::Model::StatisticalThreshold::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::StatisticalThreshold::operator=
StatisticalThreshold & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::StatisticalThreshold::SetStatistic
void SetStatistic(Aws::String &&value)
Definition: StatisticalThreshold.h:88
Aws::IoT::Model::StatisticalThreshold::GetStatistic
const Aws::String & GetStatistic() const
Definition: StatisticalThreshold.h:52
Aws::IoT::Model::StatisticalThreshold::WithStatistic
StatisticalThreshold & WithStatistic(Aws::String &&value)
Definition: StatisticalThreshold.h:124
Aws::IoT::Model::StatisticalThreshold::StatisticalThreshold
StatisticalThreshold()
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws
Definition: AccessManagementClient.h:15
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::StatisticalThreshold::SetStatistic
void SetStatistic(const char *value)
Definition: StatisticalThreshold.h:100
Aws::IoT::Model::StatisticalThreshold
Definition: StatisticalThreshold.h:34
Aws::IoT::Model::StatisticalThreshold::SetStatistic
void SetStatistic(const Aws::String &value)
Definition: StatisticalThreshold.h:76
IoT_EXPORTS.h