/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Scheduled QuerySee Also:
AWS
* API Reference
The Amazon Resource Name.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *The Amazon Resource Name.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The Amazon Resource Name.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The Amazon Resource Name.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The Amazon Resource Name.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The Amazon Resource Name.
*/ inline ScheduledQuery& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The Amazon Resource Name.
*/ inline ScheduledQuery& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The Amazon Resource Name.
*/ inline ScheduledQuery& WithArn(const char* value) { SetArn(value); return *this;} /** *The name of the scheduled query.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the scheduled query.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the scheduled query.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the scheduled query.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the scheduled query.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the scheduled query.
*/ inline ScheduledQuery& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the scheduled query.
*/ inline ScheduledQuery& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the scheduled query.
*/ inline ScheduledQuery& WithName(const char* value) { SetName(value); return *this;} /** *The creation time of the scheduled query.
*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *The creation time of the scheduled query.
*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *The creation time of the scheduled query.
*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *The creation time of the scheduled query.
*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *The creation time of the scheduled query.
*/ inline ScheduledQuery& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *The creation time of the scheduled query.
*/ inline ScheduledQuery& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *State of scheduled query.
*/ inline const ScheduledQueryState& GetState() const{ return m_state; } /** *State of scheduled query.
*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *State of scheduled query.
*/ inline void SetState(const ScheduledQueryState& value) { m_stateHasBeenSet = true; m_state = value; } /** *State of scheduled query.
*/ inline void SetState(ScheduledQueryState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *State of scheduled query.
*/ inline ScheduledQuery& WithState(const ScheduledQueryState& value) { SetState(value); return *this;} /** *State of scheduled query.
*/ inline ScheduledQuery& WithState(ScheduledQueryState&& value) { SetState(std::move(value)); return *this;} /** *The last time the scheduled query was run.
*/ inline const Aws::Utils::DateTime& GetPreviousInvocationTime() const{ return m_previousInvocationTime; } /** *The last time the scheduled query was run.
*/ inline bool PreviousInvocationTimeHasBeenSet() const { return m_previousInvocationTimeHasBeenSet; } /** *The last time the scheduled query was run.
*/ inline void SetPreviousInvocationTime(const Aws::Utils::DateTime& value) { m_previousInvocationTimeHasBeenSet = true; m_previousInvocationTime = value; } /** *The last time the scheduled query was run.
*/ inline void SetPreviousInvocationTime(Aws::Utils::DateTime&& value) { m_previousInvocationTimeHasBeenSet = true; m_previousInvocationTime = std::move(value); } /** *The last time the scheduled query was run.
*/ inline ScheduledQuery& WithPreviousInvocationTime(const Aws::Utils::DateTime& value) { SetPreviousInvocationTime(value); return *this;} /** *The last time the scheduled query was run.
*/ inline ScheduledQuery& WithPreviousInvocationTime(Aws::Utils::DateTime&& value) { SetPreviousInvocationTime(std::move(value)); return *this;} /** *The next time the scheduled query is to be run.
*/ inline const Aws::Utils::DateTime& GetNextInvocationTime() const{ return m_nextInvocationTime; } /** *The next time the scheduled query is to be run.
*/ inline bool NextInvocationTimeHasBeenSet() const { return m_nextInvocationTimeHasBeenSet; } /** *The next time the scheduled query is to be run.
*/ inline void SetNextInvocationTime(const Aws::Utils::DateTime& value) { m_nextInvocationTimeHasBeenSet = true; m_nextInvocationTime = value; } /** *The next time the scheduled query is to be run.
*/ inline void SetNextInvocationTime(Aws::Utils::DateTime&& value) { m_nextInvocationTimeHasBeenSet = true; m_nextInvocationTime = std::move(value); } /** *The next time the scheduled query is to be run.
*/ inline ScheduledQuery& WithNextInvocationTime(const Aws::Utils::DateTime& value) { SetNextInvocationTime(value); return *this;} /** *The next time the scheduled query is to be run.
*/ inline ScheduledQuery& WithNextInvocationTime(Aws::Utils::DateTime&& value) { SetNextInvocationTime(std::move(value)); return *this;} /** *Configuration for scheduled query error reporting.
*/ inline const ErrorReportConfiguration& GetErrorReportConfiguration() const{ return m_errorReportConfiguration; } /** *Configuration for scheduled query error reporting.
*/ inline bool ErrorReportConfigurationHasBeenSet() const { return m_errorReportConfigurationHasBeenSet; } /** *Configuration for scheduled query error reporting.
*/ inline void SetErrorReportConfiguration(const ErrorReportConfiguration& value) { m_errorReportConfigurationHasBeenSet = true; m_errorReportConfiguration = value; } /** *Configuration for scheduled query error reporting.
*/ inline void SetErrorReportConfiguration(ErrorReportConfiguration&& value) { m_errorReportConfigurationHasBeenSet = true; m_errorReportConfiguration = std::move(value); } /** *Configuration for scheduled query error reporting.
*/ inline ScheduledQuery& WithErrorReportConfiguration(const ErrorReportConfiguration& value) { SetErrorReportConfiguration(value); return *this;} /** *Configuration for scheduled query error reporting.
*/ inline ScheduledQuery& WithErrorReportConfiguration(ErrorReportConfiguration&& value) { SetErrorReportConfiguration(std::move(value)); return *this;} /** *Target data source where final scheduled query result will be written.
*/ inline const TargetDestination& GetTargetDestination() const{ return m_targetDestination; } /** *Target data source where final scheduled query result will be written.
*/ inline bool TargetDestinationHasBeenSet() const { return m_targetDestinationHasBeenSet; } /** *Target data source where final scheduled query result will be written.
*/ inline void SetTargetDestination(const TargetDestination& value) { m_targetDestinationHasBeenSet = true; m_targetDestination = value; } /** *Target data source where final scheduled query result will be written.
*/ inline void SetTargetDestination(TargetDestination&& value) { m_targetDestinationHasBeenSet = true; m_targetDestination = std::move(value); } /** *Target data source where final scheduled query result will be written.
*/ inline ScheduledQuery& WithTargetDestination(const TargetDestination& value) { SetTargetDestination(value); return *this;} /** *Target data source where final scheduled query result will be written.
*/ inline ScheduledQuery& WithTargetDestination(TargetDestination&& value) { SetTargetDestination(std::move(value)); return *this;} /** *Status of the last scheduled query run.
*/ inline const ScheduledQueryRunStatus& GetLastRunStatus() const{ return m_lastRunStatus; } /** *Status of the last scheduled query run.
*/ inline bool LastRunStatusHasBeenSet() const { return m_lastRunStatusHasBeenSet; } /** *Status of the last scheduled query run.
*/ inline void SetLastRunStatus(const ScheduledQueryRunStatus& value) { m_lastRunStatusHasBeenSet = true; m_lastRunStatus = value; } /** *Status of the last scheduled query run.
*/ inline void SetLastRunStatus(ScheduledQueryRunStatus&& value) { m_lastRunStatusHasBeenSet = true; m_lastRunStatus = std::move(value); } /** *Status of the last scheduled query run.
*/ inline ScheduledQuery& WithLastRunStatus(const ScheduledQueryRunStatus& value) { SetLastRunStatus(value); return *this;} /** *Status of the last scheduled query run.
*/ inline ScheduledQuery& WithLastRunStatus(ScheduledQueryRunStatus&& value) { SetLastRunStatus(std::move(value)); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; ScheduledQueryState m_state; bool m_stateHasBeenSet = false; Aws::Utils::DateTime m_previousInvocationTime; bool m_previousInvocationTimeHasBeenSet = false; Aws::Utils::DateTime m_nextInvocationTime; bool m_nextInvocationTimeHasBeenSet = false; ErrorReportConfiguration m_errorReportConfiguration; bool m_errorReportConfigurationHasBeenSet = false; TargetDestination m_targetDestination; bool m_targetDestinationHasBeenSet = false; ScheduledQueryRunStatus m_lastRunStatus; bool m_lastRunStatusHasBeenSet = false; }; } // namespace Model } // namespace TimestreamQuery } // namespace Aws