Interface DescribeFirewallResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DescribeFirewallResponse.Builder,DescribeFirewallResponse>,NetworkFirewallResponse.Builder,SdkBuilder<DescribeFirewallResponse.Builder,DescribeFirewallResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- DescribeFirewallResponse
public static interface DescribeFirewallResponse.Builder extends NetworkFirewallResponse.Builder, SdkPojo, CopyableBuilder<DescribeFirewallResponse.Builder,DescribeFirewallResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default DescribeFirewallResponse.Builderfirewall(Consumer<Firewall.Builder> firewall)The configuration settings for the firewall.DescribeFirewallResponse.Builderfirewall(Firewall firewall)The configuration settings for the firewall.default DescribeFirewallResponse.BuilderfirewallStatus(Consumer<FirewallStatus.Builder> firewallStatus)Detailed information about the current status of a Firewall.DescribeFirewallResponse.BuilderfirewallStatus(FirewallStatus firewallStatus)Detailed information about the current status of a Firewall.DescribeFirewallResponse.BuilderupdateToken(String updateToken)An optional token that you can use for optimistic locking.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.networkfirewall.model.NetworkFirewallResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
updateToken
DescribeFirewallResponse.Builder updateToken(String updateToken)
An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.
To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.
To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn't changed since you last retrieved it. If it has changed, the operation fails with an
InvalidTokenException. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.- Parameters:
updateToken- An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.
To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn't changed since you last retrieved it. If it has changed, the operation fails with an
InvalidTokenException. If this happens, retrieve the firewall again to get a current copy of it with a new 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.
-
firewall
DescribeFirewallResponse.Builder firewall(Firewall firewall)
The configuration settings for the firewall. These settings include the firewall policy and the subnets in your VPC to use for the firewall endpoints.
- Parameters:
firewall- The configuration settings for the firewall. These settings include the firewall policy and the subnets in your VPC to use for the firewall endpoints.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
firewall
default DescribeFirewallResponse.Builder firewall(Consumer<Firewall.Builder> firewall)
The configuration settings for the firewall. These settings include the firewall policy and the subnets in your VPC to use for the firewall endpoints.
This is a convenience method that creates an instance of theFirewall.Builderavoiding the need to create one manually viaFirewall.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofirewall(Firewall).- Parameters:
firewall- a consumer that will call methods onFirewall.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
firewall(Firewall)
-
firewallStatus
DescribeFirewallResponse.Builder firewallStatus(FirewallStatus firewallStatus)
Detailed information about the current status of a Firewall. You can retrieve this for a firewall by calling DescribeFirewall and providing the firewall name and ARN.
- Parameters:
firewallStatus- Detailed information about the current status of a Firewall. You can retrieve this for a firewall by calling DescribeFirewall and providing the firewall name and ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
firewallStatus
default DescribeFirewallResponse.Builder firewallStatus(Consumer<FirewallStatus.Builder> firewallStatus)
Detailed information about the current status of a Firewall. You can retrieve this for a firewall by calling DescribeFirewall and providing the firewall name and ARN.
This is a convenience method that creates an instance of theFirewallStatus.Builderavoiding the need to create one manually viaFirewallStatus.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofirewallStatus(FirewallStatus).- Parameters:
firewallStatus- a consumer that will call methods onFirewallStatus.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
firewallStatus(FirewallStatus)
-
-