AWS SDK for C++  1.9.132
AWS SDK for C++
TimestreamTimestamp.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 
45  inline const Aws::String& GetValue() const{ return m_value; }
46 
50  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
51 
55  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
56 
60  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
61 
65  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
66 
70  inline TimestreamTimestamp& WithValue(const Aws::String& value) { SetValue(value); return *this;}
71 
75  inline TimestreamTimestamp& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
76 
80  inline TimestreamTimestamp& WithValue(const char* value) { SetValue(value); return *this;}
81 
82 
89  inline const Aws::String& GetUnit() const{ return m_unit; }
90 
97  inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
98 
105  inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
106 
113  inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
114 
121  inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
122 
129  inline TimestreamTimestamp& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
130 
137  inline TimestreamTimestamp& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
138 
145  inline TimestreamTimestamp& WithUnit(const char* value) { SetUnit(value); return *this;}
146 
147  private:
148 
149  Aws::String m_value;
150  bool m_valueHasBeenSet;
151 
152  Aws::String m_unit;
153  bool m_unitHasBeenSet;
154  };
155 
156 } // namespace Model
157 } // namespace IoT
158 } // namespace Aws
Aws::IoT::Model::TimestreamTimestamp::WithUnit
TimestreamTimestamp & WithUnit(Aws::String &&value)
Definition: TimestreamTimestamp.h:137
Aws::IoT::Model::TimestreamTimestamp::GetValue
const Aws::String & GetValue() const
Definition: TimestreamTimestamp.h:45
Aws::IoT::Model::TimestreamTimestamp::SetValue
void SetValue(const char *value)
Definition: TimestreamTimestamp.h:65
Aws::IoT::Model::TimestreamTimestamp::SetUnit
void SetUnit(const char *value)
Definition: TimestreamTimestamp.h:121
Aws::IoT::Model::TimestreamTimestamp
Definition: TimestreamTimestamp.h:34
Aws::IoT::Model::TimestreamTimestamp::SetValue
void SetValue(Aws::String &&value)
Definition: TimestreamTimestamp.h:60
Aws::IoT::Model::TimestreamTimestamp::WithUnit
TimestreamTimestamp & WithUnit(const char *value)
Definition: TimestreamTimestamp.h:145
Aws::IoT::Model::TimestreamTimestamp::TimestreamTimestamp
TimestreamTimestamp(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::TimestreamTimestamp::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: TimestreamTimestamp.h:50
Aws::IoT::Model::TimestreamTimestamp::SetValue
void SetValue(const Aws::String &value)
Definition: TimestreamTimestamp.h:55
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::IoT::Model::TimestreamTimestamp::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::TimestreamTimestamp::GetUnit
const Aws::String & GetUnit() const
Definition: TimestreamTimestamp.h:89
Aws::IoT::Model::TimestreamTimestamp::WithValue
TimestreamTimestamp & WithValue(Aws::String &&value)
Definition: TimestreamTimestamp.h:75
Aws::IoT::Model::TimestreamTimestamp::WithUnit
TimestreamTimestamp & WithUnit(const Aws::String &value)
Definition: TimestreamTimestamp.h:129
Aws::IoT::Model::TimestreamTimestamp::WithValue
TimestreamTimestamp & WithValue(const Aws::String &value)
Definition: TimestreamTimestamp.h:70
Aws::IoT::Model::TimestreamTimestamp::SetUnit
void SetUnit(Aws::String &&value)
Definition: TimestreamTimestamp.h:113
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::TimestreamTimestamp::UnitHasBeenSet
bool UnitHasBeenSet() const
Definition: TimestreamTimestamp.h:97
Aws::IoT::Model::TimestreamTimestamp::TimestreamTimestamp
TimestreamTimestamp()
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::TimestreamTimestamp::WithValue
TimestreamTimestamp & WithValue(const char *value)
Definition: TimestreamTimestamp.h:80
Aws::IoT::Model::TimestreamTimestamp::operator=
TimestreamTimestamp & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::TimestreamTimestamp::SetUnit
void SetUnit(const Aws::String &value)
Definition: TimestreamTimestamp.h:105
IoT_EXPORTS.h