public java.util.List<SubnetAssociation> getSubnets() {
        if (subnets == null) {
            subnets = new com.amazonaws.internal.SdkInternalList<SubnetAssociation>();
        }
        return subnets;
    }
<p>
The subnets associated with the multicast domain.
</p>

@return The subnets associated with the multicast domain.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/TransitGatewayMulticastDomainAssociations.java