public java.util.List<Subnet> getSubnets() {
        return subnets;
    }
<p>
A list of subnets associated with the subnet group.
</p>

@return A list of subnets associated with the subnet group.
aws-java-sdk-memorydb/src/main/java/com/amazonaws/services/memorydb/model/SubnetGroup.java