Class ActionReviewPayloadField

    • Method Detail

      • displayName

        public final String displayName()

        The name of the field.

        Returns:
        The name of the field.
      • displayOrder

        public final Integer displayOrder()

        The display order of fields in a payload.

        Returns:
        The display order of fields in a payload.
      • displayDescription

        public final String displayDescription()

        The field level description of each action review input field. This could be an explanation of the field. In the Amazon Q Business web experience, these descriptions could be used to display as tool tips to help users understand the field.

        Returns:
        The field level description of each action review input field. This could be an explanation of the field. In the Amazon Q Business web experience, these descriptions could be used to display as tool tips to help users understand the field.
      • value

        public final Document value()

        The field value.

        Returns:
        The field value.
      • hasAllowedValues

        public final boolean hasAllowedValues()
        For responses, this returns true if the service returned a value for the AllowedValues property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • allowedValues

        public final List<ActionReviewPayloadFieldAllowedValue> allowedValues()

        Information about the field values that an end user can use to provide to Amazon Q Business for Amazon Q Business to perform the requested plugin action.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasAllowedValues() method.

        Returns:
        Information about the field values that an end user can use to provide to Amazon Q Business for Amazon Q Business to perform the requested plugin action.
      • allowedFormat

        public final String allowedFormat()

        The expected data format for the action review input field value. For example, in PTO request, from and to would be of datetime allowed format.

        Returns:
        The expected data format for the action review input field value. For example, in PTO request, from and to would be of datetime allowed format.
      • required

        public final Boolean required()

        Information about whether the field is required.

        Returns:
        Information about whether the field is required.
      • 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)