Interface InstanceMetadataDefaultsResponse.Builder

All Superinterfaces:
Buildable, CopyableBuilder<InstanceMetadataDefaultsResponse.Builder,InstanceMetadataDefaultsResponse>, SdkBuilder<InstanceMetadataDefaultsResponse.Builder,InstanceMetadataDefaultsResponse>, SdkPojo
Enclosing class:
InstanceMetadataDefaultsResponse

public static interface InstanceMetadataDefaultsResponse.Builder extends SdkPojo, CopyableBuilder<InstanceMetadataDefaultsResponse.Builder,InstanceMetadataDefaultsResponse>
  • 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

      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

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

      InstanceMetadataDefaultsResponse.Builder instanceMetadataTags(String instanceMetadataTags)

      Indicates whether access to instance tags from the instance metadata is enabled or disabled. For more information, see Work with instance tags using the instance metadata in the Amazon EC2 User Guide.

      Parameters:
      instanceMetadataTags - Indicates whether access to instance tags from the instance metadata is enabled or disabled. For more information, see Work with instance tags using the instance metadata in the Amazon EC2 User Guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • instanceMetadataTags

      InstanceMetadataDefaultsResponse.Builder instanceMetadataTags(InstanceMetadataTagsState instanceMetadataTags)

      Indicates whether access to instance tags from the instance metadata is enabled or disabled. For more information, see Work with instance tags using the instance metadata in the Amazon EC2 User Guide.

      Parameters:
      instanceMetadataTags - Indicates whether access to instance tags from the instance metadata is enabled or disabled. For more information, see Work with instance tags using the instance metadata in the Amazon EC2 User Guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: