Interface GetRuleGroupResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetRuleGroupResponse.Builder,,GetRuleGroupResponse> SdkBuilder<GetRuleGroupResponse.Builder,,GetRuleGroupResponse> SdkPojo,SdkResponse.Builder,Wafv2Response.Builder
- Enclosing class:
GetRuleGroupResponse
public static interface GetRuleGroupResponse.Builder
extends Wafv2Response.Builder, SdkPojo, CopyableBuilder<GetRuleGroupResponse.Builder,GetRuleGroupResponse>
-
Method Summary
Modifier and TypeMethodDescriptionA token used for optimistic locking.default GetRuleGroupResponse.BuilderruleGroup(Consumer<RuleGroup.Builder> ruleGroup) This is a convenience method that creates an instance of theRuleGroup.Builderavoiding the need to create one manually viaRuleGroup.builder().Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponseMethods inherited from interface software.amazon.awssdk.services.wafv2.model.Wafv2Response.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
ruleGroup
- Parameters:
ruleGroup-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleGroup
This is a convenience method that creates an instance of theRuleGroup.Builderavoiding the need to create one manually viaRuleGroup.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toruleGroup(RuleGroup).- Parameters:
ruleGroup- a consumer that will call methods onRuleGroup.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-