Struct aws_sdk_ec2::model::data_response::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for DataResponse
.
Implementations§
source§impl Builder
impl Builder
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 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 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 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 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 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 build(self) -> DataResponse
pub fn build(self) -> DataResponse
Consumes the builder and constructs a DataResponse
.