Struct aws_sdk_datasync::types::builders::ResourceMetricsBuilder
source · #[non_exhaustive]pub struct ResourceMetricsBuilder { /* private fields */ }
Expand description
A builder for ResourceMetrics
.
Implementations§
source§impl ResourceMetricsBuilder
impl ResourceMetricsBuilder
sourcepub fn timestamp(self, input: DateTime) -> Self
pub fn timestamp(self, input: DateTime) -> Self
The time when DataSync Discovery collected this information from the resource.
sourcepub fn set_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_timestamp(self, input: Option<DateTime>) -> Self
The time when DataSync Discovery collected this information from the resource.
sourcepub fn get_timestamp(&self) -> &Option<DateTime>
pub fn get_timestamp(&self) -> &Option<DateTime>
The time when DataSync Discovery collected this information from the resource.
sourcepub fn p95_metrics(self, input: P95Metrics) -> Self
pub fn p95_metrics(self, input: P95Metrics) -> Self
The types of performance data that DataSync Discovery collects about the on-premises storage system resource.
sourcepub fn set_p95_metrics(self, input: Option<P95Metrics>) -> Self
pub fn set_p95_metrics(self, input: Option<P95Metrics>) -> Self
The types of performance data that DataSync Discovery collects about the on-premises storage system resource.
sourcepub fn get_p95_metrics(&self) -> &Option<P95Metrics>
pub fn get_p95_metrics(&self) -> &Option<P95Metrics>
The types of performance data that DataSync Discovery collects about the on-premises storage system resource.
sourcepub fn capacity(self, input: Capacity) -> Self
pub fn capacity(self, input: Capacity) -> Self
The storage capacity of the on-premises storage system resource.
sourcepub fn set_capacity(self, input: Option<Capacity>) -> Self
pub fn set_capacity(self, input: Option<Capacity>) -> Self
The storage capacity of the on-premises storage system resource.
sourcepub fn get_capacity(&self) -> &Option<Capacity>
pub fn get_capacity(&self) -> &Option<Capacity>
The storage capacity of the on-premises storage system resource.
sourcepub fn resource_id(self, input: impl Into<String>) -> Self
pub fn resource_id(self, input: impl Into<String>) -> Self
The universally unique identifier (UUID) of the on-premises storage system resource.
sourcepub fn set_resource_id(self, input: Option<String>) -> Self
pub fn set_resource_id(self, input: Option<String>) -> Self
The universally unique identifier (UUID) of the on-premises storage system resource.
sourcepub fn get_resource_id(&self) -> &Option<String>
pub fn get_resource_id(&self) -> &Option<String>
The universally unique identifier (UUID) of the on-premises storage system resource.
sourcepub fn resource_type(self, input: DiscoveryResourceType) -> Self
pub fn resource_type(self, input: DiscoveryResourceType) -> Self
The type of on-premises storage system resource.
sourcepub fn set_resource_type(self, input: Option<DiscoveryResourceType>) -> Self
pub fn set_resource_type(self, input: Option<DiscoveryResourceType>) -> Self
The type of on-premises storage system resource.
sourcepub fn get_resource_type(&self) -> &Option<DiscoveryResourceType>
pub fn get_resource_type(&self) -> &Option<DiscoveryResourceType>
The type of on-premises storage system resource.
sourcepub fn build(self) -> ResourceMetrics
pub fn build(self) -> ResourceMetrics
Consumes the builder and constructs a ResourceMetrics
.
Trait Implementations§
source§impl Clone for ResourceMetricsBuilder
impl Clone for ResourceMetricsBuilder
source§fn clone(&self) -> ResourceMetricsBuilder
fn clone(&self) -> ResourceMetricsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ResourceMetricsBuilder
impl Debug for ResourceMetricsBuilder
source§impl Default for ResourceMetricsBuilder
impl Default for ResourceMetricsBuilder
source§fn default() -> ResourceMetricsBuilder
fn default() -> ResourceMetricsBuilder
source§impl PartialEq for ResourceMetricsBuilder
impl PartialEq for ResourceMetricsBuilder
source§fn eq(&self, other: &ResourceMetricsBuilder) -> bool
fn eq(&self, other: &ResourceMetricsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ResourceMetricsBuilder
Auto Trait Implementations§
impl Freeze for ResourceMetricsBuilder
impl RefUnwindSafe for ResourceMetricsBuilder
impl Send for ResourceMetricsBuilder
impl Sync for ResourceMetricsBuilder
impl Unpin for ResourceMetricsBuilder
impl UnwindSafe for ResourceMetricsBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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