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 ==.