public CreateRouteRequest withTarget(String target) {
        setTarget(target);
        return this;
    }
<p>
The target for the route.
</p>

@param target
       The target for the route.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-apigatewayv2/src/main/java/com/amazonaws/services/apigatewayv2/model/CreateRouteRequest.java