AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
AutomatedSnapshotPauseRequestOptions.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/es/ElasticsearchService_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ElasticsearchService {
20namespace Model {
21
33 public:
34 AWS_ELASTICSEARCHSERVICE_API AutomatedSnapshotPauseRequestOptions() = default;
37 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline bool GetEnabled() const { return m_enabled; }
44 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
45 inline void SetEnabled(bool value) {
46 m_enabledHasBeenSet = true;
47 m_enabled = value;
48 }
50 SetEnabled(value);
51 return *this;
52 }
54
56
59 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
60 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
61 template <typename StartTimeT = Aws::Utils::DateTime>
62 void SetStartTime(StartTimeT&& value) {
63 m_startTimeHasBeenSet = true;
64 m_startTime = std::forward<StartTimeT>(value);
65 }
66 template <typename StartTimeT = Aws::Utils::DateTime>
68 SetStartTime(std::forward<StartTimeT>(value));
69 return *this;
70 }
72
74
79 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
80 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
81 template <typename EndTimeT = Aws::Utils::DateTime>
82 void SetEndTime(EndTimeT&& value) {
83 m_endTimeHasBeenSet = true;
84 m_endTime = std::forward<EndTimeT>(value);
85 }
86 template <typename EndTimeT = Aws::Utils::DateTime>
88 SetEndTime(std::forward<EndTimeT>(value));
89 return *this;
90 }
92 private:
93 bool m_enabled{false};
94
95 Aws::Utils::DateTime m_startTime{};
96
97 Aws::Utils::DateTime m_endTime{};
98 bool m_enabledHasBeenSet = false;
99 bool m_startTimeHasBeenSet = false;
100 bool m_endTimeHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace ElasticsearchService
105} // namespace Aws
AWS_ELASTICSEARCHSERVICE_API AutomatedSnapshotPauseRequestOptions()=default
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ELASTICSEARCHSERVICE_API AutomatedSnapshotPauseRequestOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ELASTICSEARCHSERVICE_API AutomatedSnapshotPauseRequestOptions(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue