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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.route53.model.Route53Request.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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
ListCidrCollectionto get the current value ofCollectionVersionfor 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
CollectionVersionin the collection, Route 53 updates the collection. -
If the value of
CollectionVersionin 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 aCidrCollectionVersionMismatcherror.
- 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
ListCidrCollectionto get the current value ofCollectionVersionfor 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
CollectionVersionin the collection, Route 53 updates the collection. -
If the value of
CollectionVersionin 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 aCidrCollectionVersionMismatcherror.
-
- 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.Builderavoiding the need to create one manually viaCidrCollectionChange.builder().When the
Consumercompletes,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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.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.
-