@Generated(value="software.amazon.awssdk:codegen") public final class DBSubnetGroup extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DBSubnetGroup.Builder,DBSubnetGroup>
Contains the details of an Amazon RDS DB subnet group.
This data type is used as a response element in the DescribeDBSubnetGroups action.
| Modifier and Type | Class and Description |
|---|---|
static interface |
DBSubnetGroup.Builder |
| Modifier and Type | Method and Description |
|---|---|
static DBSubnetGroup.Builder |
builder() |
String |
dbSubnetGroupArn()
The Amazon Resource Name (ARN) for the DB subnet group.
|
String |
dbSubnetGroupDescription()
Provides the description of the DB subnet group.
|
String |
dbSubnetGroupName()
The name of the DB subnet group.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasSubnets()
For responses, this returns true if the service returned a value for the Subnets property.
|
boolean |
hasSupportedNetworkTypes()
For responses, this returns true if the service returned a value for the SupportedNetworkTypes property.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends DBSubnetGroup.Builder> |
serializableBuilderClass() |
String |
subnetGroupStatus()
Provides the status of the DB subnet group.
|
List<Subnet> |
subnets()
Contains a list of
Subnet elements. |
List<String> |
supportedNetworkTypes()
The network type of the DB subnet group.
|
DBSubnetGroup.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
vpcId()
Provides the VpcId of the DB subnet group.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String dbSubnetGroupName()
The name of the DB subnet group.
public final String dbSubnetGroupDescription()
Provides the description of the DB subnet group.
public final String vpcId()
Provides the VpcId of the DB subnet group.
public final String subnetGroupStatus()
Provides the status of the DB subnet group.
public final boolean hasSubnets()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<Subnet> subnets()
Contains a list of Subnet elements.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasSubnets() method.
Subnet elements.public final String dbSubnetGroupArn()
The Amazon Resource Name (ARN) for the DB subnet group.
public final boolean hasSupportedNetworkTypes()
isEmpty() method on the
property). This is useful because the SDK will never return a null collection or map, but you may need to
differentiate between the service returning nothing (or null) and the service returning an empty collection or
map. For requests, this returns true if a value for the property was specified in the request builder, and false
if a value was not specified.public final List<String> supportedNetworkTypes()
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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasSupportedNetworkTypes() method.
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 DBSubnetGroup.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DBSubnetGroup.Builder,DBSubnetGroup>public static DBSubnetGroup.Builder builder()
public static Class<? extends DBSubnetGroup.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.