#[non_exhaustive]pub struct MonitoredResourceInfoBuilder { /* private fields */ }
Expand description
A builder for MonitoredResourceInfo
.
Implementations§
source§impl MonitoredResourceInfoBuilder
impl MonitoredResourceInfoBuilder
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the resource being monitored.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the resource being monitored.
sourcepub fn get_arn(&self) -> &Option<String>
pub fn get_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the resource being monitored.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the Lightsail resource being monitored.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the Lightsail resource being monitored.
sourcepub fn resource_type(self, input: ResourceType) -> Self
pub fn resource_type(self, input: ResourceType) -> Self
The Lightsail resource type of the resource being monitored.
Instances, load balancers, and relational databases are the only Lightsail resources that can currently be monitored by alarms.
sourcepub fn set_resource_type(self, input: Option<ResourceType>) -> Self
pub fn set_resource_type(self, input: Option<ResourceType>) -> Self
The Lightsail resource type of the resource being monitored.
Instances, load balancers, and relational databases are the only Lightsail resources that can currently be monitored by alarms.
sourcepub fn get_resource_type(&self) -> &Option<ResourceType>
pub fn get_resource_type(&self) -> &Option<ResourceType>
The Lightsail resource type of the resource being monitored.
Instances, load balancers, and relational databases are the only Lightsail resources that can currently be monitored by alarms.
sourcepub fn build(self) -> MonitoredResourceInfo
pub fn build(self) -> MonitoredResourceInfo
Consumes the builder and constructs a MonitoredResourceInfo
.
Trait Implementations§
source§impl Clone for MonitoredResourceInfoBuilder
impl Clone for MonitoredResourceInfoBuilder
source§fn clone(&self) -> MonitoredResourceInfoBuilder
fn clone(&self) -> MonitoredResourceInfoBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MonitoredResourceInfoBuilder
impl Debug for MonitoredResourceInfoBuilder
source§impl Default for MonitoredResourceInfoBuilder
impl Default for MonitoredResourceInfoBuilder
source§fn default() -> MonitoredResourceInfoBuilder
fn default() -> MonitoredResourceInfoBuilder
source§impl PartialEq for MonitoredResourceInfoBuilder
impl PartialEq for MonitoredResourceInfoBuilder
source§fn eq(&self, other: &MonitoredResourceInfoBuilder) -> bool
fn eq(&self, other: &MonitoredResourceInfoBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MonitoredResourceInfoBuilder
Auto Trait Implementations§
impl Freeze for MonitoredResourceInfoBuilder
impl RefUnwindSafe for MonitoredResourceInfoBuilder
impl Send for MonitoredResourceInfoBuilder
impl Sync for MonitoredResourceInfoBuilder
impl Unpin for MonitoredResourceInfoBuilder
impl UnwindSafe for MonitoredResourceInfoBuilder
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