Class SpendLimit

    • Method Detail

      • nameAsString

        public final String nameAsString()

        The name for the SpendLimit.

        If the service returns an enum value that is not available in the current SDK version, name will return SpendLimitName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from nameAsString().

        Returns:
        The name for the SpendLimit.
        See Also:
        SpendLimitName
      • enforcedLimit

        public final Long enforcedLimit()

        The maximum amount of money, in US dollars, that you want to be able to spend sending messages each month. This value has to be less than or equal to the amount in MaxLimit. To use this custom limit, Overridden must be set to true.

        Returns:
        The maximum amount of money, in US dollars, that you want to be able to spend sending messages each month. This value has to be less than or equal to the amount in MaxLimit. To use this custom limit, Overridden must be set to true.
      • maxLimit

        public final Long maxLimit()

        The maximum amount of money that you are able to spend to send messages each month, in US dollars.

        Returns:
        The maximum amount of money that you are able to spend to send messages each month, in US dollars.
      • overridden

        public final Boolean overridden()

        When set to True, the value that has been specified in the EnforcedLimit is used to determine the maximum amount in US dollars that can be spent to send messages each month, in US dollars.

        Returns:
        When set to True, the value that has been specified in the EnforcedLimit is used to determine the maximum amount in US dollars that can be spent to send messages each month, in US dollars.
      • 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)