public void setState(String state) {
        this.state = state;
    }
<p>
The current state of the endpoint.
</p>

@param state
       The current state of the endpoint.
@see EndpointState
aws-java-sdk-eventbridge/src/main/java/com/amazonaws/services/eventbridge/model/Endpoint.java