/** * 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 Redshift { namespace Model { /** */ class ModifyClusterMaintenanceRequest : public RedshiftRequest { public: AWS_REDSHIFT_API ModifyClusterMaintenanceRequest(); // 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 "ModifyClusterMaintenance"; } 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.

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

A unique identifier for the cluster.

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

A unique identifier for the cluster.

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

A unique identifier for the cluster.

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

A unique identifier for the cluster.

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

A unique identifier for the cluster.

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

A unique identifier for the cluster.

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

A unique identifier for the cluster.

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

A boolean indicating whether to enable the deferred maintenance window.

*/ inline bool GetDeferMaintenance() const{ return m_deferMaintenance; } /** *

A boolean indicating whether to enable the deferred maintenance window.

*/ inline bool DeferMaintenanceHasBeenSet() const { return m_deferMaintenanceHasBeenSet; } /** *

A boolean indicating whether to enable the deferred maintenance window.

*/ inline void SetDeferMaintenance(bool value) { m_deferMaintenanceHasBeenSet = true; m_deferMaintenance = value; } /** *

A boolean indicating whether to enable the deferred maintenance window.

*/ inline ModifyClusterMaintenanceRequest& WithDeferMaintenance(bool value) { SetDeferMaintenance(value); return *this;} /** *

A unique identifier for the deferred maintenance window.

*/ inline const Aws::String& GetDeferMaintenanceIdentifier() const{ return m_deferMaintenanceIdentifier; } /** *

A unique identifier for the deferred maintenance window.

*/ inline bool DeferMaintenanceIdentifierHasBeenSet() const { return m_deferMaintenanceIdentifierHasBeenSet; } /** *

A unique identifier for the deferred maintenance window.

*/ inline void SetDeferMaintenanceIdentifier(const Aws::String& value) { m_deferMaintenanceIdentifierHasBeenSet = true; m_deferMaintenanceIdentifier = value; } /** *

A unique identifier for the deferred maintenance window.

*/ inline void SetDeferMaintenanceIdentifier(Aws::String&& value) { m_deferMaintenanceIdentifierHasBeenSet = true; m_deferMaintenanceIdentifier = std::move(value); } /** *

A unique identifier for the deferred maintenance window.

*/ inline void SetDeferMaintenanceIdentifier(const char* value) { m_deferMaintenanceIdentifierHasBeenSet = true; m_deferMaintenanceIdentifier.assign(value); } /** *

A unique identifier for the deferred maintenance window.

*/ inline ModifyClusterMaintenanceRequest& WithDeferMaintenanceIdentifier(const Aws::String& value) { SetDeferMaintenanceIdentifier(value); return *this;} /** *

A unique identifier for the deferred maintenance window.

*/ inline ModifyClusterMaintenanceRequest& WithDeferMaintenanceIdentifier(Aws::String&& value) { SetDeferMaintenanceIdentifier(std::move(value)); return *this;} /** *

A unique identifier for the deferred maintenance window.

*/ inline ModifyClusterMaintenanceRequest& WithDeferMaintenanceIdentifier(const char* value) { SetDeferMaintenanceIdentifier(value); return *this;} /** *

A timestamp indicating the start time for the deferred maintenance * window.

*/ inline const Aws::Utils::DateTime& GetDeferMaintenanceStartTime() const{ return m_deferMaintenanceStartTime; } /** *

A timestamp indicating the start time for the deferred maintenance * window.

*/ inline bool DeferMaintenanceStartTimeHasBeenSet() const { return m_deferMaintenanceStartTimeHasBeenSet; } /** *

A timestamp indicating the start time for the deferred maintenance * window.

*/ inline void SetDeferMaintenanceStartTime(const Aws::Utils::DateTime& value) { m_deferMaintenanceStartTimeHasBeenSet = true; m_deferMaintenanceStartTime = value; } /** *

A timestamp indicating the start time for the deferred maintenance * window.

*/ inline void SetDeferMaintenanceStartTime(Aws::Utils::DateTime&& value) { m_deferMaintenanceStartTimeHasBeenSet = true; m_deferMaintenanceStartTime = std::move(value); } /** *

A timestamp indicating the start time for the deferred maintenance * window.

*/ inline ModifyClusterMaintenanceRequest& WithDeferMaintenanceStartTime(const Aws::Utils::DateTime& value) { SetDeferMaintenanceStartTime(value); return *this;} /** *

A timestamp indicating the start time for the deferred maintenance * window.

*/ inline ModifyClusterMaintenanceRequest& WithDeferMaintenanceStartTime(Aws::Utils::DateTime&& value) { SetDeferMaintenanceStartTime(std::move(value)); return *this;} /** *

A timestamp indicating end time for the deferred maintenance window. If you * specify an end time, you can't specify a duration.

*/ inline const Aws::Utils::DateTime& GetDeferMaintenanceEndTime() const{ return m_deferMaintenanceEndTime; } /** *

A timestamp indicating end time for the deferred maintenance window. If you * specify an end time, you can't specify a duration.

*/ inline bool DeferMaintenanceEndTimeHasBeenSet() const { return m_deferMaintenanceEndTimeHasBeenSet; } /** *

A timestamp indicating end time for the deferred maintenance window. If you * specify an end time, you can't specify a duration.

*/ inline void SetDeferMaintenanceEndTime(const Aws::Utils::DateTime& value) { m_deferMaintenanceEndTimeHasBeenSet = true; m_deferMaintenanceEndTime = value; } /** *

A timestamp indicating end time for the deferred maintenance window. If you * specify an end time, you can't specify a duration.

*/ inline void SetDeferMaintenanceEndTime(Aws::Utils::DateTime&& value) { m_deferMaintenanceEndTimeHasBeenSet = true; m_deferMaintenanceEndTime = std::move(value); } /** *

A timestamp indicating end time for the deferred maintenance window. If you * specify an end time, you can't specify a duration.

*/ inline ModifyClusterMaintenanceRequest& WithDeferMaintenanceEndTime(const Aws::Utils::DateTime& value) { SetDeferMaintenanceEndTime(value); return *this;} /** *

A timestamp indicating end time for the deferred maintenance window. If you * specify an end time, you can't specify a duration.

*/ inline ModifyClusterMaintenanceRequest& WithDeferMaintenanceEndTime(Aws::Utils::DateTime&& value) { SetDeferMaintenanceEndTime(std::move(value)); return *this;} /** *

An integer indicating the duration of the maintenance window in days. If you * specify a duration, you can't specify an end time. The duration must be 45 days * or less.

*/ inline int GetDeferMaintenanceDuration() const{ return m_deferMaintenanceDuration; } /** *

An integer indicating the duration of the maintenance window in days. If you * specify a duration, you can't specify an end time. The duration must be 45 days * or less.

*/ inline bool DeferMaintenanceDurationHasBeenSet() const { return m_deferMaintenanceDurationHasBeenSet; } /** *

An integer indicating the duration of the maintenance window in days. If you * specify a duration, you can't specify an end time. The duration must be 45 days * or less.

*/ inline void SetDeferMaintenanceDuration(int value) { m_deferMaintenanceDurationHasBeenSet = true; m_deferMaintenanceDuration = value; } /** *

An integer indicating the duration of the maintenance window in days. If you * specify a duration, you can't specify an end time. The duration must be 45 days * or less.

*/ inline ModifyClusterMaintenanceRequest& WithDeferMaintenanceDuration(int value) { SetDeferMaintenanceDuration(value); return *this;} private: Aws::String m_clusterIdentifier; bool m_clusterIdentifierHasBeenSet = false; bool m_deferMaintenance; bool m_deferMaintenanceHasBeenSet = false; Aws::String m_deferMaintenanceIdentifier; bool m_deferMaintenanceIdentifierHasBeenSet = false; Aws::Utils::DateTime m_deferMaintenanceStartTime; bool m_deferMaintenanceStartTimeHasBeenSet = false; Aws::Utils::DateTime m_deferMaintenanceEndTime; bool m_deferMaintenanceEndTimeHasBeenSet = false; int m_deferMaintenanceDuration; bool m_deferMaintenanceDurationHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws