/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace TimestreamQuery { namespace Model { /** *

Configuration of the schedule of the query.

See Also:

AWS * API Reference

*/ class ScheduleConfiguration { public: AWS_TIMESTREAMQUERY_API ScheduleConfiguration(); AWS_TIMESTREAMQUERY_API ScheduleConfiguration(Aws::Utils::Json::JsonView jsonValue); AWS_TIMESTREAMQUERY_API ScheduleConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_TIMESTREAMQUERY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

An expression that denotes when to trigger the scheduled query run. This can * be a cron expression or a rate expression.

*/ inline const Aws::String& GetScheduleExpression() const{ return m_scheduleExpression; } /** *

An expression that denotes when to trigger the scheduled query run. This can * be a cron expression or a rate expression.

*/ inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; } /** *

An expression that denotes when to trigger the scheduled query run. This can * be a cron expression or a rate expression.

*/ inline void SetScheduleExpression(const Aws::String& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = value; } /** *

An expression that denotes when to trigger the scheduled query run. This can * be a cron expression or a rate expression.

*/ inline void SetScheduleExpression(Aws::String&& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = std::move(value); } /** *

An expression that denotes when to trigger the scheduled query run. This can * be a cron expression or a rate expression.

*/ inline void SetScheduleExpression(const char* value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression.assign(value); } /** *

An expression that denotes when to trigger the scheduled query run. This can * be a cron expression or a rate expression.

*/ inline ScheduleConfiguration& WithScheduleExpression(const Aws::String& value) { SetScheduleExpression(value); return *this;} /** *

An expression that denotes when to trigger the scheduled query run. This can * be a cron expression or a rate expression.

*/ inline ScheduleConfiguration& WithScheduleExpression(Aws::String&& value) { SetScheduleExpression(std::move(value)); return *this;} /** *

An expression that denotes when to trigger the scheduled query run. This can * be a cron expression or a rate expression.

*/ inline ScheduleConfiguration& WithScheduleExpression(const char* value) { SetScheduleExpression(value); return *this;} private: Aws::String m_scheduleExpression; bool m_scheduleExpressionHasBeenSet = false; }; } // namespace Model } // namespace TimestreamQuery } // namespace Aws