Struct aws_sdk_ec2::model::instance_status_event::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for InstanceStatusEvent
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn instance_event_id(self, input: impl Into<String>) -> Self
pub fn instance_event_id(self, input: impl Into<String>) -> Self
The ID of the event.
sourcepub fn set_instance_event_id(self, input: Option<String>) -> Self
pub fn set_instance_event_id(self, input: Option<String>) -> Self
The ID of the event.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the event.
After a scheduled event is completed, it can still be described for up to a week. If the event has been completed, this description starts with the following text: [Completed].
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the event.
After a scheduled event is completed, it can still be described for up to a week. If the event has been completed, this description starts with the following text: [Completed].
sourcepub fn set_not_after(self, input: Option<DateTime>) -> Self
pub fn set_not_after(self, input: Option<DateTime>) -> Self
The latest scheduled end time for the event.
sourcepub fn not_before(self, input: DateTime) -> Self
pub fn not_before(self, input: DateTime) -> Self
The earliest scheduled start time for the event.
sourcepub fn set_not_before(self, input: Option<DateTime>) -> Self
pub fn set_not_before(self, input: Option<DateTime>) -> Self
The earliest scheduled start time for the event.
sourcepub fn not_before_deadline(self, input: DateTime) -> Self
pub fn not_before_deadline(self, input: DateTime) -> Self
The deadline for starting the event.
sourcepub fn set_not_before_deadline(self, input: Option<DateTime>) -> Self
pub fn set_not_before_deadline(self, input: Option<DateTime>) -> Self
The deadline for starting the event.
sourcepub fn build(self) -> InstanceStatusEvent
pub fn build(self) -> InstanceStatusEvent
Consumes the builder and constructs a InstanceStatusEvent
.