public static interface UpdateFirewallPolicyResponse.Builder extends NetworkFirewallResponse.Builder, SdkPojo, CopyableBuilder<UpdateFirewallPolicyResponse.Builder,UpdateFirewallPolicyResponse>
| Modifier and Type | Method and Description |
|---|---|
default UpdateFirewallPolicyResponse.Builder |
firewallPolicyResponse(Consumer<FirewallPolicyResponse.Builder> firewallPolicyResponse)
The high-level properties of a firewall policy.
|
UpdateFirewallPolicyResponse.Builder |
firewallPolicyResponse(FirewallPolicyResponse firewallPolicyResponse)
The high-level properties of a firewall policy.
|
UpdateFirewallPolicyResponse.Builder |
updateToken(String updateToken)
A token used for optimistic locking.
|
build, responseMetadata, responseMetadatasdkHttpResponse, sdkHttpResponseequalsBySdkFields, sdkFieldscopyapplyMutation, buildUpdateFirewallPolicyResponse.Builder updateToken(String 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.
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.
UpdateFirewallPolicyResponse.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.
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.default UpdateFirewallPolicyResponse.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.Builder avoiding
the need to create one manually via FirewallPolicyResponse.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to firewallPolicyResponse(FirewallPolicyResponse).
firewallPolicyResponse - a consumer that will call methods on FirewallPolicyResponse.BuilderfirewallPolicyResponse(FirewallPolicyResponse)Copyright © 2023. All rights reserved.