Struct aws_sdk_opensearch::operation::update_scheduled_action::builders::UpdateScheduledActionInputBuilder
source · #[non_exhaustive]pub struct UpdateScheduledActionInputBuilder { /* private fields */ }Expand description
A builder for UpdateScheduledActionInput.
Implementations§
source§impl UpdateScheduledActionInputBuilder
impl UpdateScheduledActionInputBuilder
sourcepub fn domain_name(self, input: impl Into<String>) -> Self
pub fn domain_name(self, input: impl Into<String>) -> Self
The name of the domain to reschedule an action for.
This field is required.sourcepub fn set_domain_name(self, input: Option<String>) -> Self
pub fn set_domain_name(self, input: Option<String>) -> Self
The name of the domain to reschedule an action for.
sourcepub fn get_domain_name(&self) -> &Option<String>
pub fn get_domain_name(&self) -> &Option<String>
The name of the domain to reschedule an action for.
sourcepub fn action_id(self, input: impl Into<String>) -> Self
pub fn action_id(self, input: impl Into<String>) -> Self
The unique identifier of the action to reschedule. To retrieve this ID, send a ListScheduledActions request.
This field is required.sourcepub fn set_action_id(self, input: Option<String>) -> Self
pub fn set_action_id(self, input: Option<String>) -> Self
The unique identifier of the action to reschedule. To retrieve this ID, send a ListScheduledActions request.
sourcepub fn get_action_id(&self) -> &Option<String>
pub fn get_action_id(&self) -> &Option<String>
The unique identifier of the action to reschedule. To retrieve this ID, send a ListScheduledActions request.
sourcepub fn action_type(self, input: ActionType) -> Self
pub fn action_type(self, input: ActionType) -> Self
The type of action to reschedule. Can be one of SERVICE_SOFTWARE_UPDATE, JVM_HEAP_SIZE_TUNING, or JVM_YOUNG_GEN_TUNING. To retrieve this value, send a ListScheduledActions request.
sourcepub fn set_action_type(self, input: Option<ActionType>) -> Self
pub fn set_action_type(self, input: Option<ActionType>) -> Self
The type of action to reschedule. Can be one of SERVICE_SOFTWARE_UPDATE, JVM_HEAP_SIZE_TUNING, or JVM_YOUNG_GEN_TUNING. To retrieve this value, send a ListScheduledActions request.
sourcepub fn get_action_type(&self) -> &Option<ActionType>
pub fn get_action_type(&self) -> &Option<ActionType>
The type of action to reschedule. Can be one of SERVICE_SOFTWARE_UPDATE, JVM_HEAP_SIZE_TUNING, or JVM_YOUNG_GEN_TUNING. To retrieve this value, send a ListScheduledActions request.
sourcepub fn schedule_at(self, input: ScheduleAt) -> Self
pub fn schedule_at(self, input: ScheduleAt) -> Self
When to schedule the action.
-
NOW- Immediately schedules the update to happen in the current hour if there's capacity available. -
TIMESTAMP- Lets you specify a custom date and time to apply the update. If you specify this value, you must also provide a value forDesiredStartTime. -
OFF_PEAK_WINDOW- Marks the action to be picked up during an upcoming off-peak window. There's no guarantee that the change will be implemented during the next immediate window. Depending on capacity, it might happen in subsequent days.
sourcepub fn set_schedule_at(self, input: Option<ScheduleAt>) -> Self
pub fn set_schedule_at(self, input: Option<ScheduleAt>) -> Self
When to schedule the action.
-
NOW- Immediately schedules the update to happen in the current hour if there's capacity available. -
TIMESTAMP- Lets you specify a custom date and time to apply the update. If you specify this value, you must also provide a value forDesiredStartTime. -
OFF_PEAK_WINDOW- Marks the action to be picked up during an upcoming off-peak window. There's no guarantee that the change will be implemented during the next immediate window. Depending on capacity, it might happen in subsequent days.
sourcepub fn get_schedule_at(&self) -> &Option<ScheduleAt>
pub fn get_schedule_at(&self) -> &Option<ScheduleAt>
When to schedule the action.
-
NOW- Immediately schedules the update to happen in the current hour if there's capacity available. -
TIMESTAMP- Lets you specify a custom date and time to apply the update. If you specify this value, you must also provide a value forDesiredStartTime. -
OFF_PEAK_WINDOW- Marks the action to be picked up during an upcoming off-peak window. There's no guarantee that the change will be implemented during the next immediate window. Depending on capacity, it might happen in subsequent days.
sourcepub fn desired_start_time(self, input: i64) -> Self
pub fn desired_start_time(self, input: i64) -> Self
The time to implement the change, in Coordinated Universal Time (UTC). Only specify this parameter if you set ScheduleAt to TIMESTAMP.
sourcepub fn set_desired_start_time(self, input: Option<i64>) -> Self
pub fn set_desired_start_time(self, input: Option<i64>) -> Self
The time to implement the change, in Coordinated Universal Time (UTC). Only specify this parameter if you set ScheduleAt to TIMESTAMP.
sourcepub fn get_desired_start_time(&self) -> &Option<i64>
pub fn get_desired_start_time(&self) -> &Option<i64>
The time to implement the change, in Coordinated Universal Time (UTC). Only specify this parameter if you set ScheduleAt to TIMESTAMP.
sourcepub fn build(self) -> Result<UpdateScheduledActionInput, BuildError>
pub fn build(self) -> Result<UpdateScheduledActionInput, BuildError>
Consumes the builder and constructs a UpdateScheduledActionInput.
source§impl UpdateScheduledActionInputBuilder
impl UpdateScheduledActionInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<UpdateScheduledActionOutput, SdkError<UpdateScheduledActionError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<UpdateScheduledActionOutput, SdkError<UpdateScheduledActionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateScheduledActionInputBuilder
impl Clone for UpdateScheduledActionInputBuilder
source§fn clone(&self) -> UpdateScheduledActionInputBuilder
fn clone(&self) -> UpdateScheduledActionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for UpdateScheduledActionInputBuilder
impl Default for UpdateScheduledActionInputBuilder
source§fn default() -> UpdateScheduledActionInputBuilder
fn default() -> UpdateScheduledActionInputBuilder
source§impl PartialEq for UpdateScheduledActionInputBuilder
impl PartialEq for UpdateScheduledActionInputBuilder
source§fn eq(&self, other: &UpdateScheduledActionInputBuilder) -> bool
fn eq(&self, other: &UpdateScheduledActionInputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for UpdateScheduledActionInputBuilder
Auto Trait Implementations§
impl Freeze for UpdateScheduledActionInputBuilder
impl RefUnwindSafe for UpdateScheduledActionInputBuilder
impl Send for UpdateScheduledActionInputBuilder
impl Sync for UpdateScheduledActionInputBuilder
impl Unpin for UpdateScheduledActionInputBuilder
impl UnwindSafe for UpdateScheduledActionInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more