Struct aws_sdk_networkfirewall::operation::update_firewall_policy::builders::UpdateFirewallPolicyOutputBuilder
source · #[non_exhaustive]pub struct UpdateFirewallPolicyOutputBuilder { /* private fields */ }
Expand description
A builder for UpdateFirewallPolicyOutput
.
Implementations§
source§impl UpdateFirewallPolicyOutputBuilder
impl UpdateFirewallPolicyOutputBuilder
sourcepub fn update_token(self, input: impl Into<String>) -> Self
pub fn update_token(self, input: impl Into<String>) -> Self
A token used for optimistic locking. Network Firewall returns a token to your requests that access the firewall policy. The token marks the state of the policy resource at the time of the request.
To make changes to the policy, you provide the token in your request. Network Firewall uses the token to ensure that the policy hasn't changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException
. If this happens, retrieve the firewall policy again to get a current copy of it with current 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
A token used for optimistic locking. Network Firewall returns a token to your requests that access the firewall policy. The token marks the state of the policy resource at the time of the request.
To make changes to the policy, you provide the token in your request. Network Firewall uses the token to ensure that the policy hasn't changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException
. If this happens, retrieve the firewall policy again to get a current copy of it with current 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>
A token used for optimistic locking. Network Firewall returns a token to your requests that access the firewall policy. The token marks the state of the policy resource at the time of the request.
To make changes to the policy, you provide the token in your request. Network Firewall uses the token to ensure that the policy hasn't changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException
. If this happens, retrieve the firewall policy again to get a current copy of it with current token. Reapply your changes as needed, then try the operation again using the new token.
sourcepub fn firewall_policy_response(self, input: FirewallPolicyResponse) -> Self
pub fn firewall_policy_response(self, input: FirewallPolicyResponse) -> Self
The high-level properties of a firewall policy. This, along with the FirewallPolicy
, define the policy. You can retrieve all objects for a firewall policy by calling DescribeFirewallPolicy
.
sourcepub fn set_firewall_policy_response(
self,
input: Option<FirewallPolicyResponse>
) -> Self
pub fn set_firewall_policy_response( self, input: Option<FirewallPolicyResponse> ) -> Self
The high-level properties of a firewall policy. This, along with the FirewallPolicy
, define the policy. You can retrieve all objects for a firewall policy by calling DescribeFirewallPolicy
.
sourcepub fn get_firewall_policy_response(&self) -> &Option<FirewallPolicyResponse>
pub fn get_firewall_policy_response(&self) -> &Option<FirewallPolicyResponse>
The high-level properties of a firewall policy. This, along with the FirewallPolicy
, define the policy. You can retrieve all objects for a firewall policy by calling DescribeFirewallPolicy
.
sourcepub fn build(self) -> Result<UpdateFirewallPolicyOutput, BuildError>
pub fn build(self) -> Result<UpdateFirewallPolicyOutput, BuildError>
Consumes the builder and constructs a UpdateFirewallPolicyOutput
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for UpdateFirewallPolicyOutputBuilder
impl Clone for UpdateFirewallPolicyOutputBuilder
source§fn clone(&self) -> UpdateFirewallPolicyOutputBuilder
fn clone(&self) -> UpdateFirewallPolicyOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for UpdateFirewallPolicyOutputBuilder
impl Default for UpdateFirewallPolicyOutputBuilder
source§fn default() -> UpdateFirewallPolicyOutputBuilder
fn default() -> UpdateFirewallPolicyOutputBuilder
source§impl PartialEq for UpdateFirewallPolicyOutputBuilder
impl PartialEq for UpdateFirewallPolicyOutputBuilder
source§fn eq(&self, other: &UpdateFirewallPolicyOutputBuilder) -> bool
fn eq(&self, other: &UpdateFirewallPolicyOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateFirewallPolicyOutputBuilder
Auto Trait Implementations§
impl Freeze for UpdateFirewallPolicyOutputBuilder
impl RefUnwindSafe for UpdateFirewallPolicyOutputBuilder
impl Send for UpdateFirewallPolicyOutputBuilder
impl Sync for UpdateFirewallPolicyOutputBuilder
impl Unpin for UpdateFirewallPolicyOutputBuilder
impl UnwindSafe for UpdateFirewallPolicyOutputBuilder
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> 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