Struct aws_sdk_opensearch::types::builders::ScheduledActionBuilder
source · #[non_exhaustive]pub struct ScheduledActionBuilder { /* private fields */ }Expand description
A builder for ScheduledAction.
Implementations§
source§impl ScheduledActionBuilder
impl ScheduledActionBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The unique identifier of the scheduled action.
This field is required.sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The unique identifier of the scheduled action.
sourcepub fn type(self, input: ActionType) -> Self
pub fn type(self, input: ActionType) -> Self
The type of action that will be taken on the domain.
This field is required.sourcepub fn set_type(self, input: Option<ActionType>) -> Self
pub fn set_type(self, input: Option<ActionType>) -> Self
The type of action that will be taken on the domain.
sourcepub fn get_type(&self) -> &Option<ActionType>
pub fn get_type(&self) -> &Option<ActionType>
The type of action that will be taken on the domain.
sourcepub fn severity(self, input: ActionSeverity) -> Self
pub fn severity(self, input: ActionSeverity) -> Self
The severity of the action.
This field is required.sourcepub fn set_severity(self, input: Option<ActionSeverity>) -> Self
pub fn set_severity(self, input: Option<ActionSeverity>) -> Self
The severity of the action.
sourcepub fn get_severity(&self) -> &Option<ActionSeverity>
pub fn get_severity(&self) -> &Option<ActionSeverity>
The severity of the action.
sourcepub fn scheduled_time(self, input: i64) -> Self
pub fn scheduled_time(self, input: i64) -> Self
The time when the change is scheduled to happen.
This field is required.sourcepub fn set_scheduled_time(self, input: Option<i64>) -> Self
pub fn set_scheduled_time(self, input: Option<i64>) -> Self
The time when the change is scheduled to happen.
sourcepub fn get_scheduled_time(&self) -> &Option<i64>
pub fn get_scheduled_time(&self) -> &Option<i64>
The time when the change is scheduled to happen.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the action to be taken.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the action to be taken.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description of the action to be taken.
sourcepub fn scheduled_by(self, input: ScheduledBy) -> Self
pub fn scheduled_by(self, input: ScheduledBy) -> Self
Whether the action was scheduled manually (CUSTOMER, or by OpenSearch Service automatically (SYSTEM).
sourcepub fn set_scheduled_by(self, input: Option<ScheduledBy>) -> Self
pub fn set_scheduled_by(self, input: Option<ScheduledBy>) -> Self
Whether the action was scheduled manually (CUSTOMER, or by OpenSearch Service automatically (SYSTEM).
sourcepub fn get_scheduled_by(&self) -> &Option<ScheduledBy>
pub fn get_scheduled_by(&self) -> &Option<ScheduledBy>
Whether the action was scheduled manually (CUSTOMER, or by OpenSearch Service automatically (SYSTEM).
sourcepub fn status(self, input: ActionStatus) -> Self
pub fn status(self, input: ActionStatus) -> Self
The current status of the scheduled action.
sourcepub fn set_status(self, input: Option<ActionStatus>) -> Self
pub fn set_status(self, input: Option<ActionStatus>) -> Self
The current status of the scheduled action.
sourcepub fn get_status(&self) -> &Option<ActionStatus>
pub fn get_status(&self) -> &Option<ActionStatus>
The current status of the scheduled action.
sourcepub fn set_mandatory(self, input: Option<bool>) -> Self
pub fn set_mandatory(self, input: Option<bool>) -> Self
Whether the action is required or optional.
sourcepub fn get_mandatory(&self) -> &Option<bool>
pub fn get_mandatory(&self) -> &Option<bool>
Whether the action is required or optional.
sourcepub fn cancellable(self, input: bool) -> Self
pub fn cancellable(self, input: bool) -> Self
Whether or not the scheduled action is cancellable.
sourcepub fn set_cancellable(self, input: Option<bool>) -> Self
pub fn set_cancellable(self, input: Option<bool>) -> Self
Whether or not the scheduled action is cancellable.
sourcepub fn get_cancellable(&self) -> &Option<bool>
pub fn get_cancellable(&self) -> &Option<bool>
Whether or not the scheduled action is cancellable.
sourcepub fn build(self) -> Result<ScheduledAction, BuildError>
pub fn build(self) -> Result<ScheduledAction, BuildError>
Consumes the builder and constructs a ScheduledAction.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ScheduledActionBuilder
impl Clone for ScheduledActionBuilder
source§fn clone(&self) -> ScheduledActionBuilder
fn clone(&self) -> ScheduledActionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ScheduledActionBuilder
impl Debug for ScheduledActionBuilder
source§impl Default for ScheduledActionBuilder
impl Default for ScheduledActionBuilder
source§fn default() -> ScheduledActionBuilder
fn default() -> ScheduledActionBuilder
source§impl PartialEq for ScheduledActionBuilder
impl PartialEq for ScheduledActionBuilder
source§fn eq(&self, other: &ScheduledActionBuilder) -> bool
fn eq(&self, other: &ScheduledActionBuilder) -> bool
self and other values to be equal, and is used
by ==.