Struct aws_sdk_redshift::operation::modify_cluster_maintenance::builders::ModifyClusterMaintenanceFluentBuilder
source · pub struct ModifyClusterMaintenanceFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to ModifyClusterMaintenance
.
Modifies the maintenance settings of a cluster.
Implementations§
source§impl ModifyClusterMaintenanceFluentBuilder
impl ModifyClusterMaintenanceFluentBuilder
sourcepub fn as_input(&self) -> &ModifyClusterMaintenanceInputBuilder
pub fn as_input(&self) -> &ModifyClusterMaintenanceInputBuilder
Access the ModifyClusterMaintenance as a reference.
sourcepub async fn send(
self
) -> Result<ModifyClusterMaintenanceOutput, SdkError<ModifyClusterMaintenanceError, HttpResponse>>
pub async fn send( self ) -> Result<ModifyClusterMaintenanceOutput, SdkError<ModifyClusterMaintenanceError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<ModifyClusterMaintenanceOutput, ModifyClusterMaintenanceError, Self>
pub fn customize( self ) -> CustomizableOperation<ModifyClusterMaintenanceOutput, ModifyClusterMaintenanceError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn cluster_identifier(self, input: impl Into<String>) -> Self
pub fn cluster_identifier(self, input: impl Into<String>) -> Self
A unique identifier for the cluster.
sourcepub fn set_cluster_identifier(self, input: Option<String>) -> Self
pub fn set_cluster_identifier(self, input: Option<String>) -> Self
A unique identifier for the cluster.
sourcepub fn get_cluster_identifier(&self) -> &Option<String>
pub fn get_cluster_identifier(&self) -> &Option<String>
A unique identifier for the cluster.
sourcepub fn defer_maintenance(self, input: bool) -> Self
pub fn defer_maintenance(self, input: bool) -> Self
A boolean indicating whether to enable the deferred maintenance window.
sourcepub fn set_defer_maintenance(self, input: Option<bool>) -> Self
pub fn set_defer_maintenance(self, input: Option<bool>) -> Self
A boolean indicating whether to enable the deferred maintenance window.
sourcepub fn get_defer_maintenance(&self) -> &Option<bool>
pub fn get_defer_maintenance(&self) -> &Option<bool>
A boolean indicating whether to enable the deferred maintenance window.
sourcepub fn defer_maintenance_identifier(self, input: impl Into<String>) -> Self
pub fn defer_maintenance_identifier(self, input: impl Into<String>) -> Self
A unique identifier for the deferred maintenance window.
sourcepub fn set_defer_maintenance_identifier(self, input: Option<String>) -> Self
pub fn set_defer_maintenance_identifier(self, input: Option<String>) -> Self
A unique identifier for the deferred maintenance window.
sourcepub fn get_defer_maintenance_identifier(&self) -> &Option<String>
pub fn get_defer_maintenance_identifier(&self) -> &Option<String>
A unique identifier for the deferred maintenance window.
sourcepub fn defer_maintenance_start_time(self, input: DateTime) -> Self
pub fn defer_maintenance_start_time(self, input: DateTime) -> Self
A timestamp indicating the start time for the deferred maintenance window.
sourcepub fn set_defer_maintenance_start_time(self, input: Option<DateTime>) -> Self
pub fn set_defer_maintenance_start_time(self, input: Option<DateTime>) -> Self
A timestamp indicating the start time for the deferred maintenance window.
sourcepub fn get_defer_maintenance_start_time(&self) -> &Option<DateTime>
pub fn get_defer_maintenance_start_time(&self) -> &Option<DateTime>
A timestamp indicating the start time for the deferred maintenance window.
sourcepub fn defer_maintenance_end_time(self, input: DateTime) -> Self
pub fn defer_maintenance_end_time(self, input: DateTime) -> Self
A timestamp indicating end time for the deferred maintenance window. If you specify an end time, you can't specify a duration.
sourcepub fn set_defer_maintenance_end_time(self, input: Option<DateTime>) -> Self
pub fn set_defer_maintenance_end_time(self, input: Option<DateTime>) -> Self
A timestamp indicating end time for the deferred maintenance window. If you specify an end time, you can't specify a duration.
sourcepub fn get_defer_maintenance_end_time(&self) -> &Option<DateTime>
pub fn get_defer_maintenance_end_time(&self) -> &Option<DateTime>
A timestamp indicating end time for the deferred maintenance window. If you specify an end time, you can't specify a duration.
sourcepub fn defer_maintenance_duration(self, input: i32) -> Self
pub fn defer_maintenance_duration(self, input: i32) -> Self
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.
sourcepub fn set_defer_maintenance_duration(self, input: Option<i32>) -> Self
pub fn set_defer_maintenance_duration(self, input: Option<i32>) -> Self
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.
sourcepub fn get_defer_maintenance_duration(&self) -> &Option<i32>
pub fn get_defer_maintenance_duration(&self) -> &Option<i32>
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.
Trait Implementations§
source§impl Clone for ModifyClusterMaintenanceFluentBuilder
impl Clone for ModifyClusterMaintenanceFluentBuilder
source§fn clone(&self) -> ModifyClusterMaintenanceFluentBuilder
fn clone(&self) -> ModifyClusterMaintenanceFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more