public GatewayInstance withInstanceState(InstanceState instanceState) {
        this.instanceState = instanceState.toString();
        return this;
    }
The status of the instance.

@param instanceState
       The status of the instance.
@return Returns a reference to this object so that method calls can be chained together.
@see InstanceState
aws-java-sdk-mediaconnect/src/main/java/com/amazonaws/services/mediaconnect/model/GatewayInstance.java