/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Specifies the schedule you want your task to use for repeated executions. For
* more information, see Schedule
* Expressions for Rules.See Also:
AWS
* API Reference
A cron expression that specifies when DataSync initiates a scheduled transfer * from a source to a destination location.
*/ inline const Aws::String& GetScheduleExpression() const{ return m_scheduleExpression; } /** *A cron expression that specifies when DataSync initiates a scheduled transfer * from a source to a destination location.
*/ inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; } /** *A cron expression that specifies when DataSync initiates a scheduled transfer * from a source to a destination location.
*/ inline void SetScheduleExpression(const Aws::String& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = value; } /** *A cron expression that specifies when DataSync initiates a scheduled transfer * from a source to a destination location.
*/ inline void SetScheduleExpression(Aws::String&& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = std::move(value); } /** *A cron expression that specifies when DataSync initiates a scheduled transfer * from a source to a destination location.
*/ inline void SetScheduleExpression(const char* value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression.assign(value); } /** *A cron expression that specifies when DataSync initiates a scheduled transfer * from a source to a destination location.
*/ inline TaskSchedule& WithScheduleExpression(const Aws::String& value) { SetScheduleExpression(value); return *this;} /** *A cron expression that specifies when DataSync initiates a scheduled transfer * from a source to a destination location.
*/ inline TaskSchedule& WithScheduleExpression(Aws::String&& value) { SetScheduleExpression(std::move(value)); return *this;} /** *A cron expression that specifies when DataSync initiates a scheduled transfer * from a source to a destination location.
*/ inline TaskSchedule& WithScheduleExpression(const char* value) { SetScheduleExpression(value); return *this;} private: Aws::String m_scheduleExpression; bool m_scheduleExpressionHasBeenSet = false; }; } // namespace Model } // namespace DataSync } // namespace Aws