Interface GetManagedRuleSetResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetManagedRuleSetResponse.Builder,GetManagedRuleSetResponse>,SdkBuilder<GetManagedRuleSetResponse.Builder,GetManagedRuleSetResponse>,SdkPojo,SdkResponse.Builder,Wafv2Response.Builder
- Enclosing class:
- GetManagedRuleSetResponse
public static interface GetManagedRuleSetResponse.Builder extends Wafv2Response.Builder, SdkPojo, CopyableBuilder<GetManagedRuleSetResponse.Builder,GetManagedRuleSetResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GetManagedRuleSetResponse.BuilderlockToken(String lockToken)A token used for optimistic locking.default GetManagedRuleSetResponse.BuildermanagedRuleSet(Consumer<ManagedRuleSet.Builder> managedRuleSet)The managed rule set that you requested.GetManagedRuleSetResponse.BuildermanagedRuleSet(ManagedRuleSet managedRuleSet)The managed rule set that you requested.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Methods inherited from interface software.amazon.awssdk.services.wafv2.model.Wafv2Response.Builder
build, responseMetadata, responseMetadata
-
-
-
-
Method Detail
-
managedRuleSet
GetManagedRuleSetResponse.Builder managedRuleSet(ManagedRuleSet managedRuleSet)
The managed rule set that you requested.
- Parameters:
managedRuleSet- The managed rule set that you requested.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
managedRuleSet
default GetManagedRuleSetResponse.Builder managedRuleSet(Consumer<ManagedRuleSet.Builder> managedRuleSet)
The managed rule set that you requested.
This is a convenience method that creates an instance of theManagedRuleSet.Builderavoiding the need to create one manually viaManagedRuleSet.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomanagedRuleSet(ManagedRuleSet).- Parameters:
managedRuleSet- a consumer that will call methods onManagedRuleSet.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
managedRuleSet(ManagedRuleSet)
-
lockToken
GetManagedRuleSetResponse.Builder lockToken(String lockToken)
A token used for optimistic locking. WAF returns a token to your
getandlistrequests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations likeupdateanddelete. WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with aWAFOptimisticLockException. If this happens, perform anotherget, and use the new token returned by that operation.- Parameters:
lockToken- A token used for optimistic locking. WAF returns a token to yourgetandlistrequests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations likeupdateanddelete. WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with aWAFOptimisticLockException. If this happens, perform anotherget, and use the new token returned by that operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-