public AwsEc2InstanceMetadataOptions withHttpEndpoint(String httpEndpoint) {
        setHttpEndpoint(httpEndpoint);
        return this;
    }
<p>
Enables or disables the HTTP metadata endpoint on the instance.
</p>

@param httpEndpoint
       Enables or disables the HTTP metadata endpoint on the instance.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/AwsEc2InstanceMetadataOptions.java