AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CloudTrail
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_CLOUDTRAIL_API RefreshSchedule() = default;
37 AWS_CLOUDTRAIL_API RefreshSchedule(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const RefreshScheduleFrequency& GetFrequency() const { return m_frequency; }
47 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
48 template<typename FrequencyT = RefreshScheduleFrequency>
49 void SetFrequency(FrequencyT&& value) { m_frequencyHasBeenSet = true; m_frequency = std::forward<FrequencyT>(value); }
50 template<typename FrequencyT = RefreshScheduleFrequency>
51 RefreshSchedule& WithFrequency(FrequencyT&& value) { SetFrequency(std::forward<FrequencyT>(value)); return *this;}
53
55
60 inline RefreshScheduleStatus GetStatus() const { return m_status; }
61 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
62 inline void SetStatus(RefreshScheduleStatus value) { m_statusHasBeenSet = true; m_status = value; }
63 inline RefreshSchedule& WithStatus(RefreshScheduleStatus value) { SetStatus(value); return *this;}
65
67
71 inline const Aws::String& GetTimeOfDay() const { return m_timeOfDay; }
72 inline bool TimeOfDayHasBeenSet() const { return m_timeOfDayHasBeenSet; }
73 template<typename TimeOfDayT = Aws::String>
74 void SetTimeOfDay(TimeOfDayT&& value) { m_timeOfDayHasBeenSet = true; m_timeOfDay = std::forward<TimeOfDayT>(value); }
75 template<typename TimeOfDayT = Aws::String>
76 RefreshSchedule& WithTimeOfDay(TimeOfDayT&& value) { SetTimeOfDay(std::forward<TimeOfDayT>(value)); return *this;}
78 private:
79
80 RefreshScheduleFrequency m_frequency;
81 bool m_frequencyHasBeenSet = false;
82
84 bool m_statusHasBeenSet = false;
85
86 Aws::String m_timeOfDay;
87 bool m_timeOfDayHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace CloudTrail
92} // 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