public void setType(String type) {
        this.type = type;
    }
<p>
The route type.
</p>

@param type
       The route type.
@see TransitGatewayRouteType
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/TransitGatewayRoute.java