/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace GlueDataBrew { namespace Model { /** */ class UpdateScheduleRequest : public GlueDataBrewRequest { public: AWS_GLUEDATABREW_API UpdateScheduleRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateSchedule"; } AWS_GLUEDATABREW_API Aws::String SerializePayload() const override; /** *

The name or names of one or more jobs to be run for this schedule.

*/ inline const Aws::Vector& GetJobNames() const{ return m_jobNames; } /** *

The name or names of one or more jobs to be run for this schedule.

*/ inline bool JobNamesHasBeenSet() const { return m_jobNamesHasBeenSet; } /** *

The name or names of one or more jobs to be run for this schedule.

*/ inline void SetJobNames(const Aws::Vector& value) { m_jobNamesHasBeenSet = true; m_jobNames = value; } /** *

The name or names of one or more jobs to be run for this schedule.

*/ inline void SetJobNames(Aws::Vector&& value) { m_jobNamesHasBeenSet = true; m_jobNames = std::move(value); } /** *

The name or names of one or more jobs to be run for this schedule.

*/ inline UpdateScheduleRequest& WithJobNames(const Aws::Vector& value) { SetJobNames(value); return *this;} /** *

The name or names of one or more jobs to be run for this schedule.

*/ inline UpdateScheduleRequest& WithJobNames(Aws::Vector&& value) { SetJobNames(std::move(value)); return *this;} /** *

The name or names of one or more jobs to be run for this schedule.

*/ inline UpdateScheduleRequest& AddJobNames(const Aws::String& value) { m_jobNamesHasBeenSet = true; m_jobNames.push_back(value); return *this; } /** *

The name or names of one or more jobs to be run for this schedule.

*/ inline UpdateScheduleRequest& AddJobNames(Aws::String&& value) { m_jobNamesHasBeenSet = true; m_jobNames.push_back(std::move(value)); return *this; } /** *

The name or names of one or more jobs to be run for this schedule.

*/ inline UpdateScheduleRequest& AddJobNames(const char* value) { m_jobNamesHasBeenSet = true; m_jobNames.push_back(value); return *this; } /** *

The date or dates and time or times when the jobs are to be run. For more * information, see Cron * expressions in the Glue DataBrew Developer Guide.

*/ inline const Aws::String& GetCronExpression() const{ return m_cronExpression; } /** *

The date or dates and time or times when the jobs are to be run. For more * information, see Cron * expressions in the Glue DataBrew Developer Guide.

*/ inline bool CronExpressionHasBeenSet() const { return m_cronExpressionHasBeenSet; } /** *

The date or dates and time or times when the jobs are to be run. For more * information, see Cron * expressions in the Glue DataBrew Developer Guide.

*/ inline void SetCronExpression(const Aws::String& value) { m_cronExpressionHasBeenSet = true; m_cronExpression = value; } /** *

The date or dates and time or times when the jobs are to be run. For more * information, see Cron * expressions in the Glue DataBrew Developer Guide.

*/ inline void SetCronExpression(Aws::String&& value) { m_cronExpressionHasBeenSet = true; m_cronExpression = std::move(value); } /** *

The date or dates and time or times when the jobs are to be run. For more * information, see Cron * expressions in the Glue DataBrew Developer Guide.

*/ inline void SetCronExpression(const char* value) { m_cronExpressionHasBeenSet = true; m_cronExpression.assign(value); } /** *

The date or dates and time or times when the jobs are to be run. For more * information, see Cron * expressions in the Glue DataBrew Developer Guide.

*/ inline UpdateScheduleRequest& WithCronExpression(const Aws::String& value) { SetCronExpression(value); return *this;} /** *

The date or dates and time or times when the jobs are to be run. For more * information, see Cron * expressions in the Glue DataBrew Developer Guide.

*/ inline UpdateScheduleRequest& WithCronExpression(Aws::String&& value) { SetCronExpression(std::move(value)); return *this;} /** *

The date or dates and time or times when the jobs are to be run. For more * information, see Cron * expressions in the Glue DataBrew Developer Guide.

*/ inline UpdateScheduleRequest& WithCronExpression(const char* value) { SetCronExpression(value); return *this;} /** *

The name of the schedule to update.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the schedule to update.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the schedule to update.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the schedule to update.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the schedule to update.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the schedule to update.

*/ inline UpdateScheduleRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the schedule to update.

*/ inline UpdateScheduleRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the schedule to update.

*/ inline UpdateScheduleRequest& WithName(const char* value) { SetName(value); return *this;} private: Aws::Vector m_jobNames; bool m_jobNamesHasBeenSet = false; Aws::String m_cronExpression; bool m_cronExpressionHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; }; } // namespace Model } // namespace GlueDataBrew } // namespace Aws