public void setState(String state) {
        this.state = state;
    }
<p>
The state of the metadata option changes.
</p>
<p>
The following states are possible:
</p>
<ul>
<li>
<p>
<code>pending</code> - The metadata options are being updated. The instance is not yet ready to process metadata
traffic with the new selection.
</p>
</li>
<li>
<p>
<code>applied</code> - The metadata options have been successfully applied to the instance.
</p>
</li>
</ul>

@param state
       The state of the metadata option changes.</p>
       <p>
       The following states are possible:
       </p>
       <ul>
       <li>
       <p>
       <code>pending</code> - The metadata options are being updated. The instance is not yet ready to process
       metadata traffic with the new selection.
       </p>
       </li>
       <li>
       <p>
       <code>applied</code> - The metadata options have been successfully applied to the instance.
       </p>
       </li>
@see InstanceMetadataState
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/InstanceMetadataOptions.java