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