Interface FleetInstanceMetadataOptionsRequest.Builder

  • Method Details

    • 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:
    • 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:
    • httpPutResponseHopLimit

      FleetInstanceMetadataOptionsRequest.Builder httpPutResponseHopLimit(Integer httpPutResponseHopLimit)

      The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further instance metadata requests can travel.

      Default: 1

      Possible values: Integers from 1 to 64

      Parameters:
      httpPutResponseHopLimit - The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further instance metadata requests can travel.

      Default: 1

      Possible values: Integers from 1 to 64

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • httpEndpoint

      Enables or disables the HTTP metadata endpoint on your instances.

      • enabled - The HTTP metadata endpoint is enabled.

      • disabled - The HTTP metadata endpoint is disabled.

      Parameters:
      httpEndpoint - Enables or disables the HTTP metadata endpoint on your instances.

      • enabled - The HTTP metadata endpoint is enabled.

      • disabled - The HTTP metadata endpoint is disabled.

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

      Enables or disables the HTTP metadata endpoint on your instances.

      • enabled - The HTTP metadata endpoint is enabled.

      • disabled - The HTTP metadata endpoint is disabled.

      Parameters:
      httpEndpoint - Enables or disables the HTTP metadata endpoint on your instances.

      • enabled - The HTTP metadata endpoint is enabled.

      • disabled - The HTTP metadata endpoint is disabled.

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