public Archive withState(ArchiveState state) {
        this.state = state.toString();
        return this;
    }
<p>
The current state of the archive.
</p>

@param state
       The current state of the archive.
@return Returns a reference to this object so that method calls can be chained together.
@see ArchiveState
aws-java-sdk-eventbridge/src/main/java/com/amazonaws/services/eventbridge/model/Archive.java