Struct aws_sdk_shield::operation::update_subscription::builders::UpdateSubscriptionInputBuilder
source · #[non_exhaustive]pub struct UpdateSubscriptionInputBuilder { /* private fields */ }
Expand description
A builder for UpdateSubscriptionInput
.
Implementations§
source§impl UpdateSubscriptionInputBuilder
impl UpdateSubscriptionInputBuilder
sourcepub fn auto_renew(self, input: AutoRenew) -> Self
pub fn auto_renew(self, input: AutoRenew) -> Self
When you initally create a subscription, AutoRenew
is set to ENABLED
. If ENABLED
, the subscription will be automatically renewed at the end of the existing subscription period. You can change this by submitting an UpdateSubscription
request. If the UpdateSubscription
request does not included a value for AutoRenew
, the existing value for AutoRenew
remains unchanged.
sourcepub fn set_auto_renew(self, input: Option<AutoRenew>) -> Self
pub fn set_auto_renew(self, input: Option<AutoRenew>) -> Self
When you initally create a subscription, AutoRenew
is set to ENABLED
. If ENABLED
, the subscription will be automatically renewed at the end of the existing subscription period. You can change this by submitting an UpdateSubscription
request. If the UpdateSubscription
request does not included a value for AutoRenew
, the existing value for AutoRenew
remains unchanged.
sourcepub fn get_auto_renew(&self) -> &Option<AutoRenew>
pub fn get_auto_renew(&self) -> &Option<AutoRenew>
When you initally create a subscription, AutoRenew
is set to ENABLED
. If ENABLED
, the subscription will be automatically renewed at the end of the existing subscription period. You can change this by submitting an UpdateSubscription
request. If the UpdateSubscription
request does not included a value for AutoRenew
, the existing value for AutoRenew
remains unchanged.
sourcepub fn build(self) -> Result<UpdateSubscriptionInput, BuildError>
pub fn build(self) -> Result<UpdateSubscriptionInput, BuildError>
Consumes the builder and constructs a UpdateSubscriptionInput
.
source§impl UpdateSubscriptionInputBuilder
impl UpdateSubscriptionInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<UpdateSubscriptionOutput, SdkError<UpdateSubscriptionError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<UpdateSubscriptionOutput, SdkError<UpdateSubscriptionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateSubscriptionInputBuilder
impl Clone for UpdateSubscriptionInputBuilder
source§fn clone(&self) -> UpdateSubscriptionInputBuilder
fn clone(&self) -> UpdateSubscriptionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for UpdateSubscriptionInputBuilder
impl Default for UpdateSubscriptionInputBuilder
source§fn default() -> UpdateSubscriptionInputBuilder
fn default() -> UpdateSubscriptionInputBuilder
source§impl PartialEq for UpdateSubscriptionInputBuilder
impl PartialEq for UpdateSubscriptionInputBuilder
source§fn eq(&self, other: &UpdateSubscriptionInputBuilder) -> bool
fn eq(&self, other: &UpdateSubscriptionInputBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for UpdateSubscriptionInputBuilder
Auto Trait Implementations§
impl Freeze for UpdateSubscriptionInputBuilder
impl RefUnwindSafe for UpdateSubscriptionInputBuilder
impl Send for UpdateSubscriptionInputBuilder
impl Sync for UpdateSubscriptionInputBuilder
impl Unpin for UpdateSubscriptionInputBuilder
impl UnwindSafe for UpdateSubscriptionInputBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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