public ModifyInstanceMetadataOptionsRequest withHttpProtocolIpv6(String httpProtocolIpv6) {
        setHttpProtocolIpv6(httpProtocolIpv6);
        return this;
    }
<p>
Enables or disables the IPv6 endpoint for the instance metadata service. Applies only if you enabled the HTTP
metadata endpoint.
</p>

@param httpProtocolIpv6
       Enables or disables the IPv6 endpoint for the instance metadata service. Applies only if you enabled the
       HTTP metadata endpoint.
@return Returns a reference to this object so that method calls can be chained together.
@see InstanceMetadataProtocolState
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/ModifyInstanceMetadataOptionsRequest.java