Class ApiKeyItem.Builder

  • Enclosing class:
    ApiKeyItem

    public static class ApiKeyItem.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • keyName

        public ApiKeyItem.Builder keyName​(String keyName)
        The key name.
        Parameters:
        keyName - the value to set
        Returns:
        this builder
      • keyMask

        public ApiKeyItem.Builder keyMask​(String keyMask)
        The masked key.
        Parameters:
        keyMask - the value to set
        Returns:
        this builder
      • timeCreated

        public ApiKeyItem.Builder timeCreated​(Date timeCreated)
        The date and time that the key was created in the format of an RFC3339 datetime string.
        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • timeExpiry

        public ApiKeyItem.Builder timeExpiry​(Date timeExpiry)
        The date and time when the key would be expired, if not provided it would be 90 days, in the format defined by RFC 3339.
        Parameters:
        timeExpiry - the value to set
        Returns:
        this builder
      • timeActivated

        public ApiKeyItem.Builder timeActivated​(Date timeActivated)
        The date and time that the key is activated in the format of an RFC3339 datetime string.
        Parameters:
        timeActivated - the value to set
        Returns:
        this builder
      • timeDeactivated

        public ApiKeyItem.Builder timeDeactivated​(Date timeDeactivated)
        The date and time that the key is deactivated in the format of an RFC3339 datetime string.
        Parameters:
        timeDeactivated - the value to set
        Returns:
        this builder
      • timeRevoked

        public ApiKeyItem.Builder timeRevoked​(Date timeRevoked)
        The date and time that the key is revoked in the format of an RFC3339 datetime string.
        Parameters:
        timeRevoked - the value to set
        Returns:
        this builder
      • timeLastUsed

        public ApiKeyItem.Builder timeLastUsed​(Date timeLastUsed)
        The date and time that the key is last used in the format of an RFC3339 datetime string.
        Parameters:
        timeLastUsed - the value to set
        Returns:
        this builder