Struct aws_sdk_shield::operation::update_subscription::builders::UpdateSubscriptionFluentBuilder
source · pub struct UpdateSubscriptionFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateSubscription
.
Updates the details of an existing subscription. Only enter values for parameters you want to change. Empty parameters are not updated.
For accounts that are members of an Organizations organization, Shield Advanced subscriptions are billed against the organization's payer account, regardless of whether the payer account itself is subscribed.
Implementations§
source§impl UpdateSubscriptionFluentBuilder
impl UpdateSubscriptionFluentBuilder
sourcepub fn as_input(&self) -> &UpdateSubscriptionInputBuilder
pub fn as_input(&self) -> &UpdateSubscriptionInputBuilder
Access the UpdateSubscription as a reference.
sourcepub async fn send(
self,
) -> Result<UpdateSubscriptionOutput, SdkError<UpdateSubscriptionError, HttpResponse>>
pub async fn send( self, ) -> Result<UpdateSubscriptionOutput, SdkError<UpdateSubscriptionError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self,
) -> CustomizableOperation<UpdateSubscriptionOutput, UpdateSubscriptionError, Self>
pub fn customize( self, ) -> CustomizableOperation<UpdateSubscriptionOutput, UpdateSubscriptionError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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.
Trait Implementations§
source§impl Clone for UpdateSubscriptionFluentBuilder
impl Clone for UpdateSubscriptionFluentBuilder
source§fn clone(&self) -> UpdateSubscriptionFluentBuilder
fn clone(&self) -> UpdateSubscriptionFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for UpdateSubscriptionFluentBuilder
impl !RefUnwindSafe for UpdateSubscriptionFluentBuilder
impl Send for UpdateSubscriptionFluentBuilder
impl Sync for UpdateSubscriptionFluentBuilder
impl Unpin for UpdateSubscriptionFluentBuilder
impl !UnwindSafe for UpdateSubscriptionFluentBuilder
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