Interface UpdateKeyRequest.Builder

    • Method Detail

      • description

        UpdateKeyRequest.Builder description​(String description)

        Updates the description for the API key resource.

        Parameters:
        description - Updates the description for the API key resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • expireTime

        UpdateKeyRequest.Builder expireTime​(Instant expireTime)

        Updates the timestamp for when the API key resource will expire in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.

        Parameters:
        expireTime - Updates the timestamp for when the API key resource will expire in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • forceUpdate

        UpdateKeyRequest.Builder forceUpdate​(Boolean forceUpdate)

        The boolean flag to be included for updating ExpireTime or Restrictions details.

        Must be set to true to update an API key resource that has been used in the past 7 days.

        False if force update is not preferred

        Default value: False

        Parameters:
        forceUpdate - The boolean flag to be included for updating ExpireTime or Restrictions details.

        Must be set to true to update an API key resource that has been used in the past 7 days.

        False if force update is not preferred

        Default value: False

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

        UpdateKeyRequest.Builder keyName​(String keyName)

        The name of the API key resource to update.

        Parameters:
        keyName - The name of the API key resource to update.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • noExpiry

        UpdateKeyRequest.Builder noExpiry​(Boolean noExpiry)

        Whether the API key should expire. Set to true to set the API key to have no expiration time.

        Parameters:
        noExpiry - Whether the API key should expire. Set to true to set the API key to have no expiration time.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • restrictions

        UpdateKeyRequest.Builder restrictions​(ApiKeyRestrictions restrictions)

        Updates the API key restrictions for the API key resource.

        Parameters:
        restrictions - Updates the API key restrictions for the API key resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.