/* * 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; /** *
* A complex type that contains information about the CIDR collection change. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CidrCollectionChange implements Serializable, Cloneable { /** ** Name of the location that is associated with the CIDR collection. *
*/ private String locationName; /** ** CIDR collection change action. *
*/ private String action; /** ** List of CIDR blocks. *
*/ private com.amazonaws.internal.SdkInternalList* Name of the location that is associated with the CIDR collection. *
* * @param locationName * Name of the location that is associated with the CIDR collection. */ public void setLocationName(String locationName) { this.locationName = locationName; } /** ** Name of the location that is associated with the CIDR collection. *
* * @return Name of the location that is associated with the CIDR collection. */ public String getLocationName() { return this.locationName; } /** ** Name of the location that is associated with the CIDR collection. *
* * @param locationName * Name of the location that is associated with the CIDR collection. * @return Returns a reference to this object so that method calls can be chained together. */ public CidrCollectionChange withLocationName(String locationName) { setLocationName(locationName); return this; } /** ** CIDR collection change action. *
* * @param action * CIDR collection change action. * @see CidrCollectionChangeAction */ public void setAction(String action) { this.action = action; } /** ** CIDR collection change action. *
* * @return CIDR collection change action. * @see CidrCollectionChangeAction */ public String getAction() { return this.action; } /** ** CIDR collection change action. *
* * @param action * CIDR collection change action. * @return Returns a reference to this object so that method calls can be chained together. * @see CidrCollectionChangeAction */ public CidrCollectionChange withAction(String action) { setAction(action); return this; } /** ** CIDR collection change action. *
* * @param action * CIDR collection change action. * @return Returns a reference to this object so that method calls can be chained together. * @see CidrCollectionChangeAction */ public CidrCollectionChange withAction(CidrCollectionChangeAction action) { this.action = action.toString(); return this; } /** ** List of CIDR blocks. *
* * @return List of CIDR blocks. */ public java.util.List* List of CIDR blocks. *
* * @param cidrList * List of CIDR blocks. */ public void setCidrList(java.util.Collection* List of CIDR blocks. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setCidrList(java.util.Collection)} or {@link #withCidrList(java.util.Collection)} if you want to override * the existing values. *
* * @param cidrList * List of CIDR blocks. * @return Returns a reference to this object so that method calls can be chained together. */ public CidrCollectionChange withCidrList(String... cidrList) { if (this.cidrList == null) { setCidrList(new com.amazonaws.internal.SdkInternalList* List of CIDR blocks. *
* * @param cidrList * List of CIDR blocks. * @return Returns a reference to this object so that method calls can be chained together. */ public CidrCollectionChange withCidrList(java.util.Collection