public LaunchTemplateInstanceMetadataOptionsRequest withHttpEndpoint(LaunchTemplateInstanceMetadataEndpointState httpEndpoint) {
        this.httpEndpoint = httpEndpoint.toString();
        return this;
    }
<p>
Enables or disables the HTTP metadata endpoint on your instances. If the parameter is not specified, the default
state is <code>enabled</code>.
</p>
<note>
<p>
If you specify a value of <code>disabled</code>, you will not be able to access your instance metadata.
</p>
</note>

@param httpEndpoint
       Enables or disables the HTTP metadata endpoint on your instances. If the parameter is not specified, the
       default state is <code>enabled</code>.</p> <note>
       <p>
       If you specify a value of <code>disabled</code>, you will not be able to access your instance metadata.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
@see LaunchTemplateInstanceMetadataEndpointState
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/LaunchTemplateInstanceMetadataOptionsRequest.java