AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ScheduledQuery.h
1
6#pragma once
7#include <aws/timestream-query/TimestreamQuery_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/timestream-query/model/ScheduledQueryState.h>
11#include <aws/timestream-query/model/ErrorReportConfiguration.h>
12#include <aws/timestream-query/model/TargetDestination.h>
13#include <aws/timestream-query/model/ScheduledQueryRunStatus.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace TimestreamQuery
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_TIMESTREAMQUERY_API ScheduledQuery() = default;
42 AWS_TIMESTREAMQUERY_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetArn() const { return m_arn; }
50 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
51 template<typename ArnT = Aws::String>
52 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
53 template<typename ArnT = Aws::String>
54 ScheduledQuery& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template<typename NameT = Aws::String>
64 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
65 template<typename NameT = Aws::String>
66 ScheduledQuery& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
68
70
73 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
74 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
75 template<typename CreationTimeT = Aws::Utils::DateTime>
76 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
77 template<typename CreationTimeT = Aws::Utils::DateTime>
78 ScheduledQuery& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
80
82
85 inline ScheduledQueryState GetState() const { return m_state; }
86 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
87 inline void SetState(ScheduledQueryState value) { m_stateHasBeenSet = true; m_state = value; }
88 inline ScheduledQuery& WithState(ScheduledQueryState value) { SetState(value); return *this;}
90
92
95 inline const Aws::Utils::DateTime& GetPreviousInvocationTime() const { return m_previousInvocationTime; }
96 inline bool PreviousInvocationTimeHasBeenSet() const { return m_previousInvocationTimeHasBeenSet; }
97 template<typename PreviousInvocationTimeT = Aws::Utils::DateTime>
98 void SetPreviousInvocationTime(PreviousInvocationTimeT&& value) { m_previousInvocationTimeHasBeenSet = true; m_previousInvocationTime = std::forward<PreviousInvocationTimeT>(value); }
99 template<typename PreviousInvocationTimeT = Aws::Utils::DateTime>
100 ScheduledQuery& WithPreviousInvocationTime(PreviousInvocationTimeT&& value) { SetPreviousInvocationTime(std::forward<PreviousInvocationTimeT>(value)); return *this;}
102
104
107 inline const Aws::Utils::DateTime& GetNextInvocationTime() const { return m_nextInvocationTime; }
108 inline bool NextInvocationTimeHasBeenSet() const { return m_nextInvocationTimeHasBeenSet; }
109 template<typename NextInvocationTimeT = Aws::Utils::DateTime>
110 void SetNextInvocationTime(NextInvocationTimeT&& value) { m_nextInvocationTimeHasBeenSet = true; m_nextInvocationTime = std::forward<NextInvocationTimeT>(value); }
111 template<typename NextInvocationTimeT = Aws::Utils::DateTime>
112 ScheduledQuery& WithNextInvocationTime(NextInvocationTimeT&& value) { SetNextInvocationTime(std::forward<NextInvocationTimeT>(value)); return *this;}
114
116
119 inline const ErrorReportConfiguration& GetErrorReportConfiguration() const { return m_errorReportConfiguration; }
120 inline bool ErrorReportConfigurationHasBeenSet() const { return m_errorReportConfigurationHasBeenSet; }
121 template<typename ErrorReportConfigurationT = ErrorReportConfiguration>
122 void SetErrorReportConfiguration(ErrorReportConfigurationT&& value) { m_errorReportConfigurationHasBeenSet = true; m_errorReportConfiguration = std::forward<ErrorReportConfigurationT>(value); }
123 template<typename ErrorReportConfigurationT = ErrorReportConfiguration>
124 ScheduledQuery& WithErrorReportConfiguration(ErrorReportConfigurationT&& value) { SetErrorReportConfiguration(std::forward<ErrorReportConfigurationT>(value)); return *this;}
126
128
131 inline const TargetDestination& GetTargetDestination() const { return m_targetDestination; }
132 inline bool TargetDestinationHasBeenSet() const { return m_targetDestinationHasBeenSet; }
133 template<typename TargetDestinationT = TargetDestination>
134 void SetTargetDestination(TargetDestinationT&& value) { m_targetDestinationHasBeenSet = true; m_targetDestination = std::forward<TargetDestinationT>(value); }
135 template<typename TargetDestinationT = TargetDestination>
136 ScheduledQuery& WithTargetDestination(TargetDestinationT&& value) { SetTargetDestination(std::forward<TargetDestinationT>(value)); return *this;}
138
140
143 inline ScheduledQueryRunStatus GetLastRunStatus() const { return m_lastRunStatus; }
144 inline bool LastRunStatusHasBeenSet() const { return m_lastRunStatusHasBeenSet; }
145 inline void SetLastRunStatus(ScheduledQueryRunStatus value) { m_lastRunStatusHasBeenSet = true; m_lastRunStatus = value; }
148 private:
149
150 Aws::String m_arn;
151 bool m_arnHasBeenSet = false;
152
153 Aws::String m_name;
154 bool m_nameHasBeenSet = false;
155
156 Aws::Utils::DateTime m_creationTime{};
157 bool m_creationTimeHasBeenSet = false;
158
160 bool m_stateHasBeenSet = false;
161
162 Aws::Utils::DateTime m_previousInvocationTime{};
163 bool m_previousInvocationTimeHasBeenSet = false;
164
165 Aws::Utils::DateTime m_nextInvocationTime{};
166 bool m_nextInvocationTimeHasBeenSet = false;
167
168 ErrorReportConfiguration m_errorReportConfiguration;
169 bool m_errorReportConfigurationHasBeenSet = false;
170
171 TargetDestination m_targetDestination;
172 bool m_targetDestinationHasBeenSet = false;
173
175 bool m_lastRunStatusHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace TimestreamQuery
180} // namespace Aws
ScheduledQuery & WithNextInvocationTime(NextInvocationTimeT &&value)
void SetPreviousInvocationTime(PreviousInvocationTimeT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
AWS_TIMESTREAMQUERY_API ScheduledQuery()=default
ScheduledQuery & WithArn(ArnT &&value)
void SetErrorReportConfiguration(ErrorReportConfigurationT &&value)
ScheduledQueryRunStatus GetLastRunStatus() const
ScheduledQuery & WithLastRunStatus(ScheduledQueryRunStatus value)
ScheduledQuery & WithTargetDestination(TargetDestinationT &&value)
AWS_TIMESTREAMQUERY_API ScheduledQuery & operator=(Aws::Utils::Json::JsonView jsonValue)
ScheduledQuery & WithName(NameT &&value)
void SetState(ScheduledQueryState value)
ScheduledQuery & WithErrorReportConfiguration(ErrorReportConfigurationT &&value)
void SetLastRunStatus(ScheduledQueryRunStatus value)
void SetCreationTime(CreationTimeT &&value)
ScheduledQuery & WithCreationTime(CreationTimeT &&value)
void SetNextInvocationTime(NextInvocationTimeT &&value)
AWS_TIMESTREAMQUERY_API Aws::Utils::Json::JsonValue Jsonize() const
const ErrorReportConfiguration & GetErrorReportConfiguration() const
void SetTargetDestination(TargetDestinationT &&value)
const Aws::Utils::DateTime & GetNextInvocationTime() const
ScheduledQuery & WithState(ScheduledQueryState value)
ScheduledQuery & WithPreviousInvocationTime(PreviousInvocationTimeT &&value)
const Aws::Utils::DateTime & GetPreviousInvocationTime() const
AWS_TIMESTREAMQUERY_API ScheduledQuery(Aws::Utils::Json::JsonView jsonValue)
const TargetDestination & GetTargetDestination() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue