public UpdateInstanceMetadataOptionsRequest withHttpTokens(String httpTokens) {
        setHttpTokens(httpTokens);
        return this;
    }
<p>
The state of token usage for your instance metadata requests. If the parameter is not specified in the request,
the default state is <code>optional</code>.
</p>
<p>
If the state is <code>optional</code>, you can choose whether to retrieve instance metadata with a signed token
header on your request. If you retrieve the IAM role credentials without a token, the version 1.0 role
credentials are returned. If you retrieve the IAM role credentials by using a valid signed token, the version 2.0
role credentials are returned.
</p>
<p>
If the state is <code>required</code>, you must send a signed token header with all instance metadata retrieval
requests. In this state, retrieving the IAM role credential always returns the version 2.0 credentials. The
version 1.0 credentials are not available.
</p>

@param httpTokens
       The state of token usage for your instance metadata requests. If the parameter is not specified in the
       request, the default state is <code>optional</code>.</p>
       <p>
       If the state is <code>optional</code>, you can choose whether to retrieve instance metadata with a signed
       token header on your request. If you retrieve the IAM role credentials without a token, the version 1.0
       role credentials are returned. If you retrieve the IAM role credentials by using a valid signed token, the
       version 2.0 role credentials are returned.
       </p>
       <p>
       If the state is <code>required</code>, you must send a signed token header with all instance metadata
       retrieval requests. In this state, retrieving the IAM role credential always returns the version 2.0
       credentials. The version 1.0 credentials are not available.
@return Returns a reference to this object so that method calls can be chained together.
@see HttpTokens
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/UpdateInstanceMetadataOptionsRequest.java