Interface ChangeCidrCollectionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<ChangeCidrCollectionRequest.Builder,
,ChangeCidrCollectionRequest> Route53Request.Builder
,SdkBuilder<ChangeCidrCollectionRequest.Builder,
,ChangeCidrCollectionRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
ChangeCidrCollectionRequest
-
Method Summary
Modifier and TypeMethodDescriptionchanges
(Collection<CidrCollectionChange> changes) Information about changes to a CIDR collection.changes
(Consumer<CidrCollectionChange.Builder>... changes) Information about changes to a CIDR collection.changes
(CidrCollectionChange... changes) Information about changes to a CIDR collection.collectionVersion
(Long collectionVersion) A sequential counter that Amazon Route 53 sets to 1 when you create a collection and increments it by 1 each time you update the collection.The UUID of the CIDR collection to update.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.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.route53.model.Route53Request.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
id
The UUID of the CIDR collection to update.
- Parameters:
id
- The UUID of the CIDR collection to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
collectionVersion
A sequential counter that Amazon Route 53 sets to 1 when you create a collection and increments it by 1 each time you update the collection.
We recommend that you use
ListCidrCollection
to get the current value ofCollectionVersion
for the collection that you want to update, and then include that value with the change request. This prevents Route 53 from overwriting an intervening update:-
If the value in the request matches the value of
CollectionVersion
in the collection, Route 53 updates the collection. -
If the value of
CollectionVersion
in the collection is greater than the value in the request, the collection was changed after you got the version number. Route 53 does not update the collection, and it returns aCidrCollectionVersionMismatch
error.
- Parameters:
collectionVersion
- A sequential counter that Amazon Route 53 sets to 1 when you create a collection and increments it by 1 each time you update the collection.We recommend that you use
ListCidrCollection
to get the current value ofCollectionVersion
for the collection that you want to update, and then include that value with the change request. This prevents Route 53 from overwriting an intervening update:-
If the value in the request matches the value of
CollectionVersion
in the collection, Route 53 updates the collection. -
If the value of
CollectionVersion
in the collection is greater than the value in the request, the collection was changed after you got the version number. Route 53 does not update the collection, and it returns aCidrCollectionVersionMismatch
error.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
changes
Information about changes to a CIDR collection.
- Parameters:
changes
- Information about changes to a CIDR collection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
changes
Information about changes to a CIDR collection.
- Parameters:
changes
- Information about changes to a CIDR collection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
changes
Information about changes to a CIDR collection.
This is a convenience method that creates an instance of theCidrCollectionChange.Builder
avoiding the need to create one manually viaCidrCollectionChange.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tochanges(List<CidrCollectionChange>)
.- Parameters:
changes
- a consumer that will call methods onCidrCollectionChange.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
ChangeCidrCollectionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ChangeCidrCollectionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-