AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Time.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/inspector2/Inspector2_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Inspector2 {
20namespace Model {
21
27class Time {
28 public:
29 AWS_INSPECTOR2_API Time() = default;
30 AWS_INSPECTOR2_API Time(Aws::Utils::Json::JsonView jsonValue);
31 AWS_INSPECTOR2_API Time& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetTimeOfDay() const { return m_timeOfDay; }
39 inline bool TimeOfDayHasBeenSet() const { return m_timeOfDayHasBeenSet; }
40 template <typename TimeOfDayT = Aws::String>
41 void SetTimeOfDay(TimeOfDayT&& value) {
42 m_timeOfDayHasBeenSet = true;
43 m_timeOfDay = std::forward<TimeOfDayT>(value);
44 }
45 template <typename TimeOfDayT = Aws::String>
46 Time& WithTimeOfDay(TimeOfDayT&& value) {
47 SetTimeOfDay(std::forward<TimeOfDayT>(value));
48 return *this;
49 }
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) {
60 m_timezoneHasBeenSet = true;
61 m_timezone = std::forward<TimezoneT>(value);
62 }
63 template <typename TimezoneT = Aws::String>
64 Time& WithTimezone(TimezoneT&& value) {
65 SetTimezone(std::forward<TimezoneT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_timeOfDay;
71
72 Aws::String m_timezone;
73 bool m_timeOfDayHasBeenSet = false;
74 bool m_timezoneHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace Inspector2
79} // namespace Aws
bool TimezoneHasBeenSet() const
Definition Time.h:57
Time & WithTimeOfDay(TimeOfDayT &&value)
Definition Time.h:46
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTimezone(TimezoneT &&value)
Definition Time.h:59
Time & WithTimezone(TimezoneT &&value)
Definition Time.h:64
const Aws::String & GetTimezone() const
Definition Time.h:56
void SetTimeOfDay(TimeOfDayT &&value)
Definition Time.h:41
bool TimeOfDayHasBeenSet() const
Definition Time.h:39
AWS_INSPECTOR2_API Time & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTimeOfDay() const
Definition Time.h:38
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