Struct aws_sdk_redshift::operation::modify_cluster_maintenance::builders::ModifyClusterMaintenanceInputBuilder
source · #[non_exhaustive]pub struct ModifyClusterMaintenanceInputBuilder { /* private fields */ }
Expand description
A builder for ModifyClusterMaintenanceInput
.
Implementations§
source§impl ModifyClusterMaintenanceInputBuilder
impl ModifyClusterMaintenanceInputBuilder
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.
This field is required.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.
sourcepub fn build(self) -> Result<ModifyClusterMaintenanceInput, BuildError>
pub fn build(self) -> Result<ModifyClusterMaintenanceInput, BuildError>
Consumes the builder and constructs a ModifyClusterMaintenanceInput
.
source§impl ModifyClusterMaintenanceInputBuilder
impl ModifyClusterMaintenanceInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ModifyClusterMaintenanceOutput, SdkError<ModifyClusterMaintenanceError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ModifyClusterMaintenanceOutput, SdkError<ModifyClusterMaintenanceError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ModifyClusterMaintenanceInputBuilder
impl Clone for ModifyClusterMaintenanceInputBuilder
source§fn clone(&self) -> ModifyClusterMaintenanceInputBuilder
fn clone(&self) -> ModifyClusterMaintenanceInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ModifyClusterMaintenanceInputBuilder
impl Default for ModifyClusterMaintenanceInputBuilder
source§fn default() -> ModifyClusterMaintenanceInputBuilder
fn default() -> ModifyClusterMaintenanceInputBuilder
source§impl PartialEq for ModifyClusterMaintenanceInputBuilder
impl PartialEq for ModifyClusterMaintenanceInputBuilder
source§fn eq(&self, other: &ModifyClusterMaintenanceInputBuilder) -> bool
fn eq(&self, other: &ModifyClusterMaintenanceInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.