public InstanceMetadataDefaultsResponse withHttpEndpoint(String httpEndpoint) {
        setHttpEndpoint(httpEndpoint);
        return this;
    }
<p>
Indicates whether the IMDS endpoint for an instance is enabled or disabled. When disabled, the instance metadata
can't be accessed.
</p>

@param httpEndpoint
       Indicates whether the IMDS endpoint for an instance is enabled or disabled. When disabled, the instance
       metadata can't be accessed.
@return Returns a reference to this object so that method calls can be chained together.
@see InstanceMetadataEndpointState
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/InstanceMetadataDefaultsResponse.java