public Directory withState(String state) {
        setState(state);
        return this;
    }
<p>
The state of the directory. Can be either <code>Enabled</code>, <code>Disabled</code>, or <code>Deleted</code>.
</p>

@param state
       The state of the directory. Can be either <code>Enabled</code>, <code>Disabled</code>, or
       <code>Deleted</code>.
@return Returns a reference to this object so that method calls can be chained together.
@see DirectoryState
aws-java-sdk-clouddirectory/src/main/java/com/amazonaws/services/clouddirectory/model/Directory.java