Struct aws_sdk_ssm::operation::update_maintenance_window::builders::UpdateMaintenanceWindowInputBuilder
source · #[non_exhaustive]pub struct UpdateMaintenanceWindowInputBuilder { /* private fields */ }
Expand description
A builder for UpdateMaintenanceWindowInput
.
Implementations§
source§impl UpdateMaintenanceWindowInputBuilder
impl UpdateMaintenanceWindowInputBuilder
sourcepub fn window_id(self, input: impl Into<String>) -> Self
pub fn window_id(self, input: impl Into<String>) -> Self
The ID of the maintenance window to update.
This field is required.sourcepub fn set_window_id(self, input: Option<String>) -> Self
pub fn set_window_id(self, input: Option<String>) -> Self
The ID of the maintenance window to update.
sourcepub fn get_window_id(&self) -> &Option<String>
pub fn get_window_id(&self) -> &Option<String>
The ID of the maintenance window to update.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
An optional description for the update request.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
An optional description for the update request.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
An optional description for the update request.
sourcepub fn start_date(self, input: impl Into<String>) -> Self
pub fn start_date(self, input: impl Into<String>) -> Self
The date and time, in ISO-8601 Extended format, for when you want the maintenance window to become active. StartDate
allows you to delay activation of the maintenance window until the specified future date.
sourcepub fn set_start_date(self, input: Option<String>) -> Self
pub fn set_start_date(self, input: Option<String>) -> Self
The date and time, in ISO-8601 Extended format, for when you want the maintenance window to become active. StartDate
allows you to delay activation of the maintenance window until the specified future date.
sourcepub fn get_start_date(&self) -> &Option<String>
pub fn get_start_date(&self) -> &Option<String>
The date and time, in ISO-8601 Extended format, for when you want the maintenance window to become active. StartDate
allows you to delay activation of the maintenance window until the specified future date.
sourcepub fn end_date(self, input: impl Into<String>) -> Self
pub fn end_date(self, input: impl Into<String>) -> Self
The date and time, in ISO-8601 Extended format, for when you want the maintenance window to become inactive. EndDate
allows you to set a date and time in the future when the maintenance window will no longer run.
sourcepub fn set_end_date(self, input: Option<String>) -> Self
pub fn set_end_date(self, input: Option<String>) -> Self
The date and time, in ISO-8601 Extended format, for when you want the maintenance window to become inactive. EndDate
allows you to set a date and time in the future when the maintenance window will no longer run.
sourcepub fn get_end_date(&self) -> &Option<String>
pub fn get_end_date(&self) -> &Option<String>
The date and time, in ISO-8601 Extended format, for when you want the maintenance window to become inactive. EndDate
allows you to set a date and time in the future when the maintenance window will no longer run.
sourcepub fn schedule(self, input: impl Into<String>) -> Self
pub fn schedule(self, input: impl Into<String>) -> Self
The schedule of the maintenance window in the form of a cron or rate expression.
sourcepub fn set_schedule(self, input: Option<String>) -> Self
pub fn set_schedule(self, input: Option<String>) -> Self
The schedule of the maintenance window in the form of a cron or rate expression.
sourcepub fn get_schedule(&self) -> &Option<String>
pub fn get_schedule(&self) -> &Option<String>
The schedule of the maintenance window in the form of a cron or rate expression.
sourcepub fn schedule_timezone(self, input: impl Into<String>) -> Self
pub fn schedule_timezone(self, input: impl Into<String>) -> Self
The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA website.
sourcepub fn set_schedule_timezone(self, input: Option<String>) -> Self
pub fn set_schedule_timezone(self, input: Option<String>) -> Self
The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA website.
sourcepub fn get_schedule_timezone(&self) -> &Option<String>
pub fn get_schedule_timezone(&self) -> &Option<String>
The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA website.
sourcepub fn schedule_offset(self, input: i32) -> Self
pub fn schedule_offset(self, input: i32) -> Self
The number of days to wait after the date and time specified by a cron expression before running the maintenance window.
For example, the following cron expression schedules a maintenance window to run the third Tuesday of every month at 11:30 PM.
cron(30 23 ? * TUE#3 *)
If the schedule offset is 2
, the maintenance window won't run until two days later.
sourcepub fn set_schedule_offset(self, input: Option<i32>) -> Self
pub fn set_schedule_offset(self, input: Option<i32>) -> Self
The number of days to wait after the date and time specified by a cron expression before running the maintenance window.
For example, the following cron expression schedules a maintenance window to run the third Tuesday of every month at 11:30 PM.
cron(30 23 ? * TUE#3 *)
If the schedule offset is 2
, the maintenance window won't run until two days later.
sourcepub fn get_schedule_offset(&self) -> &Option<i32>
pub fn get_schedule_offset(&self) -> &Option<i32>
The number of days to wait after the date and time specified by a cron expression before running the maintenance window.
For example, the following cron expression schedules a maintenance window to run the third Tuesday of every month at 11:30 PM.
cron(30 23 ? * TUE#3 *)
If the schedule offset is 2
, the maintenance window won't run until two days later.
sourcepub fn set_duration(self, input: Option<i32>) -> Self
pub fn set_duration(self, input: Option<i32>) -> Self
The duration of the maintenance window in hours.
sourcepub fn get_duration(&self) -> &Option<i32>
pub fn get_duration(&self) -> &Option<i32>
The duration of the maintenance window in hours.
sourcepub fn cutoff(self, input: i32) -> Self
pub fn cutoff(self, input: i32) -> Self
The number of hours before the end of the maintenance window that Amazon Web Services Systems Manager stops scheduling new tasks for execution.
sourcepub fn set_cutoff(self, input: Option<i32>) -> Self
pub fn set_cutoff(self, input: Option<i32>) -> Self
The number of hours before the end of the maintenance window that Amazon Web Services Systems Manager stops scheduling new tasks for execution.
sourcepub fn get_cutoff(&self) -> &Option<i32>
pub fn get_cutoff(&self) -> &Option<i32>
The number of hours before the end of the maintenance window that Amazon Web Services Systems Manager stops scheduling new tasks for execution.
sourcepub fn allow_unassociated_targets(self, input: bool) -> Self
pub fn allow_unassociated_targets(self, input: bool) -> Self
Whether targets must be registered with the maintenance window before tasks can be defined for those targets.
sourcepub fn set_allow_unassociated_targets(self, input: Option<bool>) -> Self
pub fn set_allow_unassociated_targets(self, input: Option<bool>) -> Self
Whether targets must be registered with the maintenance window before tasks can be defined for those targets.
sourcepub fn get_allow_unassociated_targets(&self) -> &Option<bool>
pub fn get_allow_unassociated_targets(&self) -> &Option<bool>
Whether targets must be registered with the maintenance window before tasks can be defined for those targets.
sourcepub fn set_enabled(self, input: Option<bool>) -> Self
pub fn set_enabled(self, input: Option<bool>) -> Self
Whether the maintenance window is enabled.
sourcepub fn get_enabled(&self) -> &Option<bool>
pub fn get_enabled(&self) -> &Option<bool>
Whether the maintenance window is enabled.
sourcepub fn replace(self, input: bool) -> Self
pub fn replace(self, input: bool) -> Self
If True
, then all fields that are required by the CreateMaintenanceWindow
operation are also required for this API request. Optional fields that aren't specified are set to null.
sourcepub fn set_replace(self, input: Option<bool>) -> Self
pub fn set_replace(self, input: Option<bool>) -> Self
If True
, then all fields that are required by the CreateMaintenanceWindow
operation are also required for this API request. Optional fields that aren't specified are set to null.
sourcepub fn get_replace(&self) -> &Option<bool>
pub fn get_replace(&self) -> &Option<bool>
If True
, then all fields that are required by the CreateMaintenanceWindow
operation are also required for this API request. Optional fields that aren't specified are set to null.
sourcepub fn build(self) -> Result<UpdateMaintenanceWindowInput, BuildError>
pub fn build(self) -> Result<UpdateMaintenanceWindowInput, BuildError>
Consumes the builder and constructs a UpdateMaintenanceWindowInput
.
source§impl UpdateMaintenanceWindowInputBuilder
impl UpdateMaintenanceWindowInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UpdateMaintenanceWindowOutput, SdkError<UpdateMaintenanceWindowError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UpdateMaintenanceWindowOutput, SdkError<UpdateMaintenanceWindowError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateMaintenanceWindowInputBuilder
impl Clone for UpdateMaintenanceWindowInputBuilder
source§fn clone(&self) -> UpdateMaintenanceWindowInputBuilder
fn clone(&self) -> UpdateMaintenanceWindowInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for UpdateMaintenanceWindowInputBuilder
impl Default for UpdateMaintenanceWindowInputBuilder
source§fn default() -> UpdateMaintenanceWindowInputBuilder
fn default() -> UpdateMaintenanceWindowInputBuilder
source§impl PartialEq for UpdateMaintenanceWindowInputBuilder
impl PartialEq for UpdateMaintenanceWindowInputBuilder
source§fn eq(&self, other: &UpdateMaintenanceWindowInputBuilder) -> bool
fn eq(&self, other: &UpdateMaintenanceWindowInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.