Package org.appng.api.rest.model
Class Option
- java.lang.Object
-
- org.appng.api.rest.model.Option
-
- All Implemented Interfaces:
Serializable
@Generated(value="io.swagger.codegen.languages.JavaClientCodegen", date="2022-07-11T10:59:30.443+02:00") public class Option extends Object implements Serializable
A single option, used in a filter or an action-field.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Option()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.String
getValue()
The value for this option.int
hashCode()
Option
hits(Integer hits)
Boolean
isSelected()
Whether or not this option is selected.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)
-
-
-
Method Detail
-
getValue
public String getValue()
The value for this option.- Returns:
- value
-
setValue
public void setValue(String value)
-
getLabel
public String getLabel()
The label for this option.- Returns:
- label
-
setLabel
public void setLabel(String label)
-
isSelected
public Boolean isSelected()
Whether or not this option is selected.- Returns:
- selected
-
setSelected
public void setSelected(Boolean selected)
-
getHits
public Integer getHits()
Tells how many hits there are for this option.- Returns:
- hits
-
setHits
public void setHits(Integer hits)
-
getOptions
public List<Option> getOptions()
An option can act as a group and thus can itself own a list of options.- Returns:
- options
-
-