@Generated(value="software.amazon.awssdk:codegen") public final class SubnetGroup extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SubnetGroup.Builder,SubnetGroup>
Represents the output of one of the following operations:
CreateSubnetGroup
UpdateSubnetGroup
A subnet group is a collection of subnets (typically private) that you can designate for your clusters running in an Amazon Virtual Private Cloud (VPC) environment.
| Modifier and Type | Class and Description |
|---|---|
static interface |
SubnetGroup.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
arn()
The ARN (Amazon Resource Name) of the subnet group.
|
static SubnetGroup.Builder |
builder() |
String |
description()
A description of the 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.
|
String |
name()
The name of the subnet group
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends SubnetGroup.Builder> |
serializableBuilderClass() |
List<Subnet> |
subnets()
A list of subnets associated with the subnet group.
|
SubnetGroup.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
vpcId()
The Amazon Virtual Private Cloud identifier (VPC ID) of the subnet group.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String name()
The name of the subnet group
public final String description()
A description of the subnet group
public final String vpcId()
The Amazon Virtual Private Cloud identifier (VPC ID) of the 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()
A list of subnets associated with the subnet group.
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.
public final String arn()
The ARN (Amazon Resource Name) of the subnet group.
public SubnetGroup.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SubnetGroup.Builder,SubnetGroup>public static SubnetGroup.Builder builder()
public static Class<? extends SubnetGroup.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.