Interface UpdateFirewallPolicyRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateFirewallPolicyRequest.Builder,UpdateFirewallPolicyRequest>,NetworkFirewallRequest.Builder,SdkBuilder<UpdateFirewallPolicyRequest.Builder,UpdateFirewallPolicyRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- UpdateFirewallPolicyRequest
public static interface UpdateFirewallPolicyRequest.Builder extends NetworkFirewallRequest.Builder, SdkPojo, CopyableBuilder<UpdateFirewallPolicyRequest.Builder,UpdateFirewallPolicyRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description UpdateFirewallPolicyRequest.Builderdescription(String description)A description of the firewall policy.UpdateFirewallPolicyRequest.BuilderdryRun(Boolean dryRun)Indicates whether you want Network Firewall to just check the validity of the request, rather than run the request.default UpdateFirewallPolicyRequest.BuilderencryptionConfiguration(Consumer<EncryptionConfiguration.Builder> encryptionConfiguration)A complex type that contains settings for encryption of your firewall policy resources.UpdateFirewallPolicyRequest.BuilderencryptionConfiguration(EncryptionConfiguration encryptionConfiguration)A complex type that contains settings for encryption of your firewall policy resources.default UpdateFirewallPolicyRequest.BuilderfirewallPolicy(Consumer<FirewallPolicy.Builder> firewallPolicy)The updated firewall policy to use for the firewall.UpdateFirewallPolicyRequest.BuilderfirewallPolicy(FirewallPolicy firewallPolicy)The updated firewall policy to use for the firewall.UpdateFirewallPolicyRequest.BuilderfirewallPolicyArn(String firewallPolicyArn)The Amazon Resource Name (ARN) of the firewall policy.UpdateFirewallPolicyRequest.BuilderfirewallPolicyName(String firewallPolicyName)The descriptive name of the firewall policy.UpdateFirewallPolicyRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)UpdateFirewallPolicyRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)UpdateFirewallPolicyRequest.BuilderupdateToken(String updateToken)A token used for optimistic locking.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.networkfirewall.model.NetworkFirewallRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
updateToken
UpdateFirewallPolicyRequest.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.- 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.
-
firewallPolicyArn
UpdateFirewallPolicyRequest.Builder firewallPolicyArn(String firewallPolicyArn)
The Amazon Resource Name (ARN) of the firewall policy.
You must specify the ARN or the name, and you can specify both.
- Parameters:
firewallPolicyArn- The Amazon Resource Name (ARN) of the firewall 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.
-
firewallPolicyName
UpdateFirewallPolicyRequest.Builder firewallPolicyName(String firewallPolicyName)
The descriptive name of the firewall 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:
firewallPolicyName- The descriptive name of the firewall 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.
-
firewallPolicy
UpdateFirewallPolicyRequest.Builder firewallPolicy(FirewallPolicy firewallPolicy)
The updated firewall policy to use for the firewall. You can't add or remove a TLSInspectionConfiguration after you create a firewall policy. However, you can replace an existing TLS inspection configuration with another
TLSInspectionConfiguration.- Parameters:
firewallPolicy- The updated firewall policy to use for the firewall. You can't add or remove a TLSInspectionConfiguration after you create a firewall policy. However, you can replace an existing TLS inspection configuration with anotherTLSInspectionConfiguration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
firewallPolicy
default UpdateFirewallPolicyRequest.Builder firewallPolicy(Consumer<FirewallPolicy.Builder> firewallPolicy)
The updated firewall policy to use for the firewall. You can't add or remove a TLSInspectionConfiguration after you create a firewall policy. However, you can replace an existing TLS inspection configuration with another
This is a convenience method that creates an instance of theTLSInspectionConfiguration.FirewallPolicy.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 onFirewallPolicy.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
firewallPolicy(FirewallPolicy)
-
description
UpdateFirewallPolicyRequest.Builder description(String 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
UpdateFirewallPolicyRequest.Builder dryRun(Boolean 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
UpdateFirewallPolicyRequest.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 UpdateFirewallPolicyRequest.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:
encryptionConfiguration(EncryptionConfiguration)
-
overrideConfiguration
UpdateFirewallPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
UpdateFirewallPolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-