Struct aws_sdk_ec2::types::builders::DataResponseBuilder
source · #[non_exhaustive]pub struct DataResponseBuilder { /* private fields */ }
Expand description
A builder for DataResponse
.
Implementations§
source§impl DataResponseBuilder
impl DataResponseBuilder
sourcepub fn source(self, input: impl Into<String>) -> Self
pub fn source(self, input: impl Into<String>) -> Self
The Region or Availability Zone that's the source for the data query. For example, us-east-1
.
sourcepub fn set_source(self, input: Option<String>) -> Self
pub fn set_source(self, input: Option<String>) -> Self
The Region or Availability Zone that's the source for the data query. For example, us-east-1
.
sourcepub fn get_source(&self) -> &Option<String>
pub fn get_source(&self) -> &Option<String>
The Region or Availability Zone that's the source for the data query. For example, us-east-1
.
sourcepub fn destination(self, input: impl Into<String>) -> Self
pub fn destination(self, input: impl Into<String>) -> Self
The Region or Availability Zone that's the destination for the data query. For example, eu-west-1
.
sourcepub fn set_destination(self, input: Option<String>) -> Self
pub fn set_destination(self, input: Option<String>) -> Self
The Region or Availability Zone that's the destination for the data query. For example, eu-west-1
.
sourcepub fn get_destination(&self) -> &Option<String>
pub fn get_destination(&self) -> &Option<String>
The Region or Availability Zone that's the destination for the data query. For example, eu-west-1
.
sourcepub fn metric(self, input: MetricType) -> Self
pub fn metric(self, input: MetricType) -> Self
The metric used for the network performance request. Only aggregate-latency
is supported, which shows network latency during a specified period.
sourcepub fn set_metric(self, input: Option<MetricType>) -> Self
pub fn set_metric(self, input: Option<MetricType>) -> Self
The metric used for the network performance request. Only aggregate-latency
is supported, which shows network latency during a specified period.
sourcepub fn get_metric(&self) -> &Option<MetricType>
pub fn get_metric(&self) -> &Option<MetricType>
The metric used for the network performance request. Only aggregate-latency
is supported, which shows network latency during a specified period.
sourcepub fn statistic(self, input: StatisticType) -> Self
pub fn statistic(self, input: StatisticType) -> Self
The statistic used for the network performance request.
sourcepub fn set_statistic(self, input: Option<StatisticType>) -> Self
pub fn set_statistic(self, input: Option<StatisticType>) -> Self
The statistic used for the network performance request.
sourcepub fn get_statistic(&self) -> &Option<StatisticType>
pub fn get_statistic(&self) -> &Option<StatisticType>
The statistic used for the network performance request.
sourcepub fn period(self, input: PeriodType) -> Self
pub fn period(self, input: PeriodType) -> Self
The period used for the network performance request.
sourcepub fn set_period(self, input: Option<PeriodType>) -> Self
pub fn set_period(self, input: Option<PeriodType>) -> Self
The period used for the network performance request.
sourcepub fn get_period(&self) -> &Option<PeriodType>
pub fn get_period(&self) -> &Option<PeriodType>
The period used for the network performance request.
sourcepub fn metric_points(self, input: MetricPoint) -> Self
pub fn metric_points(self, input: MetricPoint) -> Self
Appends an item to metric_points
.
To override the contents of this collection use set_metric_points
.
A list of MetricPoint
objects.
sourcepub fn set_metric_points(self, input: Option<Vec<MetricPoint>>) -> Self
pub fn set_metric_points(self, input: Option<Vec<MetricPoint>>) -> Self
A list of MetricPoint
objects.
sourcepub fn get_metric_points(&self) -> &Option<Vec<MetricPoint>>
pub fn get_metric_points(&self) -> &Option<Vec<MetricPoint>>
A list of MetricPoint
objects.
sourcepub fn build(self) -> DataResponse
pub fn build(self) -> DataResponse
Consumes the builder and constructs a DataResponse
.
Trait Implementations§
source§impl Clone for DataResponseBuilder
impl Clone for DataResponseBuilder
source§fn clone(&self) -> DataResponseBuilder
fn clone(&self) -> DataResponseBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DataResponseBuilder
impl Debug for DataResponseBuilder
source§impl Default for DataResponseBuilder
impl Default for DataResponseBuilder
source§fn default() -> DataResponseBuilder
fn default() -> DataResponseBuilder
source§impl PartialEq for DataResponseBuilder
impl PartialEq for DataResponseBuilder
source§fn eq(&self, other: &DataResponseBuilder) -> bool
fn eq(&self, other: &DataResponseBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DataResponseBuilder
Auto Trait Implementations§
impl Freeze for DataResponseBuilder
impl RefUnwindSafe for DataResponseBuilder
impl Send for DataResponseBuilder
impl Sync for DataResponseBuilder
impl Unpin for DataResponseBuilder
impl UnwindSafe for DataResponseBuilder
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