/* * 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.ec2.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* Describes an IPv6 address pool. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Ipv6Pool implements Serializable, Cloneable { /** ** The ID of the address pool. *
*/ private String poolId; /** ** The description for the address pool. *
*/ private String description; /** ** The CIDR blocks for the address pool. *
*/ private com.amazonaws.internal.SdkInternalList* Any tags for the address pool. *
*/ private com.amazonaws.internal.SdkInternalList* The ID of the address pool. *
* * @param poolId * The ID of the address pool. */ public void setPoolId(String poolId) { this.poolId = poolId; } /** ** The ID of the address pool. *
* * @return The ID of the address pool. */ public String getPoolId() { return this.poolId; } /** ** The ID of the address pool. *
* * @param poolId * The ID of the address pool. * @return Returns a reference to this object so that method calls can be chained together. */ public Ipv6Pool withPoolId(String poolId) { setPoolId(poolId); return this; } /** ** The description for the address pool. *
* * @param description * The description for the address pool. */ public void setDescription(String description) { this.description = description; } /** ** The description for the address pool. *
* * @return The description for the address pool. */ public String getDescription() { return this.description; } /** ** The description for the address pool. *
* * @param description * The description for the address pool. * @return Returns a reference to this object so that method calls can be chained together. */ public Ipv6Pool withDescription(String description) { setDescription(description); return this; } /** ** The CIDR blocks for the address pool. *
* * @return The CIDR blocks for the address pool. */ public java.util.List* The CIDR blocks for the address pool. *
* * @param poolCidrBlocks * The CIDR blocks for the address pool. */ public void setPoolCidrBlocks(java.util.Collection* The CIDR blocks for the address pool. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setPoolCidrBlocks(java.util.Collection)} or {@link #withPoolCidrBlocks(java.util.Collection)} if you want * to override the existing values. *
* * @param poolCidrBlocks * The CIDR blocks for the address pool. * @return Returns a reference to this object so that method calls can be chained together. */ public Ipv6Pool withPoolCidrBlocks(PoolCidrBlock... poolCidrBlocks) { if (this.poolCidrBlocks == null) { setPoolCidrBlocks(new com.amazonaws.internal.SdkInternalList* The CIDR blocks for the address pool. *
* * @param poolCidrBlocks * The CIDR blocks for the address pool. * @return Returns a reference to this object so that method calls can be chained together. */ public Ipv6Pool withPoolCidrBlocks(java.util.Collection* Any tags for the address pool. *
* * @return Any tags for the address pool. */ public java.util.List* Any tags for the address pool. *
* * @param tags * Any tags for the address pool. */ public void setTags(java.util.Collection* Any tags for the address pool. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * Any tags for the address pool. * @return Returns a reference to this object so that method calls can be chained together. */ public Ipv6Pool withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList* Any tags for the address pool. *
* * @param tags * Any tags for the address pool. * @return Returns a reference to this object so that method calls can be chained together. */ public Ipv6Pool withTags(java.util.Collection