public FunctionConfiguration withState(State state) {
        this.state = state.toString();
        return this;
    }
<p>
The current state of the function. When the state is <code>Inactive</code>, you can reactivate the function by
invoking it.
</p>

@param state
       The current state of the function. When the state is <code>Inactive</code>, you can reactivate the
       function by invoking it.
@return Returns a reference to this object so that method calls can be chained together.
@see State
aws-java-sdk-lambda/src/main/java/com/amazonaws/services/lambda/model/FunctionConfiguration.java