Class EntitlementValue

    • Method Detail

      • integerValue

        public final Integer integerValue()

        The IntegerValue field will be populated with an integer value when the entitlement is an integer type. Otherwise, the field will not be set.

        Returns:
        The IntegerValue field will be populated with an integer value when the entitlement is an integer type. Otherwise, the field will not be set.
      • doubleValue

        public final Double doubleValue()

        The DoubleValue field will be populated with a double value when the entitlement is a double type. Otherwise, the field will not be set.

        Returns:
        The DoubleValue field will be populated with a double value when the entitlement is a double type. Otherwise, the field will not be set.
      • booleanValue

        public final Boolean booleanValue()

        The BooleanValue field will be populated with a boolean value when the entitlement is a boolean type. Otherwise, the field will not be set.

        Returns:
        The BooleanValue field will be populated with a boolean value when the entitlement is a boolean type. Otherwise, the field will not be set.
      • stringValue

        public final String stringValue()

        The StringValue field will be populated with a string value when the entitlement is a string type. Otherwise, the field will not be set.

        Returns:
        The StringValue field will be populated with a string value when the entitlement is a string type. Otherwise, the field will not be set.
      • 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)
      • fromIntegerValue

        public static EntitlementValue fromIntegerValue​(Integer integerValue)
        Create an instance of this class with integerValue() initialized to the given value.

        The IntegerValue field will be populated with an integer value when the entitlement is an integer type. Otherwise, the field will not be set.

        Parameters:
        integerValue - The IntegerValue field will be populated with an integer value when the entitlement is an integer type. Otherwise, the field will not be set.
      • fromDoubleValue

        public static EntitlementValue fromDoubleValue​(Double doubleValue)
        Create an instance of this class with doubleValue() initialized to the given value.

        The DoubleValue field will be populated with a double value when the entitlement is a double type. Otherwise, the field will not be set.

        Parameters:
        doubleValue - The DoubleValue field will be populated with a double value when the entitlement is a double type. Otherwise, the field will not be set.
      • fromBooleanValue

        public static EntitlementValue fromBooleanValue​(Boolean booleanValue)
        Create an instance of this class with booleanValue() initialized to the given value.

        The BooleanValue field will be populated with a boolean value when the entitlement is a boolean type. Otherwise, the field will not be set.

        Parameters:
        booleanValue - The BooleanValue field will be populated with a boolean value when the entitlement is a boolean type. Otherwise, the field will not be set.
      • fromStringValue

        public static EntitlementValue fromStringValue​(String stringValue)
        Create an instance of this class with stringValue() initialized to the given value.

        The StringValue field will be populated with a string value when the entitlement is a string type. Otherwise, the field will not be set.

        Parameters:
        stringValue - The StringValue field will be populated with a string value when the entitlement is a string type. Otherwise, the field will not be set.