Struct aws_sdk_networkfirewall::operation::update_firewall_description::builders::UpdateFirewallDescriptionInputBuilder
source · #[non_exhaustive]pub struct UpdateFirewallDescriptionInputBuilder { /* private fields */ }
Expand description
A builder for UpdateFirewallDescriptionInput
.
Implementations§
source§impl UpdateFirewallDescriptionInputBuilder
impl UpdateFirewallDescriptionInputBuilder
sourcepub fn update_token(self, input: impl Into<String>) -> Self
pub fn update_token(self, input: impl Into<String>) -> Self
An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.
To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.
To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn't changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException
. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.
sourcepub fn set_update_token(self, input: Option<String>) -> Self
pub fn set_update_token(self, input: Option<String>) -> Self
An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.
To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.
To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn't changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException
. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.
sourcepub fn get_update_token(&self) -> &Option<String>
pub fn get_update_token(&self) -> &Option<String>
An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.
To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.
To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn't changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException
. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.
sourcepub fn firewall_arn(self, input: impl Into<String>) -> Self
pub fn firewall_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the firewall.
You must specify the ARN or the name, and you can specify both.
sourcepub fn set_firewall_arn(self, input: Option<String>) -> Self
pub fn set_firewall_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the firewall.
You must specify the ARN or the name, and you can specify both.
sourcepub fn get_firewall_arn(&self) -> &Option<String>
pub fn get_firewall_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the firewall.
You must specify the ARN or the name, and you can specify both.
sourcepub fn firewall_name(self, input: impl Into<String>) -> Self
pub fn firewall_name(self, input: impl Into<String>) -> Self
The descriptive name of the firewall. You can't change the name of a firewall after you create it.
You must specify the ARN or the name, and you can specify both.
sourcepub fn set_firewall_name(self, input: Option<String>) -> Self
pub fn set_firewall_name(self, input: Option<String>) -> Self
The descriptive name of the firewall. You can't change the name of a firewall after you create it.
You must specify the ARN or the name, and you can specify both.
sourcepub fn get_firewall_name(&self) -> &Option<String>
pub fn get_firewall_name(&self) -> &Option<String>
The descriptive name of the firewall. You can't change the name of a firewall after you create it.
You must specify the ARN or the name, and you can specify both.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The new description for the firewall. If you omit this setting, Network Firewall removes the description for the firewall.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The new description for the firewall. If you omit this setting, Network Firewall removes the description for the firewall.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The new description for the firewall. If you omit this setting, Network Firewall removes the description for the firewall.
sourcepub fn build(self) -> Result<UpdateFirewallDescriptionInput, BuildError>
pub fn build(self) -> Result<UpdateFirewallDescriptionInput, BuildError>
Consumes the builder and constructs a UpdateFirewallDescriptionInput
.
source§impl UpdateFirewallDescriptionInputBuilder
impl UpdateFirewallDescriptionInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<UpdateFirewallDescriptionOutput, SdkError<UpdateFirewallDescriptionError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<UpdateFirewallDescriptionOutput, SdkError<UpdateFirewallDescriptionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateFirewallDescriptionInputBuilder
impl Clone for UpdateFirewallDescriptionInputBuilder
source§fn clone(&self) -> UpdateFirewallDescriptionInputBuilder
fn clone(&self) -> UpdateFirewallDescriptionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for UpdateFirewallDescriptionInputBuilder
impl Default for UpdateFirewallDescriptionInputBuilder
source§fn default() -> UpdateFirewallDescriptionInputBuilder
fn default() -> UpdateFirewallDescriptionInputBuilder
source§impl PartialEq for UpdateFirewallDescriptionInputBuilder
impl PartialEq for UpdateFirewallDescriptionInputBuilder
source§fn eq(&self, other: &UpdateFirewallDescriptionInputBuilder) -> bool
fn eq(&self, other: &UpdateFirewallDescriptionInputBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for UpdateFirewallDescriptionInputBuilder
Auto Trait Implementations§
impl Freeze for UpdateFirewallDescriptionInputBuilder
impl RefUnwindSafe for UpdateFirewallDescriptionInputBuilder
impl Send for UpdateFirewallDescriptionInputBuilder
impl Sync for UpdateFirewallDescriptionInputBuilder
impl Unpin for UpdateFirewallDescriptionInputBuilder
impl UnwindSafe for UpdateFirewallDescriptionInputBuilder
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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