public Component withState(ComponentState state) {
        setState(state);
        return this;
    }
<p>
Describes the current status of the component. This is used for components that are no longer active.
</p>

@param state
       Describes the current status of the component. This is used for components that are no longer active.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-imagebuilder/src/main/java/com/amazonaws/services/imagebuilder/model/Component.java