/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Redshift { namespace Model { /** */ class ModifyClusterSnapshotScheduleRequest : public RedshiftRequest { public: AWS_REDSHIFT_API ModifyClusterSnapshotScheduleRequest(); // 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 "ModifyClusterSnapshotSchedule"; } AWS_REDSHIFT_API Aws::String SerializePayload() const override; protected: AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

A unique identifier for the cluster whose snapshot schedule you want to * modify.

*/ inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; } /** *

A unique identifier for the cluster whose snapshot schedule you want to * modify.

*/ inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; } /** *

A unique identifier for the cluster whose snapshot schedule you want to * modify.

*/ inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; } /** *

A unique identifier for the cluster whose snapshot schedule you want to * modify.

*/ inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); } /** *

A unique identifier for the cluster whose snapshot schedule you want to * modify.

*/ inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); } /** *

A unique identifier for the cluster whose snapshot schedule you want to * modify.

*/ inline ModifyClusterSnapshotScheduleRequest& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;} /** *

A unique identifier for the cluster whose snapshot schedule you want to * modify.

*/ inline ModifyClusterSnapshotScheduleRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;} /** *

A unique identifier for the cluster whose snapshot schedule you want to * modify.

*/ inline ModifyClusterSnapshotScheduleRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;} /** *

A unique alphanumeric identifier for the schedule that you want to associate * with the cluster.

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

A unique alphanumeric identifier for the schedule that you want to associate * with the cluster.

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

A unique alphanumeric identifier for the schedule that you want to associate * with the cluster.

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

A unique alphanumeric identifier for the schedule that you want to associate * with the cluster.

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

A unique alphanumeric identifier for the schedule that you want to associate * with the cluster.

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

A unique alphanumeric identifier for the schedule that you want to associate * with the cluster.

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

A unique alphanumeric identifier for the schedule that you want to associate * with the cluster.

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

A unique alphanumeric identifier for the schedule that you want to associate * with the cluster.

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

A boolean to indicate whether to remove the assoiciation between the cluster * and the schedule.

*/ inline bool GetDisassociateSchedule() const{ return m_disassociateSchedule; } /** *

A boolean to indicate whether to remove the assoiciation between the cluster * and the schedule.

*/ inline bool DisassociateScheduleHasBeenSet() const { return m_disassociateScheduleHasBeenSet; } /** *

A boolean to indicate whether to remove the assoiciation between the cluster * and the schedule.

*/ inline void SetDisassociateSchedule(bool value) { m_disassociateScheduleHasBeenSet = true; m_disassociateSchedule = value; } /** *

A boolean to indicate whether to remove the assoiciation between the cluster * and the schedule.

*/ inline ModifyClusterSnapshotScheduleRequest& WithDisassociateSchedule(bool value) { SetDisassociateSchedule(value); return *this;} private: Aws::String m_clusterIdentifier; bool m_clusterIdentifierHasBeenSet = false; Aws::String m_scheduleIdentifier; bool m_scheduleIdentifierHasBeenSet = false; bool m_disassociateSchedule; bool m_disassociateScheduleHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws