Struct aws_sdk_opsworkscm::types::builders::ServerEventBuilder
source · #[non_exhaustive]pub struct ServerEventBuilder { /* private fields */ }
Expand description
A builder for ServerEvent
.
Implementations§
source§impl ServerEventBuilder
impl ServerEventBuilder
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The time when the event occurred.
sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The time when the event occurred.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The time when the event occurred.
sourcepub fn server_name(self, input: impl Into<String>) -> Self
pub fn server_name(self, input: impl Into<String>) -> Self
The name of the server on or for which the event occurred.
sourcepub fn set_server_name(self, input: Option<String>) -> Self
pub fn set_server_name(self, input: Option<String>) -> Self
The name of the server on or for which the event occurred.
sourcepub fn get_server_name(&self) -> &Option<String>
pub fn get_server_name(&self) -> &Option<String>
The name of the server on or for which the event occurred.
sourcepub fn message(self, input: impl Into<String>) -> Self
pub fn message(self, input: impl Into<String>) -> Self
A human-readable informational or status message.
sourcepub fn set_message(self, input: Option<String>) -> Self
pub fn set_message(self, input: Option<String>) -> Self
A human-readable informational or status message.
sourcepub fn get_message(&self) -> &Option<String>
pub fn get_message(&self) -> &Option<String>
A human-readable informational or status message.
sourcepub fn log_url(self, input: impl Into<String>) -> Self
pub fn log_url(self, input: impl Into<String>) -> Self
The Amazon S3 URL of the event's log file.
sourcepub fn set_log_url(self, input: Option<String>) -> Self
pub fn set_log_url(self, input: Option<String>) -> Self
The Amazon S3 URL of the event's log file.
sourcepub fn get_log_url(&self) -> &Option<String>
pub fn get_log_url(&self) -> &Option<String>
The Amazon S3 URL of the event's log file.
sourcepub fn build(self) -> ServerEvent
pub fn build(self) -> ServerEvent
Consumes the builder and constructs a ServerEvent
.
Trait Implementations§
source§impl Clone for ServerEventBuilder
impl Clone for ServerEventBuilder
source§fn clone(&self) -> ServerEventBuilder
fn clone(&self) -> ServerEventBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ServerEventBuilder
impl Debug for ServerEventBuilder
source§impl Default for ServerEventBuilder
impl Default for ServerEventBuilder
source§fn default() -> ServerEventBuilder
fn default() -> ServerEventBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ServerEventBuilder
impl PartialEq for ServerEventBuilder
source§fn eq(&self, other: &ServerEventBuilder) -> bool
fn eq(&self, other: &ServerEventBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ServerEventBuilder
Auto Trait Implementations§
impl Freeze for ServerEventBuilder
impl RefUnwindSafe for ServerEventBuilder
impl Send for ServerEventBuilder
impl Sync for ServerEventBuilder
impl Unpin for ServerEventBuilder
impl UnwindSafe for ServerEventBuilder
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.