Package io.dialob.api.proto
Class ImmutableActionItem
java.lang.Object
io.dialob.api.proto.ImmutableActionItem
- All Implemented Interfaces:
ActionItem,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ImmutableActionItem
extends Object
implements ActionItem
Immutable implementation of
ActionItem.
Use the builder to create immutable instances:
ImmutableActionItem.builder().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableActionItem. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableActionItem.Builderbuilder()Creates a builder forImmutableActionItem.static ImmutableActionItemcopyOf(ActionItem instance) Creates an immutable copy of aActionItemvalue.booleanThis instance is equal to all instances ofImmutableActionItemthat have equal attribute values.getId()getItems()getLabel()getProps()getType()getValue()getView()inthashCode()Computes a hash code from attributes:id,type,view,label,description,inactive,disabled,required,className,value,items,activeItem,availableItems,allowedActions,answered,valueSetId,props.toString()Prints the immutable valueActionItemwith attribute values.final ImmutableActionItemwithActiveItem(String value) Copy the current immutable object by setting a value for theactiveItemattribute.final ImmutableActionItemwithAllowedActions(Action.Type... elements) Copy the current immutable object with elements that replace the content ofallowedActions.final ImmutableActionItemwithAllowedActions(Iterable<Action.Type> elements) Copy the current immutable object with elements that replace the content ofallowedActions.final ImmutableActionItemwithAnswered(Boolean value) Copy the current immutable object by setting a value for theansweredattribute.final ImmutableActionItemwithAvailableItems(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofavailableItems.final ImmutableActionItemwithAvailableItems(String... elements) Copy the current immutable object with elements that replace the content ofavailableItems.final ImmutableActionItemwithClassName(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofclassName.final ImmutableActionItemwithClassName(String... elements) Copy the current immutable object with elements that replace the content ofclassName.final ImmutableActionItemwithDescription(String value) Copy the current immutable object by setting a value for thedescriptionattribute.final ImmutableActionItemwithDisabled(Boolean value) Copy the current immutable object by setting a value for thedisabledattribute.final ImmutableActionItemCopy the current immutable object by setting a value for theidattribute.final ImmutableActionItemwithInactive(Boolean value) Copy the current immutable object by setting a value for theinactiveattribute.final ImmutableActionItemCopy the current immutable object with elements that replace the content ofitems.final ImmutableActionItemCopy the current immutable object with elements that replace the content ofitems.final ImmutableActionItemCopy the current immutable object by setting a value for thelabelattribute.final ImmutableActionItemCopy the current immutable object by replacing thepropsmap with the specified map.final ImmutableActionItemwithRequired(Boolean value) Copy the current immutable object by setting a value for therequiredattribute.final ImmutableActionItemCopy the current immutable object by setting a value for thetypeattribute.final ImmutableActionItemCopy the current immutable object by setting a value for thevalueattribute.final ImmutableActionItemwithValueSetId(String value) Copy the current immutable object by setting a value for thevalueSetIdattribute.final ImmutableActionItemCopy the current immutable object by setting a value for theviewattribute.
-
Method Details
-
getId
- Specified by:
getIdin interfaceActionItem- Returns:
- The value of the
idattribute
-
getType
- Specified by:
getTypein interfaceActionItem- Returns:
- The value of the
typeattribute
-
getView
- Specified by:
getViewin interfaceActionItem- Returns:
- The value of the
viewattribute
-
getLabel
- Specified by:
getLabelin interfaceActionItem- Returns:
- The value of the
labelattribute
-
getDescription
- Specified by:
getDescriptionin interfaceActionItem- Returns:
- The value of the
descriptionattribute
-
getInactive
- Specified by:
getInactivein interfaceActionItem- Returns:
- The value of the
inactiveattribute
-
getDisabled
- Specified by:
getDisabledin interfaceActionItem- Returns:
- The value of the
disabledattribute
-
getRequired
- Specified by:
getRequiredin interfaceActionItem- Returns:
- The value of the
requiredattribute
-
getClassName
- Specified by:
getClassNamein interfaceActionItem- Returns:
- The value of the
classNameattribute
-
getValue
- Specified by:
getValuein interfaceActionItem- Returns:
- The value of the
valueattribute
-
getItems
- Specified by:
getItemsin interfaceActionItem- Returns:
- The value of the
itemsattribute
-
getActiveItem
- Specified by:
getActiveItemin interfaceActionItem- Returns:
- The value of the
activeItemattribute
-
getAvailableItems
- Specified by:
getAvailableItemsin interfaceActionItem- Returns:
- The value of the
availableItemsattribute
-
getAllowedActions
- Specified by:
getAllowedActionsin interfaceActionItem- Returns:
- The value of the
allowedActionsattribute
-
getAnswered
- Specified by:
getAnsweredin interfaceActionItem- Returns:
- The value of the
answeredattribute
-
getValueSetId
- Specified by:
getValueSetIdin interfaceActionItem- Returns:
- The value of the
valueSetIdattribute
-
getProps
- Specified by:
getPropsin interfaceActionItem- Returns:
- The value of the
propsattribute
-
withId
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id- Returns:
- A modified copy of the
thisobject
-
withType
Copy the current immutable object by setting a value for thetypeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy of the
thisobject
-
withView
Copy the current immutable object by setting a value for theviewattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for view (can benull)- Returns:
- A modified copy of the
thisobject
-
withLabel
Copy the current immutable object by setting a value for thelabelattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for label (can benull)- Returns:
- A modified copy of the
thisobject
-
withDescription
Copy the current immutable object by setting a value for thedescriptionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for description (can benull)- Returns:
- A modified copy of the
thisobject
-
withInactive
Copy the current immutable object by setting a value for theinactiveattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for inactive (can benull)- Returns:
- A modified copy of the
thisobject
-
withDisabled
Copy the current immutable object by setting a value for thedisabledattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for disabled (can benull)- Returns:
- A modified copy of the
thisobject
-
withRequired
Copy the current immutable object by setting a value for therequiredattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for required (can benull)- Returns:
- A modified copy of the
thisobject
-
withClassName
Copy the current immutable object with elements that replace the content ofclassName.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withClassName
Copy the current immutable object with elements that replace the content ofclassName. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of className elements to set- Returns:
- A modified copy of
thisobject
-
withValue
Copy the current immutable object by setting a value for thevalueattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for value (can benull)- Returns:
- A modified copy of the
thisobject
-
withItems
Copy the current immutable object with elements that replace the content ofitems.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withItems
Copy the current immutable object with elements that replace the content ofitems. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of items elements to set- Returns:
- A modified copy of
thisobject
-
withActiveItem
Copy the current immutable object by setting a value for theactiveItemattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for activeItem (can benull)- Returns:
- A modified copy of the
thisobject
-
withAvailableItems
Copy the current immutable object with elements that replace the content ofavailableItems.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withAvailableItems
Copy the current immutable object with elements that replace the content ofavailableItems. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of availableItems elements to set- Returns:
- A modified copy of
thisobject
-
withAllowedActions
Copy the current immutable object with elements that replace the content ofallowedActions.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withAllowedActions
Copy the current immutable object with elements that replace the content ofallowedActions. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of allowedActions elements to set- Returns:
- A modified copy of
thisobject
-
withAnswered
Copy the current immutable object by setting a value for theansweredattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for answered (can benull)- Returns:
- A modified copy of the
thisobject
-
withValueSetId
Copy the current immutable object by setting a value for thevalueSetIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for valueSetId (can benull)- Returns:
- A modified copy of the
thisobject
-
withProps
Copy the current immutable object by replacing thepropsmap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the props map- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableActionItemthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,type,view,label,description,inactive,disabled,required,className,value,items,activeItem,availableItems,allowedActions,answered,valueSetId,props. -
toString
Prints the immutable valueActionItemwith attribute values. -
copyOf
Creates an immutable copy of aActionItemvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable ActionItem instance
-
builder
Creates a builder forImmutableActionItem.ImmutableActionItem.builder() .id(String) // requiredid.type(String) // requiredtype.view(String | null) // nullableview.label(String | null) // nullablelabel.description(String | null) // nullabledescription.inactive(Boolean | null) // nullableinactive.disabled(Boolean | null) // nullabledisabled.required(Boolean | null) // nullablerequired.className(List<String> | null) // nullableclassName.value(Object | null) // nullablevalue.items(List<String> | null) // nullableitems.activeItem(String | null) // nullableactiveItem.availableItems(List<String> | null) // nullableavailableItems.allowedActions(Set<io.dialob.api.proto.Action.Type> | null) // nullableallowedActions.answered(Boolean | null) // nullableanswered.valueSetId(String | null) // nullablevalueSetId.props(Map<String, Object> | null) // nullableprops.build();- Returns:
- A new ImmutableActionItem builder
-