/* * 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.rds.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* Contains the details of an Amazon RDS DB subnet group. *
*
* This data type is used as a response element in the DescribeDBSubnetGroups
action.
*
* The name of the DB subnet group. *
*/ private String dBSubnetGroupName; /** ** Provides the description of the DB subnet group. *
*/ private String dBSubnetGroupDescription; /** ** Provides the VpcId of the DB subnet group. *
*/ private String vpcId; /** ** Provides the status of the DB subnet group. *
*/ private String subnetGroupStatus; /** *
* Contains a list of Subnet
elements.
*
* The Amazon Resource Name (ARN) for the DB subnet group. *
*/ private String dBSubnetGroupArn; /** ** The network type of the DB subnet group. *
** Valid values: *
*
* IPV4
*
* DUAL
*
* A DBSubnetGroup
can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (
* DUAL
).
*
* For more information, see Working * with a DB instance in a VPC in the Amazon RDS User Guide. *
*/ private com.amazonaws.internal.SdkInternalList* The name of the DB subnet group. *
* * @param dBSubnetGroupName * The name of the DB subnet group. */ public void setDBSubnetGroupName(String dBSubnetGroupName) { this.dBSubnetGroupName = dBSubnetGroupName; } /** ** The name of the DB subnet group. *
* * @return The name of the DB subnet group. */ public String getDBSubnetGroupName() { return this.dBSubnetGroupName; } /** ** The name of the DB subnet group. *
* * @param dBSubnetGroupName * The name of the DB subnet group. * @return Returns a reference to this object so that method calls can be chained together. */ public DBSubnetGroup withDBSubnetGroupName(String dBSubnetGroupName) { setDBSubnetGroupName(dBSubnetGroupName); return this; } /** ** Provides the description of the DB subnet group. *
* * @param dBSubnetGroupDescription * Provides the description of the DB subnet group. */ public void setDBSubnetGroupDescription(String dBSubnetGroupDescription) { this.dBSubnetGroupDescription = dBSubnetGroupDescription; } /** ** Provides the description of the DB subnet group. *
* * @return Provides the description of the DB subnet group. */ public String getDBSubnetGroupDescription() { return this.dBSubnetGroupDescription; } /** ** Provides the description of the DB subnet group. *
* * @param dBSubnetGroupDescription * Provides the description of the DB subnet group. * @return Returns a reference to this object so that method calls can be chained together. */ public DBSubnetGroup withDBSubnetGroupDescription(String dBSubnetGroupDescription) { setDBSubnetGroupDescription(dBSubnetGroupDescription); return this; } /** ** Provides the VpcId of the DB subnet group. *
* * @param vpcId * Provides the VpcId of the DB subnet group. */ public void setVpcId(String vpcId) { this.vpcId = vpcId; } /** ** Provides the VpcId of the DB subnet group. *
* * @return Provides the VpcId of the DB subnet group. */ public String getVpcId() { return this.vpcId; } /** ** Provides the VpcId of the DB subnet group. *
* * @param vpcId * Provides the VpcId of the DB subnet group. * @return Returns a reference to this object so that method calls can be chained together. */ public DBSubnetGroup withVpcId(String vpcId) { setVpcId(vpcId); return this; } /** ** Provides the status of the DB subnet group. *
* * @param subnetGroupStatus * Provides the status of the DB subnet group. */ public void setSubnetGroupStatus(String subnetGroupStatus) { this.subnetGroupStatus = subnetGroupStatus; } /** ** Provides the status of the DB subnet group. *
* * @return Provides the status of the DB subnet group. */ public String getSubnetGroupStatus() { return this.subnetGroupStatus; } /** ** Provides the status of the DB subnet group. *
* * @param subnetGroupStatus * Provides the status of the DB subnet group. * @return Returns a reference to this object so that method calls can be chained together. */ public DBSubnetGroup withSubnetGroupStatus(String subnetGroupStatus) { setSubnetGroupStatus(subnetGroupStatus); return this; } /** *
* Contains a list of Subnet
elements.
*
Subnet
elements.
*/
public java.util.List
* Contains a list of Subnet
elements.
*
Subnet
elements.
*/
public void setSubnets(java.util.Collection
* Contains a list of 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 * Contains a list ofSubnet
elements.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBSubnetGroup withSubnets(Subnet... subnets) {
if (this.subnets == null) {
setSubnets(new com.amazonaws.internal.SdkInternalList
* Contains a list of Subnet
elements.
*
Subnet
elements.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBSubnetGroup withSubnets(java.util.Collection* The Amazon Resource Name (ARN) for the DB subnet group. *
* * @param dBSubnetGroupArn * The Amazon Resource Name (ARN) for the DB subnet group. */ public void setDBSubnetGroupArn(String dBSubnetGroupArn) { this.dBSubnetGroupArn = dBSubnetGroupArn; } /** ** The Amazon Resource Name (ARN) for the DB subnet group. *
* * @return The Amazon Resource Name (ARN) for the DB subnet group. */ public String getDBSubnetGroupArn() { return this.dBSubnetGroupArn; } /** ** The Amazon Resource Name (ARN) for the DB subnet group. *
* * @param dBSubnetGroupArn * The Amazon Resource Name (ARN) for the DB subnet group. * @return Returns a reference to this object so that method calls can be chained together. */ public DBSubnetGroup withDBSubnetGroupArn(String dBSubnetGroupArn) { setDBSubnetGroupArn(dBSubnetGroupArn); return this; } /** ** The network type of the DB subnet group. *
** Valid values: *
*
* IPV4
*
* DUAL
*
* A DBSubnetGroup
can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (
* DUAL
).
*
* For more information, see Working * with a DB instance in a VPC in the Amazon RDS User Guide. *
* * @return The network type of the DB subnet group. ** Valid values: *
*
* IPV4
*
* DUAL
*
* A DBSubnetGroup
can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (
* DUAL
).
*
* For more information, see
* Working with a DB instance in a VPC in the Amazon RDS User Guide.
*/
public java.util.List
* The network type of the DB subnet group.
*
* Valid values:
*
*
*
* A
* For more information, see Working
* with a DB instance in a VPC in the Amazon RDS User Guide.
*
*
* IPV4
* DUAL
* DBSubnetGroup
can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (
* DUAL
).
*
* Valid values: *
*
* IPV4
*
* DUAL
*
* A DBSubnetGroup
can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (
* DUAL
).
*
* For more information, see
* Working with a DB instance in a VPC in the Amazon RDS User Guide.
*/
public void setSupportedNetworkTypes(java.util.Collection
* The network type of the DB subnet group.
*
* Valid values:
*
*
*
* A
* For more information, see Working
* with a DB instance in a VPC in the Amazon RDS User Guide.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setSupportedNetworkTypes(java.util.Collection)} or
* {@link #withSupportedNetworkTypes(java.util.Collection)} if you want to override the existing values.
*
*
* IPV4
* DUAL
* DBSubnetGroup
can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (
* DUAL
).
*
* Valid values: *
*
* IPV4
*
* DUAL
*
* A DBSubnetGroup
can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (
* DUAL
).
*
* For more information, see
* Working with a DB instance in a VPC in the Amazon RDS User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBSubnetGroup withSupportedNetworkTypes(String... supportedNetworkTypes) {
if (this.supportedNetworkTypes == null) {
setSupportedNetworkTypes(new com.amazonaws.internal.SdkInternalList
* The network type of the DB subnet group.
*
* Valid values:
*
*
*
* A
* For more information, see Working
* with a DB instance in a VPC in the Amazon RDS User Guide.
*
*
* IPV4
* DUAL
* DBSubnetGroup
can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (
* DUAL
).
*
* Valid values: *
*
* IPV4
*
* DUAL
*
* A DBSubnetGroup
can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (
* DUAL
).
*
* For more information, see
* Working with a DB instance in a VPC in the Amazon RDS User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBSubnetGroup withSupportedNetworkTypes(java.util.Collection