org.appng.openapi.model

## Class Option

- java.lang.Object
- - org.appng.openapi.model.Option

-     @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
                 date="2023-03-20T12:57:48.851+01:00[Europe/Berlin]")
      public class Option
      extends Object

  A single option, used in a filter or an action-field.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `JSON_PROPERTY_HITS`
    `static String` | `JSON_PROPERTY_LABEL`
    `static String` | `JSON_PROPERTY_OPTIONS`
    `static String` | `JSON_PROPERTY_SELECTED`
    `static String` | `JSON_PROPERTY_VALUE`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Option()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Option` | `addOptionsItem(Option optionsItem)`
    `boolean` | `equals(Object o)`
    `Integer` | `getHits()` Tells how many hits there are for this option.
    `String` | `getLabel()` The label for this option.
    `List<Option>` | `getOptions()` An option can act as a group and thus can itself own a list of options.
    `Boolean` | `getSelected()` Whether or not this option is selected.
    `String` | `getValue()` The value for this option.
    `int` | `hashCode()`
    `Option` | `hits(Integer hits)`
    `Option` | `label(String label)`
    `Option` | `options(List<Option> options)`
    `Option` | `selected(Boolean selected)`
    `void` | `setHits(Integer hits)`
    `void` | `setLabel(String label)`
    `void` | `setOptions(List<Option> options)`
    `void` | `setSelected(Boolean selected)`
    `void` | `setValue(String value)`
    `String` | `toString()`
    `Option` | `value(String value)`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### JSON_PROPERTY_VALUE

          public static final String JSON_PROPERTY_VALUE

      See Also:
        Constant Field Values

    - #### JSON_PROPERTY_LABEL

          public static final String JSON_PROPERTY_LABEL

      See Also:
        Constant Field Values

    - #### JSON_PROPERTY_SELECTED

          public static final String JSON_PROPERTY_SELECTED

      See Also:
        Constant Field Values

    - #### JSON_PROPERTY_HITS

          public static final String JSON_PROPERTY_HITS

      See Also:
        Constant Field Values

    - #### JSON_PROPERTY_OPTIONS

          public static final String JSON_PROPERTY_OPTIONS

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### Option

          public Option()

  - ### Method Detail

    - #### value

          public Option value(String value)

    - #### getValue

          @Nullable
          public String getValue()

      The value for this option.
      Returns:
        value

    - #### setValue

          public void setValue(String value)

    - #### label

          public Option label(String label)

    - #### getLabel

          @Nullable
          public String getLabel()

      The label for this option.
      Returns:
        label

    - #### setLabel

          public void setLabel(String label)

    - #### selected

          public Option selected(Boolean selected)

    - #### getSelected

          @Nullable
          public Boolean getSelected()

      Whether or not this option is selected.
      Returns:
        selected

    - #### setSelected

          public void setSelected(Boolean selected)

    - #### hits

          public Option hits(Integer hits)

    - #### getHits

          @Nullable
          public Integer getHits()

      Tells how many hits there are for this option.
      Returns:
        hits

    - #### setHits

          public void setHits(Integer hits)

    - #### options

          public Option options(List<Option> options)

    - #### addOptionsItem

          public Option addOptionsItem(Option optionsItem)

    - #### getOptions

          @Nullable
          public List<Option> getOptions()

      An option can act as a group and thus can itself own a list of options.
      Returns:
        options

    - #### setOptions

          public void setOptions(List<Option> options)

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2011–2023 aiticon GmbH. All rights reserved.