Interface InstanceMetadataDefaultsResponse.Builder

    • Method Detail

      • httpTokens

        InstanceMetadataDefaultsResponse.Builder httpTokens​(String httpTokens)

        Indicates whether IMDSv2 is required.

        • optional – IMDSv2 is optional, which means that you can use either IMDSv2 or IMDSv1.

        • required – IMDSv2 is required, which means that IMDSv1 is disabled, and you must use IMDSv2.

        Parameters:
        httpTokens - Indicates whether IMDSv2 is required.

        • optional – IMDSv2 is optional, which means that you can use either IMDSv2 or IMDSv1.

        • required – IMDSv2 is required, which means that IMDSv1 is disabled, and you must use IMDSv2.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        HttpTokensState, HttpTokensState
      • httpTokens

        InstanceMetadataDefaultsResponse.Builder httpTokens​(HttpTokensState httpTokens)

        Indicates whether IMDSv2 is required.

        • optional – IMDSv2 is optional, which means that you can use either IMDSv2 or IMDSv1.

        • required – IMDSv2 is required, which means that IMDSv1 is disabled, and you must use IMDSv2.

        Parameters:
        httpTokens - Indicates whether IMDSv2 is required.

        • optional – IMDSv2 is optional, which means that you can use either IMDSv2 or IMDSv1.

        • required – IMDSv2 is required, which means that IMDSv1 is disabled, and you must use IMDSv2.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        HttpTokensState, HttpTokensState
      • httpPutResponseHopLimit

        InstanceMetadataDefaultsResponse.Builder httpPutResponseHopLimit​(Integer httpPutResponseHopLimit)

        The maximum number of hops that the metadata token can travel.

        Parameters:
        httpPutResponseHopLimit - The maximum number of hops that the metadata token can travel.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • httpEndpoint

        InstanceMetadataDefaultsResponse.Builder httpEndpoint​(String httpEndpoint)

        Indicates whether the IMDS endpoint for an instance is enabled or disabled. When disabled, the instance metadata can't be accessed.

        Parameters:
        httpEndpoint - Indicates whether the IMDS endpoint for an instance is enabled or disabled. When disabled, the instance metadata can't be accessed.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        InstanceMetadataEndpointState, InstanceMetadataEndpointState