/* * 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.redshift.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* Describes a subnet group. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ClusterSubnetGroup implements Serializable, Cloneable { /** ** The name of the cluster subnet group. *
*/ private String clusterSubnetGroupName; /** ** The description of the cluster subnet group. *
*/ private String description; /** ** The VPC ID of the cluster subnet group. *
*/ private String vpcId; /** *
* The status of the cluster subnet group. Possible values are Complete
, Incomplete
and
* Invalid
.
*
* A list of the VPC Subnet elements. *
*/ private com.amazonaws.internal.SdkInternalList* The list of tags for the cluster subnet group. *
*/ private com.amazonaws.internal.SdkInternalList* The name of the cluster subnet group. *
* * @param clusterSubnetGroupName * The name of the cluster subnet group. */ public void setClusterSubnetGroupName(String clusterSubnetGroupName) { this.clusterSubnetGroupName = clusterSubnetGroupName; } /** ** The name of the cluster subnet group. *
* * @return The name of the cluster subnet group. */ public String getClusterSubnetGroupName() { return this.clusterSubnetGroupName; } /** ** The name of the cluster subnet group. *
* * @param clusterSubnetGroupName * The name of the cluster subnet group. * @return Returns a reference to this object so that method calls can be chained together. */ public ClusterSubnetGroup withClusterSubnetGroupName(String clusterSubnetGroupName) { setClusterSubnetGroupName(clusterSubnetGroupName); return this; } /** ** The description of the cluster subnet group. *
* * @param description * The description of the cluster subnet group. */ public void setDescription(String description) { this.description = description; } /** ** The description of the cluster subnet group. *
* * @return The description of the cluster subnet group. */ public String getDescription() { return this.description; } /** ** The description of the cluster subnet group. *
* * @param description * The description of the cluster subnet group. * @return Returns a reference to this object so that method calls can be chained together. */ public ClusterSubnetGroup withDescription(String description) { setDescription(description); return this; } /** ** The VPC ID of the cluster subnet group. *
* * @param vpcId * The VPC ID of the cluster subnet group. */ public void setVpcId(String vpcId) { this.vpcId = vpcId; } /** ** The VPC ID of the cluster subnet group. *
* * @return The VPC ID of the cluster subnet group. */ public String getVpcId() { return this.vpcId; } /** ** The VPC ID of the cluster subnet group. *
* * @param vpcId * The VPC ID of the cluster subnet group. * @return Returns a reference to this object so that method calls can be chained together. */ public ClusterSubnetGroup withVpcId(String vpcId) { setVpcId(vpcId); return this; } /** *
* The status of the cluster subnet group. Possible values are Complete
, Incomplete
and
* Invalid
.
*
Complete
, Incomplete
* and Invalid
.
*/
public void setSubnetGroupStatus(String subnetGroupStatus) {
this.subnetGroupStatus = subnetGroupStatus;
}
/**
*
* The status of the cluster subnet group. Possible values are Complete
, Incomplete
and
* Invalid
.
*
Complete
,
* Incomplete
and Invalid
.
*/
public String getSubnetGroupStatus() {
return this.subnetGroupStatus;
}
/**
*
* The status of the cluster subnet group. Possible values are Complete
, Incomplete
and
* Invalid
.
*
Complete
, Incomplete
* and Invalid
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ClusterSubnetGroup withSubnetGroupStatus(String subnetGroupStatus) {
setSubnetGroupStatus(subnetGroupStatus);
return this;
}
/**
* * A list of the VPC Subnet elements. *
* * @return A list of the VPC Subnet elements. */ public java.util.List* A list of the VPC Subnet elements. *
* * @param subnets * A list of the VPC Subnet elements. */ public void setSubnets(java.util.Collection* A list of the VPC Subnet elements. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSubnets(java.util.Collection)} or {@link #withSubnets(java.util.Collection)} if you want to override * the existing values. *
* * @param subnets * A list of the VPC Subnet elements. * @return Returns a reference to this object so that method calls can be chained together. */ public ClusterSubnetGroup withSubnets(Subnet... subnets) { if (this.subnets == null) { setSubnets(new com.amazonaws.internal.SdkInternalList* A list of the VPC Subnet elements. *
* * @param subnets * A list of the VPC Subnet elements. * @return Returns a reference to this object so that method calls can be chained together. */ public ClusterSubnetGroup withSubnets(java.util.Collection* The list of tags for the cluster subnet group. *
* * @return The list of tags for the cluster subnet group. */ public java.util.List* The list of tags for the cluster subnet group. *
* * @param tags * The list of tags for the cluster subnet group. */ public void setTags(java.util.Collection* The list of tags for the cluster subnet group. *
** 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 * The list of tags for the cluster subnet group. * @return Returns a reference to this object so that method calls can be chained together. */ public ClusterSubnetGroup withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList* The list of tags for the cluster subnet group. *
* * @param tags * The list of tags for the cluster subnet group. * @return Returns a reference to this object so that method calls can be chained together. */ public ClusterSubnetGroup withTags(java.util.Collection