Struct aws_sdk_networkfirewall::operation::create_firewall_policy::builders::CreateFirewallPolicyOutputBuilder
source · #[non_exhaustive]pub struct CreateFirewallPolicyOutputBuilder { /* private fields */ }
Expand description
A builder for CreateFirewallPolicyOutput
.
Implementations§
source§impl CreateFirewallPolicyOutputBuilder
impl CreateFirewallPolicyOutputBuilder
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<CreateFirewallPolicyOutput, BuildError>
pub fn build(self) -> Result<CreateFirewallPolicyOutput, BuildError>
Consumes the builder and constructs a CreateFirewallPolicyOutput
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CreateFirewallPolicyOutputBuilder
impl Clone for CreateFirewallPolicyOutputBuilder
source§fn clone(&self) -> CreateFirewallPolicyOutputBuilder
fn clone(&self) -> CreateFirewallPolicyOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateFirewallPolicyOutputBuilder
impl Default for CreateFirewallPolicyOutputBuilder
source§fn default() -> CreateFirewallPolicyOutputBuilder
fn default() -> CreateFirewallPolicyOutputBuilder
source§impl PartialEq for CreateFirewallPolicyOutputBuilder
impl PartialEq for CreateFirewallPolicyOutputBuilder
source§fn eq(&self, other: &CreateFirewallPolicyOutputBuilder) -> bool
fn eq(&self, other: &CreateFirewallPolicyOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.