public TransitGatewayRoute withState(String state) {
        setState(state);
        return this;
    }
<p>
The state of the route.
</p>

@param state
       The state of the route.
@return Returns a reference to this object so that method calls can be chained together.
@see TransitGatewayRouteState
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/TransitGatewayRoute.java