Interface DescribeFirewallPolicyResponse.Builder
- All Superinterfaces:
- AwsResponse.Builder,- Buildable,- CopyableBuilder<DescribeFirewallPolicyResponse.Builder,,- DescribeFirewallPolicyResponse> - NetworkFirewallResponse.Builder,- SdkBuilder<DescribeFirewallPolicyResponse.Builder,,- DescribeFirewallPolicyResponse> - SdkPojo,- SdkResponse.Builder
- Enclosing class:
- DescribeFirewallPolicyResponse
- 
Method SummaryModifier and TypeMethodDescriptionfirewallPolicy(Consumer<FirewallPolicy.Builder> firewallPolicy) The policy for the specified firewall policy.firewallPolicy(FirewallPolicy firewallPolicy) The policy for the specified firewall policy.firewallPolicyResponse(Consumer<FirewallPolicyResponse.Builder> firewallPolicyResponse) The high-level properties of a firewall policy.firewallPolicyResponse(FirewallPolicyResponse firewallPolicyResponse) The high-level properties of a firewall policy.updateToken(String updateToken) A token used for optimistic locking.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.services.networkfirewall.model.NetworkFirewallResponse.Builderbuild, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.BuildersdkHttpResponse, sdkHttpResponse
- 
Method Details- 
updateTokenA 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.- Parameters:
- updateToken- 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
firewallPolicyResponseDescribeFirewallPolicyResponse.Builder firewallPolicyResponse(FirewallPolicyResponse 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. - Parameters:
- 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
firewallPolicyResponsedefault DescribeFirewallPolicyResponse.Builder firewallPolicyResponse(Consumer<FirewallPolicyResponse.Builder> 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. This is a convenience method that creates an instance of theFirewallPolicyResponse.Builderavoiding the need to create one manually viaFirewallPolicyResponse.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofirewallPolicyResponse(FirewallPolicyResponse).- Parameters:
- firewallPolicyResponse- a consumer that will call methods on- FirewallPolicyResponse.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
firewallPolicyThe policy for the specified firewall policy. - Parameters:
- firewallPolicy- The policy for the specified firewall policy.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
firewallPolicydefault DescribeFirewallPolicyResponse.Builder firewallPolicy(Consumer<FirewallPolicy.Builder> firewallPolicy) The policy for the specified firewall policy. This is a convenience method that creates an instance of theFirewallPolicy.Builderavoiding the need to create one manually viaFirewallPolicy.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofirewallPolicy(FirewallPolicy).- Parameters:
- firewallPolicy- a consumer that will call methods on- FirewallPolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
 
-