aws_sdk_storagegateway/client/
update_maintenance_start_time.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`UpdateMaintenanceStartTime`](crate::operation::update_maintenance_start_time::builders::UpdateMaintenanceStartTimeFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`gateway_arn(impl Into<String>)`](crate::operation::update_maintenance_start_time::builders::UpdateMaintenanceStartTimeFluentBuilder::gateway_arn) / [`set_gateway_arn(Option<String>)`](crate::operation::update_maintenance_start_time::builders::UpdateMaintenanceStartTimeFluentBuilder::set_gateway_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the gateway. Use the <code>ListGateways</code> operation to return a list of gateways for your account and Amazon Web Services Region.</p><br>
7    ///   - [`hour_of_day(i32)`](crate::operation::update_maintenance_start_time::builders::UpdateMaintenanceStartTimeFluentBuilder::hour_of_day) / [`set_hour_of_day(Option<i32>)`](crate::operation::update_maintenance_start_time::builders::UpdateMaintenanceStartTimeFluentBuilder::set_hour_of_day):<br>required: **false**<br><p>The hour component of the maintenance start time represented as <i>hh</i>, where <i>hh</i> is the hour (00 to 23). The hour of the day is in the time zone of the gateway.</p><br>
8    ///   - [`minute_of_hour(i32)`](crate::operation::update_maintenance_start_time::builders::UpdateMaintenanceStartTimeFluentBuilder::minute_of_hour) / [`set_minute_of_hour(Option<i32>)`](crate::operation::update_maintenance_start_time::builders::UpdateMaintenanceStartTimeFluentBuilder::set_minute_of_hour):<br>required: **false**<br><p>The minute component of the maintenance start time represented as <i>mm</i>, where <i>mm</i> is the minute (00 to 59). The minute of the hour is in the time zone of the gateway.</p><br>
9    ///   - [`day_of_week(i32)`](crate::operation::update_maintenance_start_time::builders::UpdateMaintenanceStartTimeFluentBuilder::day_of_week) / [`set_day_of_week(Option<i32>)`](crate::operation::update_maintenance_start_time::builders::UpdateMaintenanceStartTimeFluentBuilder::set_day_of_week):<br>required: **false**<br><p>The day of the week component of the maintenance start time week represented as an ordinal number from 0 to 6, where 0 represents Sunday and 6 represents Saturday.</p><br>
10    ///   - [`day_of_month(i32)`](crate::operation::update_maintenance_start_time::builders::UpdateMaintenanceStartTimeFluentBuilder::day_of_month) / [`set_day_of_month(Option<i32>)`](crate::operation::update_maintenance_start_time::builders::UpdateMaintenanceStartTimeFluentBuilder::set_day_of_month):<br>required: **false**<br><p>The day of the month component of the maintenance start time represented as an ordinal number from 1 to 28, where 1 represents the first day of the month. It is not possible to set the maintenance schedule to start on days 29 through 31.</p><br>
11    ///   - [`software_update_preferences(SoftwareUpdatePreferences)`](crate::operation::update_maintenance_start_time::builders::UpdateMaintenanceStartTimeFluentBuilder::software_update_preferences) / [`set_software_update_preferences(Option<SoftwareUpdatePreferences>)`](crate::operation::update_maintenance_start_time::builders::UpdateMaintenanceStartTimeFluentBuilder::set_software_update_preferences):<br>required: **false**<br><p>A set of variables indicating the software update preferences for the gateway.</p> <p>Includes <code>AutomaticUpdatePolicy</code> field with the following inputs:</p> <p><code>ALL_VERSIONS</code> - Enables regular gateway maintenance updates.</p> <p><code>EMERGENCY_VERSIONS_ONLY</code> - Disables regular gateway maintenance updates. The gateway will still receive emergency version updates on rare occasions if necessary to remedy highly critical security or durability issues. You will be notified before an emergency version update is applied. These updates are applied during your gateway's scheduled maintenance window.</p><br>
12    /// - On success, responds with [`UpdateMaintenanceStartTimeOutput`](crate::operation::update_maintenance_start_time::UpdateMaintenanceStartTimeOutput) with field(s):
13    ///   - [`gateway_arn(Option<String>)`](crate::operation::update_maintenance_start_time::UpdateMaintenanceStartTimeOutput::gateway_arn): <p>The Amazon Resource Name (ARN) of the gateway. Use the <code>ListGateways</code> operation to return a list of gateways for your account and Amazon Web Services Region.</p>
14    /// - On failure, responds with [`SdkError<UpdateMaintenanceStartTimeError>`](crate::operation::update_maintenance_start_time::UpdateMaintenanceStartTimeError)
15    pub fn update_maintenance_start_time(
16        &self,
17    ) -> crate::operation::update_maintenance_start_time::builders::UpdateMaintenanceStartTimeFluentBuilder {
18        crate::operation::update_maintenance_start_time::builders::UpdateMaintenanceStartTimeFluentBuilder::new(self.handle.clone())
19    }
20}