AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
40 AWS_TIMESTREAMQUERY_API ScheduledQuery(Aws::Utils::Json::JsonView jsonValue);
41 AWS_TIMESTREAMQUERY_API ScheduledQuery& operator=(Aws::Utils::Json::JsonView jsonValue);
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 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
52 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
53 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
54 inline ScheduledQuery& WithArn(const Aws::String& value) { SetArn(value); return *this;}
55 inline ScheduledQuery& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
56 inline ScheduledQuery& WithArn(const char* value) { SetArn(value); return *this;}
58
60
63 inline const Aws::String& GetName() const{ return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
66 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
67 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 inline ScheduledQuery& WithName(const Aws::String& value) { SetName(value); return *this;}
69 inline ScheduledQuery& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
70 inline ScheduledQuery& WithName(const char* value) { SetName(value); return *this;}
72
74
77 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
78 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
79 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
80 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
81 inline ScheduledQuery& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
82 inline ScheduledQuery& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
84
86
89 inline const ScheduledQueryState& GetState() const{ return m_state; }
90 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
91 inline void SetState(const ScheduledQueryState& value) { m_stateHasBeenSet = true; m_state = value; }
92 inline void SetState(ScheduledQueryState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
93 inline ScheduledQuery& WithState(const ScheduledQueryState& value) { SetState(value); return *this;}
94 inline ScheduledQuery& WithState(ScheduledQueryState&& value) { SetState(std::move(value)); return *this;}
96
98
101 inline const Aws::Utils::DateTime& GetPreviousInvocationTime() const{ return m_previousInvocationTime; }
102 inline bool PreviousInvocationTimeHasBeenSet() const { return m_previousInvocationTimeHasBeenSet; }
103 inline void SetPreviousInvocationTime(const Aws::Utils::DateTime& value) { m_previousInvocationTimeHasBeenSet = true; m_previousInvocationTime = value; }
104 inline void SetPreviousInvocationTime(Aws::Utils::DateTime&& value) { m_previousInvocationTimeHasBeenSet = true; m_previousInvocationTime = std::move(value); }
108
110
113 inline const Aws::Utils::DateTime& GetNextInvocationTime() const{ return m_nextInvocationTime; }
114 inline bool NextInvocationTimeHasBeenSet() const { return m_nextInvocationTimeHasBeenSet; }
115 inline void SetNextInvocationTime(const Aws::Utils::DateTime& value) { m_nextInvocationTimeHasBeenSet = true; m_nextInvocationTime = value; }
116 inline void SetNextInvocationTime(Aws::Utils::DateTime&& value) { m_nextInvocationTimeHasBeenSet = true; m_nextInvocationTime = std::move(value); }
118 inline ScheduledQuery& WithNextInvocationTime(Aws::Utils::DateTime&& value) { SetNextInvocationTime(std::move(value)); return *this;}
120
122
125 inline const ErrorReportConfiguration& GetErrorReportConfiguration() const{ return m_errorReportConfiguration; }
126 inline bool ErrorReportConfigurationHasBeenSet() const { return m_errorReportConfigurationHasBeenSet; }
127 inline void SetErrorReportConfiguration(const ErrorReportConfiguration& value) { m_errorReportConfigurationHasBeenSet = true; m_errorReportConfiguration = value; }
128 inline void SetErrorReportConfiguration(ErrorReportConfiguration&& value) { m_errorReportConfigurationHasBeenSet = true; m_errorReportConfiguration = std::move(value); }
132
134
137 inline const TargetDestination& GetTargetDestination() const{ return m_targetDestination; }
138 inline bool TargetDestinationHasBeenSet() const { return m_targetDestinationHasBeenSet; }
139 inline void SetTargetDestination(const TargetDestination& value) { m_targetDestinationHasBeenSet = true; m_targetDestination = value; }
140 inline void SetTargetDestination(TargetDestination&& value) { m_targetDestinationHasBeenSet = true; m_targetDestination = std::move(value); }
141 inline ScheduledQuery& WithTargetDestination(const TargetDestination& value) { SetTargetDestination(value); return *this;}
142 inline ScheduledQuery& WithTargetDestination(TargetDestination&& value) { SetTargetDestination(std::move(value)); return *this;}
144
146
149 inline const ScheduledQueryRunStatus& GetLastRunStatus() const{ return m_lastRunStatus; }
150 inline bool LastRunStatusHasBeenSet() const { return m_lastRunStatusHasBeenSet; }
151 inline void SetLastRunStatus(const ScheduledQueryRunStatus& value) { m_lastRunStatusHasBeenSet = true; m_lastRunStatus = value; }
152 inline void SetLastRunStatus(ScheduledQueryRunStatus&& value) { m_lastRunStatusHasBeenSet = true; m_lastRunStatus = std::move(value); }
153 inline ScheduledQuery& WithLastRunStatus(const ScheduledQueryRunStatus& value) { SetLastRunStatus(value); return *this;}
154 inline ScheduledQuery& WithLastRunStatus(ScheduledQueryRunStatus&& value) { SetLastRunStatus(std::move(value)); return *this;}
156 private:
157
158 Aws::String m_arn;
159 bool m_arnHasBeenSet = false;
160
161 Aws::String m_name;
162 bool m_nameHasBeenSet = false;
163
164 Aws::Utils::DateTime m_creationTime;
165 bool m_creationTimeHasBeenSet = false;
166
167 ScheduledQueryState m_state;
168 bool m_stateHasBeenSet = false;
169
170 Aws::Utils::DateTime m_previousInvocationTime;
171 bool m_previousInvocationTimeHasBeenSet = false;
172
173 Aws::Utils::DateTime m_nextInvocationTime;
174 bool m_nextInvocationTimeHasBeenSet = false;
175
176 ErrorReportConfiguration m_errorReportConfiguration;
177 bool m_errorReportConfigurationHasBeenSet = false;
178
179 TargetDestination m_targetDestination;
180 bool m_targetDestinationHasBeenSet = false;
181
182 ScheduledQueryRunStatus m_lastRunStatus;
183 bool m_lastRunStatusHasBeenSet = false;
184 };
185
186} // namespace Model
187} // namespace TimestreamQuery
188} // namespace Aws
void SetTargetDestination(TargetDestination &&value)
void SetArn(const Aws::String &value)
void SetName(const Aws::String &value)
ScheduledQuery & WithName(const Aws::String &value)
const Aws::Utils::DateTime & GetCreationTime() const
void SetPreviousInvocationTime(Aws::Utils::DateTime &&value)
ScheduledQuery & WithPreviousInvocationTime(Aws::Utils::DateTime &&value)
ScheduledQuery & WithTargetDestination(const TargetDestination &value)
ScheduledQuery & WithLastRunStatus(ScheduledQueryRunStatus &&value)
void SetErrorReportConfiguration(ErrorReportConfiguration &&value)
ScheduledQuery & WithState(const ScheduledQueryState &value)
void SetCreationTime(const Aws::Utils::DateTime &value)
void SetNextInvocationTime(Aws::Utils::DateTime &&value)
ScheduledQuery & WithTargetDestination(TargetDestination &&value)
ScheduledQuery & WithArn(Aws::String &&value)
ScheduledQuery & WithErrorReportConfiguration(const ErrorReportConfiguration &value)
void SetPreviousInvocationTime(const Aws::Utils::DateTime &value)
void SetTargetDestination(const TargetDestination &value)
AWS_TIMESTREAMQUERY_API ScheduledQuery()
AWS_TIMESTREAMQUERY_API ScheduledQuery & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLastRunStatus(ScheduledQueryRunStatus &&value)
ScheduledQuery & WithNextInvocationTime(const Aws::Utils::DateTime &value)
void SetNextInvocationTime(const Aws::Utils::DateTime &value)
AWS_TIMESTREAMQUERY_API Aws::Utils::Json::JsonValue Jsonize() const
ScheduledQuery & WithCreationTime(const Aws::Utils::DateTime &value)
ScheduledQuery & WithArn(const Aws::String &value)
ScheduledQuery & WithArn(const char *value)
void SetErrorReportConfiguration(const ErrorReportConfiguration &value)
ScheduledQuery & WithNextInvocationTime(Aws::Utils::DateTime &&value)
const ErrorReportConfiguration & GetErrorReportConfiguration() const
void SetState(const ScheduledQueryState &value)
const ScheduledQueryRunStatus & GetLastRunStatus() const
ScheduledQuery & WithCreationTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetNextInvocationTime() const
ScheduledQuery & WithErrorReportConfiguration(ErrorReportConfiguration &&value)
const ScheduledQueryState & GetState() const
ScheduledQuery & WithName(const char *value)
const Aws::Utils::DateTime & GetPreviousInvocationTime() const
ScheduledQuery & WithPreviousInvocationTime(const Aws::Utils::DateTime &value)
ScheduledQuery & WithLastRunStatus(const ScheduledQueryRunStatus &value)
void SetLastRunStatus(const ScheduledQueryRunStatus &value)
AWS_TIMESTREAMQUERY_API ScheduledQuery(Aws::Utils::Json::JsonView jsonValue)
const TargetDestination & GetTargetDestination() const
void SetCreationTime(Aws::Utils::DateTime &&value)
ScheduledQuery & WithState(ScheduledQueryState &&value)
void SetState(ScheduledQueryState &&value)
ScheduledQuery & WithName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue