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 get_source(&self) -> &Option<String>
pub fn get_source(&self) -> &Option<String>
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 get_destination(&self) -> &Option<String>
pub fn get_destination(&self) -> &Option<String>
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 get_metric(&self) -> &Option<MetricType>
pub fn get_metric(&self) -> &Option<MetricType>
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 get_statistic(&self) -> &Option<StatisticType>
pub fn get_statistic(&self) -> &Option<StatisticType>
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 get_period(&self) -> &Option<PeriodType>
pub fn get_period(&self) -> &Option<PeriodType>
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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
source§impl PartialEq for SubscriptionBuilder
impl PartialEq for SubscriptionBuilder
source§fn eq(&self, other: &SubscriptionBuilder) -> bool
fn eq(&self, other: &SubscriptionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SubscriptionBuilder
Auto Trait Implementations§
impl Freeze for SubscriptionBuilder
impl RefUnwindSafe for SubscriptionBuilder
impl Send for SubscriptionBuilder
impl Sync for SubscriptionBuilder
impl Unpin for SubscriptionBuilder
impl UnwindSafe for SubscriptionBuilder
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