public LoadBalancerState withCode(LoadBalancerStateEnum code) {
        this.code = code.toString();
        return this;
    }
<p>
The state code. The initial state of the load balancer is <code>provisioning</code>. After the load balancer is
fully set up and ready to route traffic, its state is <code>active</code>. If load balancer is routing traffic
but does not have the resources it needs to scale, its state is<code>active_impaired</code>. If the load balancer
could not be set up, its state is <code>failed</code>.
</p>

@param code
       The state code. The initial state of the load balancer is <code>provisioning</code>. After the load
       balancer is fully set up and ready to route traffic, its state is <code>active</code>. If load balancer is
       routing traffic but does not have the resources it needs to scale, its state is
       <code>active_impaired</code>. If the load balancer could not be set up, its state is <code>failed</code>.
@return Returns a reference to this object so that method calls can be chained together.
@see LoadBalancerStateEnum
aws-java-sdk-elasticloadbalancingv2/src/main/java/com/amazonaws/services/elasticloadbalancingv2/model/LoadBalancerState.java