Struct aws_sdk_ec2::types::builders::SubscriptionBuilder
source · #[non_exhaustive]pub struct SubscriptionBuilder { /* private fields */ }Expand description
A builder for Subscription.
Implementations§
source§impl SubscriptionBuilder
impl SubscriptionBuilder
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.
Trait Implementations§
source§impl Clone for SubscriptionBuilder
impl Clone for SubscriptionBuilder
source§fn clone(&self) -> SubscriptionBuilder
fn clone(&self) -> SubscriptionBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SubscriptionBuilder
impl Debug for SubscriptionBuilder
source§impl Default for SubscriptionBuilder
impl Default for SubscriptionBuilder
source§fn default() -> SubscriptionBuilder
fn default() -> SubscriptionBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<SubscriptionBuilder> for SubscriptionBuilder
impl PartialEq<SubscriptionBuilder> for SubscriptionBuilder
source§fn eq(&self, other: &SubscriptionBuilder) -> bool
fn eq(&self, other: &SubscriptionBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.