public String getHttpTokens() {
        return this.httpTokens;
    }
<p>
The state of token usage for your instance metadata requests.
</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>
<important>
<p>
Not all instance blueprints in Lightsail support version 2.0 credentials. Use the <code>MetadataNoToken</code>
instance metric to track the number of calls to the instance metadata service that are using version 1.0
credentials. For more information, see <a
href="https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-viewing-instance-health-metrics"
>Viewing instance metrics in Amazon Lightsail</a> in the <i>Amazon Lightsail Developer Guide</i>.
</p>
</important>

@return The state of token usage for your instance metadata requests.</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>
        <important>
        <p>
        Not all instance blueprints in Lightsail support version 2.0 credentials. Use the
        <code>MetadataNoToken</code> instance metric to track the number of calls to the instance metadata
        service that are using version 1.0 credentials. For more information, see <a href=
        "https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-viewing-instance-health-metrics"
        >Viewing instance metrics in Amazon Lightsail</a> in the <i>Amazon Lightsail Developer Guide</i>.
        </p>
@see HttpTokens
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/InstanceMetadataOptions.java