Class AccountAttribute

    • Method Detail

      • name

        public final String name()

        The attribute name. The following are supported attribute names.

        • ServerLimit: The number of current servers/maximum number of servers allowed. By default, you can have a maximum of 10 servers.

        • ManualBackupLimit: The number of current manual backups/maximum number of backups allowed. By default, you can have a maximum of 50 manual backups saved.

        Returns:
        The attribute name. The following are supported attribute names.

        • ServerLimit: The number of current servers/maximum number of servers allowed. By default, you can have a maximum of 10 servers.

        • ManualBackupLimit: The number of current manual backups/maximum number of backups allowed. By default, you can have a maximum of 50 manual backups saved.

      • maximum

        public final Integer maximum()

        The maximum allowed value.

        Returns:
        The maximum allowed value.
      • used

        public final Integer used()

        The current usage, such as the current number of servers that are associated with the account.

        Returns:
        The current usage, such as the current number of servers that are associated with the account.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)