AWS SDK for C++  1.9.132
AWS SDK for C++
AssetPropertyTimestamp.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 
33  {
34  public:
39 
40 
45  inline const Aws::String& GetTimeInSeconds() const{ return m_timeInSeconds; }
46 
51  inline bool TimeInSecondsHasBeenSet() const { return m_timeInSecondsHasBeenSet; }
52 
57  inline void SetTimeInSeconds(const Aws::String& value) { m_timeInSecondsHasBeenSet = true; m_timeInSeconds = value; }
58 
63  inline void SetTimeInSeconds(Aws::String&& value) { m_timeInSecondsHasBeenSet = true; m_timeInSeconds = std::move(value); }
64 
69  inline void SetTimeInSeconds(const char* value) { m_timeInSecondsHasBeenSet = true; m_timeInSeconds.assign(value); }
70 
75  inline AssetPropertyTimestamp& WithTimeInSeconds(const Aws::String& value) { SetTimeInSeconds(value); return *this;}
76 
81  inline AssetPropertyTimestamp& WithTimeInSeconds(Aws::String&& value) { SetTimeInSeconds(std::move(value)); return *this;}
82 
87  inline AssetPropertyTimestamp& WithTimeInSeconds(const char* value) { SetTimeInSeconds(value); return *this;}
88 
89 
94  inline const Aws::String& GetOffsetInNanos() const{ return m_offsetInNanos; }
95 
100  inline bool OffsetInNanosHasBeenSet() const { return m_offsetInNanosHasBeenSet; }
101 
106  inline void SetOffsetInNanos(const Aws::String& value) { m_offsetInNanosHasBeenSet = true; m_offsetInNanos = value; }
107 
112  inline void SetOffsetInNanos(Aws::String&& value) { m_offsetInNanosHasBeenSet = true; m_offsetInNanos = std::move(value); }
113 
118  inline void SetOffsetInNanos(const char* value) { m_offsetInNanosHasBeenSet = true; m_offsetInNanos.assign(value); }
119 
124  inline AssetPropertyTimestamp& WithOffsetInNanos(const Aws::String& value) { SetOffsetInNanos(value); return *this;}
125 
130  inline AssetPropertyTimestamp& WithOffsetInNanos(Aws::String&& value) { SetOffsetInNanos(std::move(value)); return *this;}
131 
136  inline AssetPropertyTimestamp& WithOffsetInNanos(const char* value) { SetOffsetInNanos(value); return *this;}
137 
138  private:
139 
140  Aws::String m_timeInSeconds;
141  bool m_timeInSecondsHasBeenSet;
142 
143  Aws::String m_offsetInNanos;
144  bool m_offsetInNanosHasBeenSet;
145  };
146 
147 } // namespace Model
148 } // namespace IoT
149 } // namespace Aws
Aws::IoT::Model::AssetPropertyTimestamp::SetOffsetInNanos
void SetOffsetInNanos(Aws::String &&value)
Definition: AssetPropertyTimestamp.h:112
Aws::IoT::Model::AssetPropertyTimestamp
Definition: AssetPropertyTimestamp.h:33
Aws::IoT::Model::AssetPropertyTimestamp::GetTimeInSeconds
const Aws::String & GetTimeInSeconds() const
Definition: AssetPropertyTimestamp.h:45
Aws::IoT::Model::AssetPropertyTimestamp::WithTimeInSeconds
AssetPropertyTimestamp & WithTimeInSeconds(const Aws::String &value)
Definition: AssetPropertyTimestamp.h:75
Aws::IoT::Model::AssetPropertyTimestamp::SetTimeInSeconds
void SetTimeInSeconds(Aws::String &&value)
Definition: AssetPropertyTimestamp.h:63
Aws::IoT::Model::AssetPropertyTimestamp::OffsetInNanosHasBeenSet
bool OffsetInNanosHasBeenSet() const
Definition: AssetPropertyTimestamp.h:100
Aws::IoT::Model::AssetPropertyTimestamp::WithTimeInSeconds
AssetPropertyTimestamp & WithTimeInSeconds(Aws::String &&value)
Definition: AssetPropertyTimestamp.h:81
Aws::IoT::Model::AssetPropertyTimestamp::SetOffsetInNanos
void SetOffsetInNanos(const Aws::String &value)
Definition: AssetPropertyTimestamp.h:106
Aws::IoT::Model::AssetPropertyTimestamp::operator=
AssetPropertyTimestamp & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::AssetPropertyTimestamp::SetOffsetInNanos
void SetOffsetInNanos(const char *value)
Definition: AssetPropertyTimestamp.h:118
Aws::IoT::Model::AssetPropertyTimestamp::TimeInSecondsHasBeenSet
bool TimeInSecondsHasBeenSet() const
Definition: AssetPropertyTimestamp.h:51
Aws::IoT::Model::AssetPropertyTimestamp::GetOffsetInNanos
const Aws::String & GetOffsetInNanos() const
Definition: AssetPropertyTimestamp.h:94
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::AssetPropertyTimestamp::WithTimeInSeconds
AssetPropertyTimestamp & WithTimeInSeconds(const char *value)
Definition: AssetPropertyTimestamp.h:87
Aws::IoT::Model::AssetPropertyTimestamp::SetTimeInSeconds
void SetTimeInSeconds(const Aws::String &value)
Definition: AssetPropertyTimestamp.h:57
Aws::IoT::Model::AssetPropertyTimestamp::AssetPropertyTimestamp
AssetPropertyTimestamp()
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::AssetPropertyTimestamp::WithOffsetInNanos
AssetPropertyTimestamp & WithOffsetInNanos(Aws::String &&value)
Definition: AssetPropertyTimestamp.h:130
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::AssetPropertyTimestamp::SetTimeInSeconds
void SetTimeInSeconds(const char *value)
Definition: AssetPropertyTimestamp.h:69
Aws::IoT::Model::AssetPropertyTimestamp::WithOffsetInNanos
AssetPropertyTimestamp & WithOffsetInNanos(const char *value)
Definition: AssetPropertyTimestamp.h:136
Aws::IoT::Model::AssetPropertyTimestamp::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::AssetPropertyTimestamp::AssetPropertyTimestamp
AssetPropertyTimestamp(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::AssetPropertyTimestamp::WithOffsetInNanos
AssetPropertyTimestamp & WithOffsetInNanos(const Aws::String &value)
Definition: AssetPropertyTimestamp.h:124
IoT_EXPORTS.h