AWS SDK for C++  1.9.124
AWS SDK for C++
FleetMetricNameAndArn.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 
32  {
33  public:
38 
39 
43  inline const Aws::String& GetMetricName() const{ return m_metricName; }
44 
48  inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
49 
53  inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
54 
58  inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
59 
63  inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
64 
68  inline FleetMetricNameAndArn& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
69 
73  inline FleetMetricNameAndArn& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
74 
78  inline FleetMetricNameAndArn& WithMetricName(const char* value) { SetMetricName(value); return *this;}
79 
80 
84  inline const Aws::String& GetMetricArn() const{ return m_metricArn; }
85 
89  inline bool MetricArnHasBeenSet() const { return m_metricArnHasBeenSet; }
90 
94  inline void SetMetricArn(const Aws::String& value) { m_metricArnHasBeenSet = true; m_metricArn = value; }
95 
99  inline void SetMetricArn(Aws::String&& value) { m_metricArnHasBeenSet = true; m_metricArn = std::move(value); }
100 
104  inline void SetMetricArn(const char* value) { m_metricArnHasBeenSet = true; m_metricArn.assign(value); }
105 
109  inline FleetMetricNameAndArn& WithMetricArn(const Aws::String& value) { SetMetricArn(value); return *this;}
110 
114  inline FleetMetricNameAndArn& WithMetricArn(Aws::String&& value) { SetMetricArn(std::move(value)); return *this;}
115 
119  inline FleetMetricNameAndArn& WithMetricArn(const char* value) { SetMetricArn(value); return *this;}
120 
121  private:
122 
123  Aws::String m_metricName;
124  bool m_metricNameHasBeenSet;
125 
126  Aws::String m_metricArn;
127  bool m_metricArnHasBeenSet;
128  };
129 
130 } // namespace Model
131 } // namespace IoT
132 } // namespace Aws
Aws::IoT::Model::FleetMetricNameAndArn::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::FleetMetricNameAndArn::SetMetricName
void SetMetricName(const Aws::String &value)
Definition: FleetMetricNameAndArn.h:53
Aws::IoT::Model::FleetMetricNameAndArn::SetMetricName
void SetMetricName(Aws::String &&value)
Definition: FleetMetricNameAndArn.h:58
Aws::IoT::Model::FleetMetricNameAndArn::SetMetricArn
void SetMetricArn(const Aws::String &value)
Definition: FleetMetricNameAndArn.h:94
Aws::IoT::Model::FleetMetricNameAndArn::MetricNameHasBeenSet
bool MetricNameHasBeenSet() const
Definition: FleetMetricNameAndArn.h:48
Aws::IoT::Model::FleetMetricNameAndArn::WithMetricName
FleetMetricNameAndArn & WithMetricName(const Aws::String &value)
Definition: FleetMetricNameAndArn.h:68
Aws::IoT::Model::FleetMetricNameAndArn::SetMetricName
void SetMetricName(const char *value)
Definition: FleetMetricNameAndArn.h:63
Aws::IoT::Model::FleetMetricNameAndArn::FleetMetricNameAndArn
FleetMetricNameAndArn()
Aws::IoT::Model::FleetMetricNameAndArn::WithMetricArn
FleetMetricNameAndArn & WithMetricArn(Aws::String &&value)
Definition: FleetMetricNameAndArn.h:114
Aws::IoT::Model::FleetMetricNameAndArn::WithMetricArn
FleetMetricNameAndArn & WithMetricArn(const char *value)
Definition: FleetMetricNameAndArn.h:119
Aws::IoT::Model::FleetMetricNameAndArn::WithMetricName
FleetMetricNameAndArn & WithMetricName(const char *value)
Definition: FleetMetricNameAndArn.h:78
Aws::IoT::Model::FleetMetricNameAndArn
Definition: FleetMetricNameAndArn.h:32
Aws::IoT::Model::FleetMetricNameAndArn::MetricArnHasBeenSet
bool MetricArnHasBeenSet() const
Definition: FleetMetricNameAndArn.h:89
Aws::IoT::Model::FleetMetricNameAndArn::GetMetricArn
const Aws::String & GetMetricArn() const
Definition: FleetMetricNameAndArn.h:84
Aws::IoT::Model::FleetMetricNameAndArn::operator=
FleetMetricNameAndArn & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::IoT::Model::FleetMetricNameAndArn::FleetMetricNameAndArn
FleetMetricNameAndArn(Aws::Utils::Json::JsonView jsonValue)
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::FleetMetricNameAndArn::WithMetricName
FleetMetricNameAndArn & WithMetricName(Aws::String &&value)
Definition: FleetMetricNameAndArn.h:73
Aws::IoT::Model::FleetMetricNameAndArn::GetMetricName
const Aws::String & GetMetricName() const
Definition: FleetMetricNameAndArn.h:43
Aws::IoT::Model::FleetMetricNameAndArn::SetMetricArn
void SetMetricArn(Aws::String &&value)
Definition: FleetMetricNameAndArn.h:99
Aws::IoT::Model::FleetMetricNameAndArn::WithMetricArn
FleetMetricNameAndArn & WithMetricArn(const Aws::String &value)
Definition: FleetMetricNameAndArn.h:109
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::FleetMetricNameAndArn::SetMetricArn
void SetMetricArn(const char *value)
Definition: FleetMetricNameAndArn.h:104
IoT_EXPORTS.h