Interface UpdateFirewallPolicyV2Request.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateFirewallPolicyV2Request.Builder,,UpdateFirewallPolicyV2Request> NetworkFirewallRequest.Builder,SdkBuilder<UpdateFirewallPolicyV2Request.Builder,,UpdateFirewallPolicyV2Request> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateFirewallPolicyV2Request
-
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) A description of the firewall policy.Indicates whether you want Network Firewall to just check the validity of the request, rather than run the request.encryptionConfiguration(Consumer<EncryptionConfiguration.Builder> encryptionConfiguration) A complex type that contains settings for encryption of your firewall policy resources.encryptionConfiguration(EncryptionConfiguration encryptionConfiguration) A complex type that contains settings for encryption of your firewall policy resources.firewallPolicyV2(Consumer<FirewallPolicyV2.Builder> firewallPolicyV2) The updated rule groups and other settings that define the Next Generation policy.firewallPolicyV2(FirewallPolicyV2 firewallPolicyV2) The updated rule groups and other settings that define the Next Generation policy.firewallPolicyV2Arn(String firewallPolicyV2Arn) The Amazon Resource Name (ARN) of the Next Generation policy.firewallPolicyV2Name(String firewallPolicyV2Name) The descriptive name of the Next Generation policy.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.updateToken(String updateToken) A token used for optimistic locking.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.networkfirewall.model.NetworkFirewallRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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.- 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.
-
firewallPolicyV2Arn
The Amazon Resource Name (ARN) of the Next Generation policy.
You must specify the ARN or the name, and you can specify both.
- Parameters:
firewallPolicyV2Arn- The Amazon Resource Name (ARN) of the Next Generation policy.You must specify the ARN or the name, and you can specify both.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
firewallPolicyV2Name
The descriptive name of the Next Generation policy. You can't change the name of a firewall policy after you create it.
You must specify the ARN or the name, and you can specify both.
- Parameters:
firewallPolicyV2Name- The descriptive name of the Next Generation policy. You can't change the name of a firewall policy after you create it.You must specify the ARN or the name, and you can specify both.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
firewallPolicyV2
The updated rule groups and other settings that define the Next Generation policy.
- Parameters:
firewallPolicyV2- The updated rule groups and other settings that define the Next Generation policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
firewallPolicyV2
default UpdateFirewallPolicyV2Request.Builder firewallPolicyV2(Consumer<FirewallPolicyV2.Builder> firewallPolicyV2) The updated rule groups and other settings that define the Next Generation policy.
This is a convenience method that creates an instance of theFirewallPolicyV2.Builderavoiding the need to create one manually viaFirewallPolicyV2.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofirewallPolicyV2(FirewallPolicyV2).- Parameters:
firewallPolicyV2- a consumer that will call methods onFirewallPolicyV2.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
A description of the firewall policy.
- Parameters:
description- A description of the firewall policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dryRun
Indicates whether you want Network Firewall to just check the validity of the request, rather than run the request.
If set to
TRUE, Network Firewall checks whether the request can run successfully, but doesn't actually make the requested changes. The call returns the value that the request would return if you ran it with dry run set toFALSE, but doesn't make additions or changes to your resources. This option allows you to make sure that you have the required permissions to run the request and that your request parameters are valid.If set to
FALSE, Network Firewall makes the requested changes to your resources.- Parameters:
dryRun- Indicates whether you want Network Firewall to just check the validity of the request, rather than run the request.If set to
TRUE, Network Firewall checks whether the request can run successfully, but doesn't actually make the requested changes. The call returns the value that the request would return if you ran it with dry run set toFALSE, but doesn't make additions or changes to your resources. This option allows you to make sure that you have the required permissions to run the request and that your request parameters are valid.If set to
FALSE, Network Firewall makes the requested changes to your resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
encryptionConfiguration
UpdateFirewallPolicyV2Request.Builder encryptionConfiguration(EncryptionConfiguration encryptionConfiguration) A complex type that contains settings for encryption of your firewall policy resources.
- Parameters:
encryptionConfiguration- A complex type that contains settings for encryption of your firewall policy resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
encryptionConfiguration
default UpdateFirewallPolicyV2Request.Builder encryptionConfiguration(Consumer<EncryptionConfiguration.Builder> encryptionConfiguration) A complex type that contains settings for encryption of your firewall policy resources.
This is a convenience method that creates an instance of theEncryptionConfiguration.Builderavoiding the need to create one manually viaEncryptionConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toencryptionConfiguration(EncryptionConfiguration).- Parameters:
encryptionConfiguration- a consumer that will call methods onEncryptionConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
UpdateFirewallPolicyV2Request.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateFirewallPolicyV2Request.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-