public LaunchTemplateInstanceMetadataOptions withState(LaunchTemplateInstanceMetadataOptionsState state) {
        this.state = state.toString();
        return this;
    }
<p>
The state of the metadata option changes.
</p>
<p>
<code>pending</code> - The metadata options are being updated and the instance is not ready to process metadata
traffic with the new selection.
</p>
<p>
<code>applied</code> - The metadata options have been successfully applied on the instance.
</p>

@param state
       The state of the metadata option changes.</p>
       <p>
       <code>pending</code> - The metadata options are being updated and the instance is not ready to process
       metadata traffic with the new selection.
       </p>
       <p>
       <code>applied</code> - The metadata options have been successfully applied on the instance.
@return Returns a reference to this object so that method calls can be chained together.
@see LaunchTemplateInstanceMetadataOptionsState
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/LaunchTemplateInstanceMetadataOptions.java