Struct aws_sdk_ec2::model::subscription::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for Subscription
.
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 subscription. 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 subscription. 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 subscription. 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 target for the subscription. For example, eu-west-1
.
sourcepub fn metric(self, input: MetricType) -> Self
pub fn metric(self, input: MetricType) -> Self
The metric used for the subscription.
sourcepub fn set_metric(self, input: Option<MetricType>) -> Self
pub fn set_metric(self, input: Option<MetricType>) -> Self
The metric used for the subscription.
sourcepub fn statistic(self, input: StatisticType) -> Self
pub fn statistic(self, input: StatisticType) -> Self
The statistic used for the subscription.
sourcepub fn set_statistic(self, input: Option<StatisticType>) -> Self
pub fn set_statistic(self, input: Option<StatisticType>) -> Self
The statistic used for the subscription.
sourcepub fn period(self, input: PeriodType) -> Self
pub fn period(self, input: PeriodType) -> Self
The data aggregation time for the subscription.
sourcepub fn set_period(self, input: Option<PeriodType>) -> Self
pub fn set_period(self, input: Option<PeriodType>) -> Self
The data aggregation time for the subscription.
sourcepub fn build(self) -> Subscription
pub fn build(self) -> Subscription
Consumes the builder and constructs a Subscription
.