/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Run summary for the scheduled querySee Also:
AWS
* API Reference
InvocationTime for this run. This is the time at which the query is scheduled
* to run. Parameter @scheduled_runtime
can be used in the query to
* get the value.
InvocationTime for this run. This is the time at which the query is scheduled
* to run. Parameter @scheduled_runtime
can be used in the query to
* get the value.
InvocationTime for this run. This is the time at which the query is scheduled
* to run. Parameter @scheduled_runtime
can be used in the query to
* get the value.
InvocationTime for this run. This is the time at which the query is scheduled
* to run. Parameter @scheduled_runtime
can be used in the query to
* get the value.
InvocationTime for this run. This is the time at which the query is scheduled
* to run. Parameter @scheduled_runtime
can be used in the query to
* get the value.
InvocationTime for this run. This is the time at which the query is scheduled
* to run. Parameter @scheduled_runtime
can be used in the query to
* get the value.
The actual time when the query was run.
*/ inline const Aws::Utils::DateTime& GetTriggerTime() const{ return m_triggerTime; } /** *The actual time when the query was run.
*/ inline bool TriggerTimeHasBeenSet() const { return m_triggerTimeHasBeenSet; } /** *The actual time when the query was run.
*/ inline void SetTriggerTime(const Aws::Utils::DateTime& value) { m_triggerTimeHasBeenSet = true; m_triggerTime = value; } /** *The actual time when the query was run.
*/ inline void SetTriggerTime(Aws::Utils::DateTime&& value) { m_triggerTimeHasBeenSet = true; m_triggerTime = std::move(value); } /** *The actual time when the query was run.
*/ inline ScheduledQueryRunSummary& WithTriggerTime(const Aws::Utils::DateTime& value) { SetTriggerTime(value); return *this;} /** *The actual time when the query was run.
*/ inline ScheduledQueryRunSummary& WithTriggerTime(Aws::Utils::DateTime&& value) { SetTriggerTime(std::move(value)); return *this;} /** *The status of a scheduled query run.
*/ inline const ScheduledQueryRunStatus& GetRunStatus() const{ return m_runStatus; } /** *The status of a scheduled query run.
*/ inline bool RunStatusHasBeenSet() const { return m_runStatusHasBeenSet; } /** *The status of a scheduled query run.
*/ inline void SetRunStatus(const ScheduledQueryRunStatus& value) { m_runStatusHasBeenSet = true; m_runStatus = value; } /** *The status of a scheduled query run.
*/ inline void SetRunStatus(ScheduledQueryRunStatus&& value) { m_runStatusHasBeenSet = true; m_runStatus = std::move(value); } /** *The status of a scheduled query run.
*/ inline ScheduledQueryRunSummary& WithRunStatus(const ScheduledQueryRunStatus& value) { SetRunStatus(value); return *this;} /** *The status of a scheduled query run.
*/ inline ScheduledQueryRunSummary& WithRunStatus(ScheduledQueryRunStatus&& value) { SetRunStatus(std::move(value)); return *this;} /** *Runtime statistics for a scheduled run.
*/ inline const ExecutionStats& GetExecutionStats() const{ return m_executionStats; } /** *Runtime statistics for a scheduled run.
*/ inline bool ExecutionStatsHasBeenSet() const { return m_executionStatsHasBeenSet; } /** *Runtime statistics for a scheduled run.
*/ inline void SetExecutionStats(const ExecutionStats& value) { m_executionStatsHasBeenSet = true; m_executionStats = value; } /** *Runtime statistics for a scheduled run.
*/ inline void SetExecutionStats(ExecutionStats&& value) { m_executionStatsHasBeenSet = true; m_executionStats = std::move(value); } /** *Runtime statistics for a scheduled run.
*/ inline ScheduledQueryRunSummary& WithExecutionStats(const ExecutionStats& value) { SetExecutionStats(value); return *this;} /** *Runtime statistics for a scheduled run.
*/ inline ScheduledQueryRunSummary& WithExecutionStats(ExecutionStats&& value) { SetExecutionStats(std::move(value)); return *this;} /** *S3 location for error report.
*/ inline const ErrorReportLocation& GetErrorReportLocation() const{ return m_errorReportLocation; } /** *S3 location for error report.
*/ inline bool ErrorReportLocationHasBeenSet() const { return m_errorReportLocationHasBeenSet; } /** *S3 location for error report.
*/ inline void SetErrorReportLocation(const ErrorReportLocation& value) { m_errorReportLocationHasBeenSet = true; m_errorReportLocation = value; } /** *S3 location for error report.
*/ inline void SetErrorReportLocation(ErrorReportLocation&& value) { m_errorReportLocationHasBeenSet = true; m_errorReportLocation = std::move(value); } /** *S3 location for error report.
*/ inline ScheduledQueryRunSummary& WithErrorReportLocation(const ErrorReportLocation& value) { SetErrorReportLocation(value); return *this;} /** *S3 location for error report.
*/ inline ScheduledQueryRunSummary& WithErrorReportLocation(ErrorReportLocation&& value) { SetErrorReportLocation(std::move(value)); return *this;} /** *Error message for the scheduled query in case of failure. You might have to * look at the error report to get more detailed error reasons.
*/ inline const Aws::String& GetFailureReason() const{ return m_failureReason; } /** *Error message for the scheduled query in case of failure. You might have to * look at the error report to get more detailed error reasons.
*/ inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; } /** *Error message for the scheduled query in case of failure. You might have to * look at the error report to get more detailed error reasons.
*/ inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; } /** *Error message for the scheduled query in case of failure. You might have to * look at the error report to get more detailed error reasons.
*/ inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); } /** *Error message for the scheduled query in case of failure. You might have to * look at the error report to get more detailed error reasons.
*/ inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); } /** *Error message for the scheduled query in case of failure. You might have to * look at the error report to get more detailed error reasons.
*/ inline ScheduledQueryRunSummary& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;} /** *Error message for the scheduled query in case of failure. You might have to * look at the error report to get more detailed error reasons.
*/ inline ScheduledQueryRunSummary& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;} /** *Error message for the scheduled query in case of failure. You might have to * look at the error report to get more detailed error reasons.
*/ inline ScheduledQueryRunSummary& WithFailureReason(const char* value) { SetFailureReason(value); return *this;} private: Aws::Utils::DateTime m_invocationTime; bool m_invocationTimeHasBeenSet = false; Aws::Utils::DateTime m_triggerTime; bool m_triggerTimeHasBeenSet = false; ScheduledQueryRunStatus m_runStatus; bool m_runStatusHasBeenSet = false; ExecutionStats m_executionStats; bool m_executionStatsHasBeenSet = false; ErrorReportLocation m_errorReportLocation; bool m_errorReportLocationHasBeenSet = false; Aws::String m_failureReason; bool m_failureReasonHasBeenSet = false; }; } // namespace Model } // namespace TimestreamQuery } // namespace Aws