public CoreNetwork withState(CoreNetworkState state) {
        this.state = state.toString();
        return this;
    }
<p>
The current state of a core network.
</p>

@param state
       The current state of a core network.
@return Returns a reference to this object so that method calls can be chained together.
@see CoreNetworkState
aws-java-sdk-networkmanager/src/main/java/com/amazonaws/services/networkmanager/model/CoreNetwork.java