public InstanceMetadataDefaultsResponse withInstanceMetadataTags(InstanceMetadataTagsState instanceMetadataTags) {
        this.instanceMetadataTags = instanceMetadataTags.toString();
        return this;
    }
<p>
Indicates whether access to instance tags from the instance metadata is enabled or disabled. For more
information, see <a
href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#work-with-tags-in-IMDS">Work with
instance tags using the instance metadata</a> in the <i>Amazon EC2 User Guide</i>.
</p>

@param instanceMetadataTags
       Indicates whether access to instance tags from the instance metadata is enabled or disabled. For more
       information, see <a
       href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#work-with-tags-in-IMDS">Work
       with instance tags using the instance metadata</a> in the <i>Amazon EC2 User Guide</i>.
@return Returns a reference to this object so that method calls can be chained together.
@see InstanceMetadataTagsState
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/InstanceMetadataDefaultsResponse.java