Class InstanceOptions.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • areLegacyImdsEndpointsDisabled

        public InstanceOptions.Builder areLegacyImdsEndpointsDisabled​(Boolean areLegacyImdsEndpointsDisabled)
        Whether to disable the legacy (/v1) instance metadata service endpoints.

        Customers who have migrated to /v2 should set this to true for added security. Default is false.

        Parameters:
        areLegacyImdsEndpointsDisabled - the value to set
        Returns:
        this builder