Struct aws_sdk_lightsail::types::builders::OperationBuilder
source · #[non_exhaustive]pub struct OperationBuilder { /* private fields */ }
Expand description
A builder for Operation
.
Implementations§
source§impl OperationBuilder
impl OperationBuilder
sourcepub fn resource_name(self, input: impl Into<String>) -> Self
pub fn resource_name(self, input: impl Into<String>) -> Self
The resource name.
sourcepub fn set_resource_name(self, input: Option<String>) -> Self
pub fn set_resource_name(self, input: Option<String>) -> Self
The resource name.
sourcepub fn get_resource_name(&self) -> &Option<String>
pub fn get_resource_name(&self) -> &Option<String>
The resource name.
sourcepub fn resource_type(self, input: ResourceType) -> Self
pub fn resource_type(self, input: ResourceType) -> Self
The resource type.
sourcepub fn set_resource_type(self, input: Option<ResourceType>) -> Self
pub fn set_resource_type(self, input: Option<ResourceType>) -> Self
The resource type.
sourcepub fn get_resource_type(&self) -> &Option<ResourceType>
pub fn get_resource_type(&self) -> &Option<ResourceType>
The resource type.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The timestamp when the operation was initialized (1479816991.349
).
sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The timestamp when the operation was initialized (1479816991.349
).
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The timestamp when the operation was initialized (1479816991.349
).
sourcepub fn location(self, input: ResourceLocation) -> Self
pub fn location(self, input: ResourceLocation) -> Self
The Amazon Web Services Region and Availability Zone.
sourcepub fn set_location(self, input: Option<ResourceLocation>) -> Self
pub fn set_location(self, input: Option<ResourceLocation>) -> Self
The Amazon Web Services Region and Availability Zone.
sourcepub fn get_location(&self) -> &Option<ResourceLocation>
pub fn get_location(&self) -> &Option<ResourceLocation>
The Amazon Web Services Region and Availability Zone.
sourcepub fn is_terminal(self, input: bool) -> Self
pub fn is_terminal(self, input: bool) -> Self
A Boolean value indicating whether the operation is terminal.
sourcepub fn set_is_terminal(self, input: Option<bool>) -> Self
pub fn set_is_terminal(self, input: Option<bool>) -> Self
A Boolean value indicating whether the operation is terminal.
sourcepub fn get_is_terminal(&self) -> &Option<bool>
pub fn get_is_terminal(&self) -> &Option<bool>
A Boolean value indicating whether the operation is terminal.
sourcepub fn operation_details(self, input: impl Into<String>) -> Self
pub fn operation_details(self, input: impl Into<String>) -> Self
Details about the operation (Debian-1GB-Ohio-1
).
sourcepub fn set_operation_details(self, input: Option<String>) -> Self
pub fn set_operation_details(self, input: Option<String>) -> Self
Details about the operation (Debian-1GB-Ohio-1
).
sourcepub fn get_operation_details(&self) -> &Option<String>
pub fn get_operation_details(&self) -> &Option<String>
Details about the operation (Debian-1GB-Ohio-1
).
sourcepub fn operation_type(self, input: OperationType) -> Self
pub fn operation_type(self, input: OperationType) -> Self
The type of operation.
sourcepub fn set_operation_type(self, input: Option<OperationType>) -> Self
pub fn set_operation_type(self, input: Option<OperationType>) -> Self
The type of operation.
sourcepub fn get_operation_type(&self) -> &Option<OperationType>
pub fn get_operation_type(&self) -> &Option<OperationType>
The type of operation.
sourcepub fn status(self, input: OperationStatus) -> Self
pub fn status(self, input: OperationStatus) -> Self
The status of the operation.
sourcepub fn set_status(self, input: Option<OperationStatus>) -> Self
pub fn set_status(self, input: Option<OperationStatus>) -> Self
The status of the operation.
sourcepub fn get_status(&self) -> &Option<OperationStatus>
pub fn get_status(&self) -> &Option<OperationStatus>
The status of the operation.
sourcepub fn status_changed_at(self, input: DateTime) -> Self
pub fn status_changed_at(self, input: DateTime) -> Self
The timestamp when the status was changed (1479816991.349
).
sourcepub fn set_status_changed_at(self, input: Option<DateTime>) -> Self
pub fn set_status_changed_at(self, input: Option<DateTime>) -> Self
The timestamp when the status was changed (1479816991.349
).
sourcepub fn get_status_changed_at(&self) -> &Option<DateTime>
pub fn get_status_changed_at(&self) -> &Option<DateTime>
The timestamp when the status was changed (1479816991.349
).
sourcepub fn error_code(self, input: impl Into<String>) -> Self
pub fn error_code(self, input: impl Into<String>) -> Self
The error code.
sourcepub fn set_error_code(self, input: Option<String>) -> Self
pub fn set_error_code(self, input: Option<String>) -> Self
The error code.
sourcepub fn get_error_code(&self) -> &Option<String>
pub fn get_error_code(&self) -> &Option<String>
The error code.
sourcepub fn error_details(self, input: impl Into<String>) -> Self
pub fn error_details(self, input: impl Into<String>) -> Self
The error details.
sourcepub fn set_error_details(self, input: Option<String>) -> Self
pub fn set_error_details(self, input: Option<String>) -> Self
The error details.
sourcepub fn get_error_details(&self) -> &Option<String>
pub fn get_error_details(&self) -> &Option<String>
The error details.
Trait Implementations§
source§impl Clone for OperationBuilder
impl Clone for OperationBuilder
source§fn clone(&self) -> OperationBuilder
fn clone(&self) -> OperationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OperationBuilder
impl Debug for OperationBuilder
source§impl Default for OperationBuilder
impl Default for OperationBuilder
source§fn default() -> OperationBuilder
fn default() -> OperationBuilder
source§impl PartialEq for OperationBuilder
impl PartialEq for OperationBuilder
source§fn eq(&self, other: &OperationBuilder) -> bool
fn eq(&self, other: &OperationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for OperationBuilder
Auto Trait Implementations§
impl Freeze for OperationBuilder
impl RefUnwindSafe for OperationBuilder
impl Send for OperationBuilder
impl Sync for OperationBuilder
impl Unpin for OperationBuilder
impl UnwindSafe for OperationBuilder
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> 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