/** * 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 IoTAnalytics { namespace Model { /** *

The schedule for when to trigger an update.

See Also:

AWS * API Reference

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

The expression that defines when to trigger an update. For more information, * see Schedule * Expressions for Rules in the Amazon CloudWatch Events User Guide.

*/ inline const Aws::String& GetExpression() const{ return m_expression; } /** *

The expression that defines when to trigger an update. For more information, * see Schedule * Expressions for Rules in the Amazon CloudWatch Events User Guide.

*/ inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; } /** *

The expression that defines when to trigger an update. For more information, * see Schedule * Expressions for Rules in the Amazon CloudWatch Events User Guide.

*/ inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; } /** *

The expression that defines when to trigger an update. For more information, * see Schedule * Expressions for Rules in the Amazon CloudWatch Events User Guide.

*/ inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); } /** *

The expression that defines when to trigger an update. For more information, * see Schedule * Expressions for Rules in the Amazon CloudWatch Events User Guide.

*/ inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); } /** *

The expression that defines when to trigger an update. For more information, * see Schedule * Expressions for Rules in the Amazon CloudWatch Events User Guide.

*/ inline Schedule& WithExpression(const Aws::String& value) { SetExpression(value); return *this;} /** *

The expression that defines when to trigger an update. For more information, * see Schedule * Expressions for Rules in the Amazon CloudWatch Events User Guide.

*/ inline Schedule& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;} /** *

The expression that defines when to trigger an update. For more information, * see Schedule * Expressions for Rules in the Amazon CloudWatch Events User Guide.

*/ inline Schedule& WithExpression(const char* value) { SetExpression(value); return *this;} private: Aws::String m_expression; bool m_expressionHasBeenSet = false; }; } // namespace Model } // namespace IoTAnalytics } // namespace Aws