AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Time.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Inspector2
22{
23namespace Model
24{
25
31 class Time
32 {
33 public:
34 AWS_INSPECTOR2_API Time() = default;
35 AWS_INSPECTOR2_API Time(Aws::Utils::Json::JsonView jsonValue);
36 AWS_INSPECTOR2_API Time& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetTimeOfDay() const { return m_timeOfDay; }
45 inline bool TimeOfDayHasBeenSet() const { return m_timeOfDayHasBeenSet; }
46 template<typename TimeOfDayT = Aws::String>
47 void SetTimeOfDay(TimeOfDayT&& value) { m_timeOfDayHasBeenSet = true; m_timeOfDay = std::forward<TimeOfDayT>(value); }
48 template<typename TimeOfDayT = Aws::String>
49 Time& WithTimeOfDay(TimeOfDayT&& value) { SetTimeOfDay(std::forward<TimeOfDayT>(value)); return *this;}
51
53
56 inline const Aws::String& GetTimezone() const { return m_timezone; }
57 inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; }
58 template<typename TimezoneT = Aws::String>
59 void SetTimezone(TimezoneT&& value) { m_timezoneHasBeenSet = true; m_timezone = std::forward<TimezoneT>(value); }
60 template<typename TimezoneT = Aws::String>
61 Time& WithTimezone(TimezoneT&& value) { SetTimezone(std::forward<TimezoneT>(value)); return *this;}
63 private:
64
65 Aws::String m_timeOfDay;
66 bool m_timeOfDayHasBeenSet = false;
67
68 Aws::String m_timezone;
69 bool m_timezoneHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace Inspector2
74} // namespace Aws
bool TimezoneHasBeenSet() const
Definition Time.h:57
Time & WithTimeOfDay(TimeOfDayT &&value)
Definition Time.h:49
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTimezone(TimezoneT &&value)
Definition Time.h:59
Time & WithTimezone(TimezoneT &&value)
Definition Time.h:61
const Aws::String & GetTimezone() const
Definition Time.h:56
void SetTimeOfDay(TimeOfDayT &&value)
Definition Time.h:47
bool TimeOfDayHasBeenSet() const
Definition Time.h:45
AWS_INSPECTOR2_API Time & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTimeOfDay() const
Definition Time.h:44
AWS_INSPECTOR2_API Time()=default
AWS_INSPECTOR2_API Time(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue