Struct aws_sdk_ec2::types::builders::DataQueryBuilder
source · #[non_exhaustive]pub struct DataQueryBuilder { /* private fields */ }
Expand description
A builder for DataQuery
.
Implementations§
source§impl DataQueryBuilder
impl DataQueryBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
A user-defined ID associated with a data query that's returned in the dataResponse
identifying the query. For example, if you set the Id to MyQuery01
in the query, the dataResponse
identifies the query as MyQuery01
.
sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
A user-defined ID associated with a data query that's returned in the dataResponse
identifying the query. For example, if you set the Id to MyQuery01
in the query, the dataResponse
identifies the query as MyQuery01
.
sourcepub fn get_id(&self) -> &Option<String>
pub fn get_id(&self) -> &Option<String>
A user-defined ID associated with a data query that's returned in the dataResponse
identifying the query. For example, if you set the Id to MyQuery01
in the query, the dataResponse
identifies the query as MyQuery01
.
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 target for the data query. For example, eu-north-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 target for the data query. For example, eu-north-1
.
sourcepub fn get_destination(&self) -> &Option<String>
pub fn get_destination(&self) -> &Option<String>
The Region or Availability Zone that's the target for the data query. For example, eu-north-1
.
sourcepub fn metric(self, input: MetricType) -> Self
pub fn metric(self, input: MetricType) -> Self
The metric, aggregation-latency
, indicating that network latency is aggregated for the query. This is the only supported metric.
sourcepub fn set_metric(self, input: Option<MetricType>) -> Self
pub fn set_metric(self, input: Option<MetricType>) -> Self
The metric, aggregation-latency
, indicating that network latency is aggregated for the query. This is the only supported metric.
sourcepub fn get_metric(&self) -> &Option<MetricType>
pub fn get_metric(&self) -> &Option<MetricType>
The metric, aggregation-latency
, indicating that network latency is aggregated for the query. This is the only supported metric.
sourcepub fn statistic(self, input: StatisticType) -> Self
pub fn statistic(self, input: StatisticType) -> Self
The metric data aggregation period, p50
, between the specified startDate
and endDate
. For example, a metric of five_minutes
is the median of all the data points gathered within those five minutes. p50
is the only supported metric.
sourcepub fn set_statistic(self, input: Option<StatisticType>) -> Self
pub fn set_statistic(self, input: Option<StatisticType>) -> Self
The metric data aggregation period, p50
, between the specified startDate
and endDate
. For example, a metric of five_minutes
is the median of all the data points gathered within those five minutes. p50
is the only supported metric.
sourcepub fn get_statistic(&self) -> &Option<StatisticType>
pub fn get_statistic(&self) -> &Option<StatisticType>
The metric data aggregation period, p50
, between the specified startDate
and endDate
. For example, a metric of five_minutes
is the median of all the data points gathered within those five minutes. p50
is the only supported metric.
sourcepub fn period(self, input: PeriodType) -> Self
pub fn period(self, input: PeriodType) -> Self
The aggregation period used for the data query.
sourcepub fn set_period(self, input: Option<PeriodType>) -> Self
pub fn set_period(self, input: Option<PeriodType>) -> Self
The aggregation period used for the data query.
sourcepub fn get_period(&self) -> &Option<PeriodType>
pub fn get_period(&self) -> &Option<PeriodType>
The aggregation period used for the data query.
Trait Implementations§
source§impl Clone for DataQueryBuilder
impl Clone for DataQueryBuilder
source§fn clone(&self) -> DataQueryBuilder
fn clone(&self) -> DataQueryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DataQueryBuilder
impl Debug for DataQueryBuilder
source§impl Default for DataQueryBuilder
impl Default for DataQueryBuilder
source§fn default() -> DataQueryBuilder
fn default() -> DataQueryBuilder
source§impl PartialEq for DataQueryBuilder
impl PartialEq for DataQueryBuilder
source§fn eq(&self, other: &DataQueryBuilder) -> bool
fn eq(&self, other: &DataQueryBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DataQueryBuilder
Auto Trait Implementations§
impl Freeze for DataQueryBuilder
impl RefUnwindSafe for DataQueryBuilder
impl Send for DataQueryBuilder
impl Sync for DataQueryBuilder
impl Unpin for DataQueryBuilder
impl UnwindSafe for DataQueryBuilder
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