Struct aws_sdk_networkfirewall::operation::disassociate_subnets::builders::DisassociateSubnetsInputBuilder
source · #[non_exhaustive]pub struct DisassociateSubnetsInputBuilder { /* private fields */ }
Expand description
A builder for DisassociateSubnetsInput
.
Implementations§
source§impl DisassociateSubnetsInputBuilder
impl DisassociateSubnetsInputBuilder
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 subnet_ids(self, input: impl Into<String>) -> Self
pub fn subnet_ids(self, input: impl Into<String>) -> Self
Appends an item to subnet_ids
.
To override the contents of this collection use set_subnet_ids
.
The unique identifiers for the subnets that you want to disassociate.
sourcepub fn set_subnet_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_subnet_ids(self, input: Option<Vec<String>>) -> Self
The unique identifiers for the subnets that you want to disassociate.
sourcepub fn get_subnet_ids(&self) -> &Option<Vec<String>>
pub fn get_subnet_ids(&self) -> &Option<Vec<String>>
The unique identifiers for the subnets that you want to disassociate.
sourcepub fn build(self) -> Result<DisassociateSubnetsInput, BuildError>
pub fn build(self) -> Result<DisassociateSubnetsInput, BuildError>
Consumes the builder and constructs a DisassociateSubnetsInput
.
source§impl DisassociateSubnetsInputBuilder
impl DisassociateSubnetsInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<DisassociateSubnetsOutput, SdkError<DisassociateSubnetsError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<DisassociateSubnetsOutput, SdkError<DisassociateSubnetsError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for DisassociateSubnetsInputBuilder
impl Clone for DisassociateSubnetsInputBuilder
source§fn clone(&self) -> DisassociateSubnetsInputBuilder
fn clone(&self) -> DisassociateSubnetsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DisassociateSubnetsInputBuilder
impl Default for DisassociateSubnetsInputBuilder
source§fn default() -> DisassociateSubnetsInputBuilder
fn default() -> DisassociateSubnetsInputBuilder
source§impl PartialEq for DisassociateSubnetsInputBuilder
impl PartialEq for DisassociateSubnetsInputBuilder
source§fn eq(&self, other: &DisassociateSubnetsInputBuilder) -> bool
fn eq(&self, other: &DisassociateSubnetsInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.