/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Structure that describes scheduled query.See Also:
AWS
* API Reference
Scheduled query ARN.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *Scheduled query ARN.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *Scheduled query ARN.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *Scheduled query ARN.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *Scheduled query ARN.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *Scheduled query ARN.
*/ inline ScheduledQueryDescription& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *Scheduled query ARN.
*/ inline ScheduledQueryDescription& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *Scheduled query ARN.
*/ inline ScheduledQueryDescription& WithArn(const char* value) { SetArn(value); return *this;} /** *Name of the scheduled query.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *Name of the scheduled query.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *Name of the scheduled query.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *Name of the scheduled query.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *Name of the scheduled query.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *Name of the scheduled query.
*/ inline ScheduledQueryDescription& WithName(const Aws::String& value) { SetName(value); return *this;} /** *Name of the scheduled query.
*/ inline ScheduledQueryDescription& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *Name of the scheduled query.
*/ inline ScheduledQueryDescription& WithName(const char* value) { SetName(value); return *this;} /** *The query to be run.
*/ inline const Aws::String& GetQueryString() const{ return m_queryString; } /** *The query to be run.
*/ inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; } /** *The query to be run.
*/ inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; } /** *The query to be run.
*/ inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); } /** *The query to be run.
*/ inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); } /** *The query to be run.
*/ inline ScheduledQueryDescription& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;} /** *The query to be run.
*/ inline ScheduledQueryDescription& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;} /** *The query to be run.
*/ inline ScheduledQueryDescription& WithQueryString(const char* value) { SetQueryString(value); return *this;} /** *Creation time of the scheduled query.
*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *Creation time of the scheduled query.
*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *Creation time of the scheduled query.
*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *Creation time of the scheduled query.
*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *Creation time of the scheduled query.
*/ inline ScheduledQueryDescription& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *Creation time of the scheduled query.
*/ inline ScheduledQueryDescription& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *State of the scheduled query.
*/ inline const ScheduledQueryState& GetState() const{ return m_state; } /** *State of the scheduled query.
*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *State of the scheduled query.
*/ inline void SetState(const ScheduledQueryState& value) { m_stateHasBeenSet = true; m_state = value; } /** *State of the scheduled query.
*/ inline void SetState(ScheduledQueryState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *State of the scheduled query.
*/ inline ScheduledQueryDescription& WithState(const ScheduledQueryState& value) { SetState(value); return *this;} /** *State of the scheduled query.
*/ inline ScheduledQueryDescription& WithState(ScheduledQueryState&& value) { SetState(std::move(value)); return *this;} /** *Last time the query was run.
*/ inline const Aws::Utils::DateTime& GetPreviousInvocationTime() const{ return m_previousInvocationTime; } /** *Last time the query was run.
*/ inline bool PreviousInvocationTimeHasBeenSet() const { return m_previousInvocationTimeHasBeenSet; } /** *Last time the query was run.
*/ inline void SetPreviousInvocationTime(const Aws::Utils::DateTime& value) { m_previousInvocationTimeHasBeenSet = true; m_previousInvocationTime = value; } /** *Last time the query was run.
*/ inline void SetPreviousInvocationTime(Aws::Utils::DateTime&& value) { m_previousInvocationTimeHasBeenSet = true; m_previousInvocationTime = std::move(value); } /** *Last time the query was run.
*/ inline ScheduledQueryDescription& WithPreviousInvocationTime(const Aws::Utils::DateTime& value) { SetPreviousInvocationTime(value); return *this;} /** *Last time the query was run.
*/ inline ScheduledQueryDescription& WithPreviousInvocationTime(Aws::Utils::DateTime&& value) { SetPreviousInvocationTime(std::move(value)); return *this;} /** *The next time the scheduled query is scheduled to run.
*/ inline const Aws::Utils::DateTime& GetNextInvocationTime() const{ return m_nextInvocationTime; } /** *The next time the scheduled query is scheduled to run.
*/ inline bool NextInvocationTimeHasBeenSet() const { return m_nextInvocationTimeHasBeenSet; } /** *The next time the scheduled query is scheduled to run.
*/ inline void SetNextInvocationTime(const Aws::Utils::DateTime& value) { m_nextInvocationTimeHasBeenSet = true; m_nextInvocationTime = value; } /** *The next time the scheduled query is scheduled to run.
*/ inline void SetNextInvocationTime(Aws::Utils::DateTime&& value) { m_nextInvocationTimeHasBeenSet = true; m_nextInvocationTime = std::move(value); } /** *The next time the scheduled query is scheduled to run.
*/ inline ScheduledQueryDescription& WithNextInvocationTime(const Aws::Utils::DateTime& value) { SetNextInvocationTime(value); return *this;} /** *The next time the scheduled query is scheduled to run.
*/ inline ScheduledQueryDescription& WithNextInvocationTime(Aws::Utils::DateTime&& value) { SetNextInvocationTime(std::move(value)); return *this;} /** *Schedule configuration.
*/ inline const ScheduleConfiguration& GetScheduleConfiguration() const{ return m_scheduleConfiguration; } /** *Schedule configuration.
*/ inline bool ScheduleConfigurationHasBeenSet() const { return m_scheduleConfigurationHasBeenSet; } /** *Schedule configuration.
*/ inline void SetScheduleConfiguration(const ScheduleConfiguration& value) { m_scheduleConfigurationHasBeenSet = true; m_scheduleConfiguration = value; } /** *Schedule configuration.
*/ inline void SetScheduleConfiguration(ScheduleConfiguration&& value) { m_scheduleConfigurationHasBeenSet = true; m_scheduleConfiguration = std::move(value); } /** *Schedule configuration.
*/ inline ScheduledQueryDescription& WithScheduleConfiguration(const ScheduleConfiguration& value) { SetScheduleConfiguration(value); return *this;} /** *Schedule configuration.
*/ inline ScheduledQueryDescription& WithScheduleConfiguration(ScheduleConfiguration&& value) { SetScheduleConfiguration(std::move(value)); return *this;} /** *Notification configuration.
*/ inline const NotificationConfiguration& GetNotificationConfiguration() const{ return m_notificationConfiguration; } /** *Notification configuration.
*/ inline bool NotificationConfigurationHasBeenSet() const { return m_notificationConfigurationHasBeenSet; } /** *Notification configuration.
*/ inline void SetNotificationConfiguration(const NotificationConfiguration& value) { m_notificationConfigurationHasBeenSet = true; m_notificationConfiguration = value; } /** *Notification configuration.
*/ inline void SetNotificationConfiguration(NotificationConfiguration&& value) { m_notificationConfigurationHasBeenSet = true; m_notificationConfiguration = std::move(value); } /** *Notification configuration.
*/ inline ScheduledQueryDescription& WithNotificationConfiguration(const NotificationConfiguration& value) { SetNotificationConfiguration(value); return *this;} /** *Notification configuration.
*/ inline ScheduledQueryDescription& WithNotificationConfiguration(NotificationConfiguration&& value) { SetNotificationConfiguration(std::move(value)); return *this;} /** *Scheduled query target store configuration.
*/ inline const TargetConfiguration& GetTargetConfiguration() const{ return m_targetConfiguration; } /** *Scheduled query target store configuration.
*/ inline bool TargetConfigurationHasBeenSet() const { return m_targetConfigurationHasBeenSet; } /** *Scheduled query target store configuration.
*/ inline void SetTargetConfiguration(const TargetConfiguration& value) { m_targetConfigurationHasBeenSet = true; m_targetConfiguration = value; } /** *Scheduled query target store configuration.
*/ inline void SetTargetConfiguration(TargetConfiguration&& value) { m_targetConfigurationHasBeenSet = true; m_targetConfiguration = std::move(value); } /** *Scheduled query target store configuration.
*/ inline ScheduledQueryDescription& WithTargetConfiguration(const TargetConfiguration& value) { SetTargetConfiguration(value); return *this;} /** *Scheduled query target store configuration.
*/ inline ScheduledQueryDescription& WithTargetConfiguration(TargetConfiguration&& value) { SetTargetConfiguration(std::move(value)); return *this;} /** *IAM role that Timestream uses to run the schedule query.
*/ inline const Aws::String& GetScheduledQueryExecutionRoleArn() const{ return m_scheduledQueryExecutionRoleArn; } /** *IAM role that Timestream uses to run the schedule query.
*/ inline bool ScheduledQueryExecutionRoleArnHasBeenSet() const { return m_scheduledQueryExecutionRoleArnHasBeenSet; } /** *IAM role that Timestream uses to run the schedule query.
*/ inline void SetScheduledQueryExecutionRoleArn(const Aws::String& value) { m_scheduledQueryExecutionRoleArnHasBeenSet = true; m_scheduledQueryExecutionRoleArn = value; } /** *IAM role that Timestream uses to run the schedule query.
*/ inline void SetScheduledQueryExecutionRoleArn(Aws::String&& value) { m_scheduledQueryExecutionRoleArnHasBeenSet = true; m_scheduledQueryExecutionRoleArn = std::move(value); } /** *IAM role that Timestream uses to run the schedule query.
*/ inline void SetScheduledQueryExecutionRoleArn(const char* value) { m_scheduledQueryExecutionRoleArnHasBeenSet = true; m_scheduledQueryExecutionRoleArn.assign(value); } /** *IAM role that Timestream uses to run the schedule query.
*/ inline ScheduledQueryDescription& WithScheduledQueryExecutionRoleArn(const Aws::String& value) { SetScheduledQueryExecutionRoleArn(value); return *this;} /** *IAM role that Timestream uses to run the schedule query.
*/ inline ScheduledQueryDescription& WithScheduledQueryExecutionRoleArn(Aws::String&& value) { SetScheduledQueryExecutionRoleArn(std::move(value)); return *this;} /** *IAM role that Timestream uses to run the schedule query.
*/ inline ScheduledQueryDescription& WithScheduledQueryExecutionRoleArn(const char* value) { SetScheduledQueryExecutionRoleArn(value); return *this;} /** *A customer provided KMS key used to encrypt the scheduled query resource.
*/ inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; } /** *A customer provided KMS key used to encrypt the scheduled query resource.
*/ inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; } /** *A customer provided KMS key used to encrypt the scheduled query resource.
*/ inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; } /** *A customer provided KMS key used to encrypt the scheduled query resource.
*/ inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); } /** *A customer provided KMS key used to encrypt the scheduled query resource.
*/ inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); } /** *A customer provided KMS key used to encrypt the scheduled query resource.
*/ inline ScheduledQueryDescription& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;} /** *A customer provided KMS key used to encrypt the scheduled query resource.
*/ inline ScheduledQueryDescription& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;} /** *A customer provided KMS key used to encrypt the scheduled query resource.
*/ inline ScheduledQueryDescription& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;} /** *Error-reporting configuration for the scheduled query.
*/ inline const ErrorReportConfiguration& GetErrorReportConfiguration() const{ return m_errorReportConfiguration; } /** *Error-reporting configuration for the scheduled query.
*/ inline bool ErrorReportConfigurationHasBeenSet() const { return m_errorReportConfigurationHasBeenSet; } /** *Error-reporting configuration for the scheduled query.
*/ inline void SetErrorReportConfiguration(const ErrorReportConfiguration& value) { m_errorReportConfigurationHasBeenSet = true; m_errorReportConfiguration = value; } /** *Error-reporting configuration for the scheduled query.
*/ inline void SetErrorReportConfiguration(ErrorReportConfiguration&& value) { m_errorReportConfigurationHasBeenSet = true; m_errorReportConfiguration = std::move(value); } /** *Error-reporting configuration for the scheduled query.
*/ inline ScheduledQueryDescription& WithErrorReportConfiguration(const ErrorReportConfiguration& value) { SetErrorReportConfiguration(value); return *this;} /** *Error-reporting configuration for the scheduled query.
*/ inline ScheduledQueryDescription& WithErrorReportConfiguration(ErrorReportConfiguration&& value) { SetErrorReportConfiguration(std::move(value)); return *this;} /** *Runtime summary for the last scheduled query run.
*/ inline const ScheduledQueryRunSummary& GetLastRunSummary() const{ return m_lastRunSummary; } /** *Runtime summary for the last scheduled query run.
*/ inline bool LastRunSummaryHasBeenSet() const { return m_lastRunSummaryHasBeenSet; } /** *Runtime summary for the last scheduled query run.
*/ inline void SetLastRunSummary(const ScheduledQueryRunSummary& value) { m_lastRunSummaryHasBeenSet = true; m_lastRunSummary = value; } /** *Runtime summary for the last scheduled query run.
*/ inline void SetLastRunSummary(ScheduledQueryRunSummary&& value) { m_lastRunSummaryHasBeenSet = true; m_lastRunSummary = std::move(value); } /** *Runtime summary for the last scheduled query run.
*/ inline ScheduledQueryDescription& WithLastRunSummary(const ScheduledQueryRunSummary& value) { SetLastRunSummary(value); return *this;} /** *Runtime summary for the last scheduled query run.
*/ inline ScheduledQueryDescription& WithLastRunSummary(ScheduledQueryRunSummary&& value) { SetLastRunSummary(std::move(value)); return *this;} /** *Runtime summary for the last five failed scheduled query runs.
*/ inline const Aws::VectorRuntime summary for the last five failed scheduled query runs.
*/ inline bool RecentlyFailedRunsHasBeenSet() const { return m_recentlyFailedRunsHasBeenSet; } /** *Runtime summary for the last five failed scheduled query runs.
*/ inline void SetRecentlyFailedRuns(const Aws::VectorRuntime summary for the last five failed scheduled query runs.
*/ inline void SetRecentlyFailedRuns(Aws::VectorRuntime summary for the last five failed scheduled query runs.
*/ inline ScheduledQueryDescription& WithRecentlyFailedRuns(const Aws::VectorRuntime summary for the last five failed scheduled query runs.
*/ inline ScheduledQueryDescription& WithRecentlyFailedRuns(Aws::VectorRuntime summary for the last five failed scheduled query runs.
*/ inline ScheduledQueryDescription& AddRecentlyFailedRuns(const ScheduledQueryRunSummary& value) { m_recentlyFailedRunsHasBeenSet = true; m_recentlyFailedRuns.push_back(value); return *this; } /** *Runtime summary for the last five failed scheduled query runs.
*/ inline ScheduledQueryDescription& AddRecentlyFailedRuns(ScheduledQueryRunSummary&& value) { m_recentlyFailedRunsHasBeenSet = true; m_recentlyFailedRuns.push_back(std::move(value)); return *this; } private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_queryString; bool m_queryStringHasBeenSet = 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; ScheduleConfiguration m_scheduleConfiguration; bool m_scheduleConfigurationHasBeenSet = false; NotificationConfiguration m_notificationConfiguration; bool m_notificationConfigurationHasBeenSet = false; TargetConfiguration m_targetConfiguration; bool m_targetConfigurationHasBeenSet = false; Aws::String m_scheduledQueryExecutionRoleArn; bool m_scheduledQueryExecutionRoleArnHasBeenSet = false; Aws::String m_kmsKeyId; bool m_kmsKeyIdHasBeenSet = false; ErrorReportConfiguration m_errorReportConfiguration; bool m_errorReportConfigurationHasBeenSet = false; ScheduledQueryRunSummary m_lastRunSummary; bool m_lastRunSummaryHasBeenSet = false; Aws::Vector