AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
RefreshSchedule.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/cloudtrail/model/RefreshScheduleFrequency.h>
9#include <aws/cloudtrail/model/RefreshScheduleStatus.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CloudTrail {
22namespace Model {
23
30 public:
31 AWS_CLOUDTRAIL_API RefreshSchedule() = default;
32 AWS_CLOUDTRAIL_API RefreshSchedule(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const RefreshScheduleFrequency& GetFrequency() const { return m_frequency; }
41 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
42 template <typename FrequencyT = RefreshScheduleFrequency>
43 void SetFrequency(FrequencyT&& value) {
44 m_frequencyHasBeenSet = true;
45 m_frequency = std::forward<FrequencyT>(value);
46 }
47 template <typename FrequencyT = RefreshScheduleFrequency>
48 RefreshSchedule& WithFrequency(FrequencyT&& value) {
49 SetFrequency(std::forward<FrequencyT>(value));
50 return *this;
51 }
53
55
60 inline RefreshScheduleStatus GetStatus() const { return m_status; }
61 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
62 inline void SetStatus(RefreshScheduleStatus value) {
63 m_statusHasBeenSet = true;
64 m_status = value;
65 }
67 SetStatus(value);
68 return *this;
69 }
71
73
77 inline const Aws::String& GetTimeOfDay() const { return m_timeOfDay; }
78 inline bool TimeOfDayHasBeenSet() const { return m_timeOfDayHasBeenSet; }
79 template <typename TimeOfDayT = Aws::String>
80 void SetTimeOfDay(TimeOfDayT&& value) {
81 m_timeOfDayHasBeenSet = true;
82 m_timeOfDay = std::forward<TimeOfDayT>(value);
83 }
84 template <typename TimeOfDayT = Aws::String>
85 RefreshSchedule& WithTimeOfDay(TimeOfDayT&& value) {
86 SetTimeOfDay(std::forward<TimeOfDayT>(value));
87 return *this;
88 }
90 private:
91 RefreshScheduleFrequency m_frequency;
92 bool m_frequencyHasBeenSet = false;
93
95 bool m_statusHasBeenSet = false;
96
97 Aws::String m_timeOfDay;
98 bool m_timeOfDayHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace CloudTrail
103} // namespace Aws
RefreshSchedule & WithFrequency(FrequencyT &&value)
AWS_CLOUDTRAIL_API RefreshSchedule & operator=(Aws::Utils::Json::JsonView jsonValue)
RefreshSchedule & WithStatus(RefreshScheduleStatus value)
RefreshSchedule & WithTimeOfDay(TimeOfDayT &&value)
AWS_CLOUDTRAIL_API RefreshSchedule(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDTRAIL_API RefreshSchedule()=default
RefreshScheduleStatus GetStatus() const
const RefreshScheduleFrequency & GetFrequency() const
const Aws::String & GetTimeOfDay() const
void SetStatus(RefreshScheduleStatus value)
AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue