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

Represents one or more dates and times when a job is to run.

See * Also:

AWS * API Reference

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

The ID of the Amazon Web Services account that owns the schedule.

*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *

The ID of the Amazon Web Services account that owns the schedule.

*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *

The ID of the Amazon Web Services account that owns the schedule.

*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *

The ID of the Amazon Web Services account that owns the schedule.

*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *

The ID of the Amazon Web Services account that owns the schedule.

*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *

The ID of the Amazon Web Services account that owns the schedule.

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

The ID of the Amazon Web Services account that owns the schedule.

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

The ID of the Amazon Web Services account that owns the schedule.

*/ inline Schedule& WithAccountId(const char* value) { SetAccountId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the user who created the schedule.

*/ inline const Aws::String& GetCreatedBy() const{ return m_createdBy; } /** *

The Amazon Resource Name (ARN) of the user who created the schedule.

*/ inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the user who created the schedule.

*/ inline void SetCreatedBy(const Aws::String& value) { m_createdByHasBeenSet = true; m_createdBy = value; } /** *

The Amazon Resource Name (ARN) of the user who created the schedule.

*/ inline void SetCreatedBy(Aws::String&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); } /** *

The Amazon Resource Name (ARN) of the user who created the schedule.

*/ inline void SetCreatedBy(const char* value) { m_createdByHasBeenSet = true; m_createdBy.assign(value); } /** *

The Amazon Resource Name (ARN) of the user who created the schedule.

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

The Amazon Resource Name (ARN) of the user who created the schedule.

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

The Amazon Resource Name (ARN) of the user who created the schedule.

*/ inline Schedule& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;} /** *

The date and time that the schedule was created.

*/ inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; } /** *

The date and time that the schedule was created.

*/ inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; } /** *

The date and time that the schedule was created.

*/ inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; } /** *

The date and time that the schedule was created.

*/ inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); } /** *

The date and time that the schedule was created.

*/ inline Schedule& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;} /** *

The date and time that the schedule was created.

*/ inline Schedule& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;} /** *

A list of jobs to be run, according to the schedule.

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

A list of jobs to be run, according to the schedule.

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

A list of jobs to be run, according to the schedule.

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

A list of jobs to be run, according to the schedule.

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

A list of jobs to be run, according to the schedule.

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

A list of jobs to be run, according to the schedule.

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

A list of jobs to be run, according to the schedule.

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

A list of jobs to be run, according to the schedule.

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

A list of jobs to be run, according to the schedule.

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

The Amazon Resource Name (ARN) of the user who last modified the * schedule.

*/ inline const Aws::String& GetLastModifiedBy() const{ return m_lastModifiedBy; } /** *

The Amazon Resource Name (ARN) of the user who last modified the * schedule.

*/ inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the user who last modified the * schedule.

*/ inline void SetLastModifiedBy(const Aws::String& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = value; } /** *

The Amazon Resource Name (ARN) of the user who last modified the * schedule.

*/ inline void SetLastModifiedBy(Aws::String&& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = std::move(value); } /** *

The Amazon Resource Name (ARN) of the user who last modified the * schedule.

*/ inline void SetLastModifiedBy(const char* value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy.assign(value); } /** *

The Amazon Resource Name (ARN) of the user who last modified the * schedule.

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

The Amazon Resource Name (ARN) of the user who last modified the * schedule.

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

The Amazon Resource Name (ARN) of the user who last modified the * schedule.

*/ inline Schedule& WithLastModifiedBy(const char* value) { SetLastModifiedBy(value); return *this;} /** *

The date and time when the schedule was last modified.

*/ inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; } /** *

The date and time when the schedule was last modified.

*/ inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; } /** *

The date and time when the schedule was last modified.

*/ inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; } /** *

The date and time when the schedule was last modified.

*/ inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::move(value); } /** *

The date and time when the schedule was last modified.

*/ inline Schedule& WithLastModifiedDate(const Aws::Utils::DateTime& value) { SetLastModifiedDate(value); return *this;} /** *

The date and time when the schedule was last modified.

*/ inline Schedule& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the schedule.

*/ inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } /** *

The Amazon Resource Name (ARN) of the schedule.

*/ inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the schedule.

*/ inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } /** *

The Amazon Resource Name (ARN) of the schedule.

*/ inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the schedule.

*/ inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the schedule.

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

The Amazon Resource Name (ARN) of the schedule.

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

The Amazon Resource Name (ARN) of the schedule.

*/ inline Schedule& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} /** *

The dates and times when the job is to run. For more information, see Cron * expressions in the Glue DataBrew Developer Guide.

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

The dates and times when the job is to run. For more information, see Cron * expressions in the Glue DataBrew Developer Guide.

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

The dates and times when the job is to 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 dates and times when the job is to 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 dates and times when the job is to 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 dates and times when the job is to run. For more information, see Cron * expressions in the Glue DataBrew Developer Guide.

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

The dates and times when the job is to run. For more information, see Cron * expressions in the Glue DataBrew Developer Guide.

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

The dates and times when the job is to run. For more information, see Cron * expressions in the Glue DataBrew Developer Guide.

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

Metadata tags that have been applied to the schedule.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

Metadata tags that have been applied to the schedule.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Metadata tags that have been applied to the schedule.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Metadata tags that have been applied to the schedule.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Metadata tags that have been applied to the schedule.

*/ inline Schedule& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

Metadata tags that have been applied to the schedule.

*/ inline Schedule& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

Metadata tags that have been applied to the schedule.

*/ inline Schedule& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

Metadata tags that have been applied to the schedule.

*/ inline Schedule& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Metadata tags that have been applied to the schedule.

*/ inline Schedule& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Metadata tags that have been applied to the schedule.

*/ inline Schedule& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

Metadata tags that have been applied to the schedule.

*/ inline Schedule& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Metadata tags that have been applied to the schedule.

*/ inline Schedule& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Metadata tags that have been applied to the schedule.

*/ inline Schedule& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The name of the schedule.

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

The name of the schedule.

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

The name of the schedule.

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

The name of the schedule.

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

The name of the schedule.

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

The name of the schedule.

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

The name of the schedule.

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

The name of the schedule.

*/ inline Schedule& WithName(const char* value) { SetName(value); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; Aws::String m_createdBy; bool m_createdByHasBeenSet = false; Aws::Utils::DateTime m_createDate; bool m_createDateHasBeenSet = false; Aws::Vector m_jobNames; bool m_jobNamesHasBeenSet = false; Aws::String m_lastModifiedBy; bool m_lastModifiedByHasBeenSet = false; Aws::Utils::DateTime m_lastModifiedDate; bool m_lastModifiedDateHasBeenSet = false; Aws::String m_resourceArn; bool m_resourceArnHasBeenSet = false; Aws::String m_cronExpression; bool m_cronExpressionHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; }; } // namespace Model } // namespace GlueDataBrew } // namespace Aws