/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.route53.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ChangeCidrCollectionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The UUID of the CIDR collection to update. *
*/ private String id; /** ** 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 of
* CollectionVersion
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
* a CidrCollectionVersionMismatch
error.
*
* Information about changes to a CIDR collection. *
*/ private com.amazonaws.internal.SdkInternalList* The UUID of the CIDR collection to update. *
* * @param id * The UUID of the CIDR collection to update. */ public void setId(String id) { this.id = id; } /** ** The UUID of the CIDR collection to update. *
* * @return The UUID of the CIDR collection to update. */ public String getId() { return this.id; } /** ** The UUID of the CIDR collection to update. *
* * @param id * The UUID of the CIDR collection to update. * @return Returns a reference to this object so that method calls can be chained together. */ public ChangeCidrCollectionRequest withId(String id) { setId(id); return this; } /** ** 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 of
* CollectionVersion
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
* a CidrCollectionVersionMismatch
error.
*
* We recommend that you use ListCidrCollection
to get the current value of
* CollectionVersion
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 a CidrCollectionVersionMismatch
error.
*
* 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 of
* CollectionVersion
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
* a CidrCollectionVersionMismatch
error.
*
* We recommend that you use ListCidrCollection
to get the current value of
* CollectionVersion
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 a CidrCollectionVersionMismatch
error.
*
* 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 of
* CollectionVersion
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
* a CidrCollectionVersionMismatch
error.
*
* We recommend that you use ListCidrCollection
to get the current value of
* CollectionVersion
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 a CidrCollectionVersionMismatch
error.
*
* Information about changes to a CIDR collection. *
* * @return Information about changes to a CIDR collection. */ public java.util.List* Information about changes to a CIDR collection. *
* * @param changes * Information about changes to a CIDR collection. */ public void setChanges(java.util.Collection* Information about changes to a CIDR collection. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setChanges(java.util.Collection)} or {@link #withChanges(java.util.Collection)} if you want to override * the existing values. *
* * @param changes * Information about changes to a CIDR collection. * @return Returns a reference to this object so that method calls can be chained together. */ public ChangeCidrCollectionRequest withChanges(CidrCollectionChange... changes) { if (this.changes == null) { setChanges(new com.amazonaws.internal.SdkInternalList* Information about changes to a CIDR collection. *
* * @param changes * Information about changes to a CIDR collection. * @return Returns a reference to this object so that method calls can be chained together. */ public ChangeCidrCollectionRequest withChanges(java.util.Collection