/** * 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 Redshift { namespace Model { /** */ class CreateSnapshotScheduleRequest : public RedshiftRequest { public: AWS_REDSHIFT_API CreateSnapshotScheduleRequest(); // 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 "CreateSnapshotSchedule"; } AWS_REDSHIFT_API Aws::String SerializePayload() const override; protected: AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The definition of the snapshot schedule. The definition is made up of * schedule expressions, for example "cron(30 12 *)" or "rate(12 hours)".

*/ inline const Aws::Vector& GetScheduleDefinitions() const{ return m_scheduleDefinitions; } /** *

The definition of the snapshot schedule. The definition is made up of * schedule expressions, for example "cron(30 12 *)" or "rate(12 hours)".

*/ inline bool ScheduleDefinitionsHasBeenSet() const { return m_scheduleDefinitionsHasBeenSet; } /** *

The definition of the snapshot schedule. The definition is made up of * schedule expressions, for example "cron(30 12 *)" or "rate(12 hours)".

*/ inline void SetScheduleDefinitions(const Aws::Vector& value) { m_scheduleDefinitionsHasBeenSet = true; m_scheduleDefinitions = value; } /** *

The definition of the snapshot schedule. The definition is made up of * schedule expressions, for example "cron(30 12 *)" or "rate(12 hours)".

*/ inline void SetScheduleDefinitions(Aws::Vector&& value) { m_scheduleDefinitionsHasBeenSet = true; m_scheduleDefinitions = std::move(value); } /** *

The definition of the snapshot schedule. The definition is made up of * schedule expressions, for example "cron(30 12 *)" or "rate(12 hours)".

*/ inline CreateSnapshotScheduleRequest& WithScheduleDefinitions(const Aws::Vector& value) { SetScheduleDefinitions(value); return *this;} /** *

The definition of the snapshot schedule. The definition is made up of * schedule expressions, for example "cron(30 12 *)" or "rate(12 hours)".

*/ inline CreateSnapshotScheduleRequest& WithScheduleDefinitions(Aws::Vector&& value) { SetScheduleDefinitions(std::move(value)); return *this;} /** *

The definition of the snapshot schedule. The definition is made up of * schedule expressions, for example "cron(30 12 *)" or "rate(12 hours)".

*/ inline CreateSnapshotScheduleRequest& AddScheduleDefinitions(const Aws::String& value) { m_scheduleDefinitionsHasBeenSet = true; m_scheduleDefinitions.push_back(value); return *this; } /** *

The definition of the snapshot schedule. The definition is made up of * schedule expressions, for example "cron(30 12 *)" or "rate(12 hours)".

*/ inline CreateSnapshotScheduleRequest& AddScheduleDefinitions(Aws::String&& value) { m_scheduleDefinitionsHasBeenSet = true; m_scheduleDefinitions.push_back(std::move(value)); return *this; } /** *

The definition of the snapshot schedule. The definition is made up of * schedule expressions, for example "cron(30 12 *)" or "rate(12 hours)".

*/ inline CreateSnapshotScheduleRequest& AddScheduleDefinitions(const char* value) { m_scheduleDefinitionsHasBeenSet = true; m_scheduleDefinitions.push_back(value); return *this; } /** *

A unique identifier for a snapshot schedule. Only alphanumeric characters are * allowed for the identifier.

*/ inline const Aws::String& GetScheduleIdentifier() const{ return m_scheduleIdentifier; } /** *

A unique identifier for a snapshot schedule. Only alphanumeric characters are * allowed for the identifier.

*/ inline bool ScheduleIdentifierHasBeenSet() const { return m_scheduleIdentifierHasBeenSet; } /** *

A unique identifier for a snapshot schedule. Only alphanumeric characters are * allowed for the identifier.

*/ inline void SetScheduleIdentifier(const Aws::String& value) { m_scheduleIdentifierHasBeenSet = true; m_scheduleIdentifier = value; } /** *

A unique identifier for a snapshot schedule. Only alphanumeric characters are * allowed for the identifier.

*/ inline void SetScheduleIdentifier(Aws::String&& value) { m_scheduleIdentifierHasBeenSet = true; m_scheduleIdentifier = std::move(value); } /** *

A unique identifier for a snapshot schedule. Only alphanumeric characters are * allowed for the identifier.

*/ inline void SetScheduleIdentifier(const char* value) { m_scheduleIdentifierHasBeenSet = true; m_scheduleIdentifier.assign(value); } /** *

A unique identifier for a snapshot schedule. Only alphanumeric characters are * allowed for the identifier.

*/ inline CreateSnapshotScheduleRequest& WithScheduleIdentifier(const Aws::String& value) { SetScheduleIdentifier(value); return *this;} /** *

A unique identifier for a snapshot schedule. Only alphanumeric characters are * allowed for the identifier.

*/ inline CreateSnapshotScheduleRequest& WithScheduleIdentifier(Aws::String&& value) { SetScheduleIdentifier(std::move(value)); return *this;} /** *

A unique identifier for a snapshot schedule. Only alphanumeric characters are * allowed for the identifier.

*/ inline CreateSnapshotScheduleRequest& WithScheduleIdentifier(const char* value) { SetScheduleIdentifier(value); return *this;} /** *

The description of the snapshot schedule.

*/ inline const Aws::String& GetScheduleDescription() const{ return m_scheduleDescription; } /** *

The description of the snapshot schedule.

*/ inline bool ScheduleDescriptionHasBeenSet() const { return m_scheduleDescriptionHasBeenSet; } /** *

The description of the snapshot schedule.

*/ inline void SetScheduleDescription(const Aws::String& value) { m_scheduleDescriptionHasBeenSet = true; m_scheduleDescription = value; } /** *

The description of the snapshot schedule.

*/ inline void SetScheduleDescription(Aws::String&& value) { m_scheduleDescriptionHasBeenSet = true; m_scheduleDescription = std::move(value); } /** *

The description of the snapshot schedule.

*/ inline void SetScheduleDescription(const char* value) { m_scheduleDescriptionHasBeenSet = true; m_scheduleDescription.assign(value); } /** *

The description of the snapshot schedule.

*/ inline CreateSnapshotScheduleRequest& WithScheduleDescription(const Aws::String& value) { SetScheduleDescription(value); return *this;} /** *

The description of the snapshot schedule.

*/ inline CreateSnapshotScheduleRequest& WithScheduleDescription(Aws::String&& value) { SetScheduleDescription(std::move(value)); return *this;} /** *

The description of the snapshot schedule.

*/ inline CreateSnapshotScheduleRequest& WithScheduleDescription(const char* value) { SetScheduleDescription(value); return *this;} /** *

An optional set of tags you can use to search for the schedule.

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

An optional set of tags you can use to search for the schedule.

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

An optional set of tags you can use to search for the schedule.

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

An optional set of tags you can use to search for the schedule.

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

An optional set of tags you can use to search for the schedule.

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

An optional set of tags you can use to search for the schedule.

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

An optional set of tags you can use to search for the schedule.

*/ inline CreateSnapshotScheduleRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

An optional set of tags you can use to search for the schedule.

*/ inline CreateSnapshotScheduleRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

*/ inline bool GetDryRun() const{ return m_dryRun; } /** *

*/ inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } /** *

*/ inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } /** *

*/ inline CreateSnapshotScheduleRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} /** *

*/ inline int GetNextInvocations() const{ return m_nextInvocations; } /** *

*/ inline bool NextInvocationsHasBeenSet() const { return m_nextInvocationsHasBeenSet; } /** *

*/ inline void SetNextInvocations(int value) { m_nextInvocationsHasBeenSet = true; m_nextInvocations = value; } /** *

*/ inline CreateSnapshotScheduleRequest& WithNextInvocations(int value) { SetNextInvocations(value); return *this;} private: Aws::Vector m_scheduleDefinitions; bool m_scheduleDefinitionsHasBeenSet = false; Aws::String m_scheduleIdentifier; bool m_scheduleIdentifierHasBeenSet = false; Aws::String m_scheduleDescription; bool m_scheduleDescriptionHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; bool m_dryRun; bool m_dryRunHasBeenSet = false; int m_nextInvocations; bool m_nextInvocationsHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws