Class ListItemAttributeDTOBuilder

java.lang.Object
de.hybris.platform.integrationbackoffice.widgets.modeling.data.dto.ListItemAttributeDTOBuilder

public class ListItemAttributeDTOBuilder extends Object
  • Method Details

    • withSelected

      public ListItemAttributeDTOBuilder withSelected(boolean selected)
      Sets the value of the selected field for the list item to build.
      Parameters:
      selected - if the list item is selected.
      Returns:
      a builder with the field set.
    • withCustomUnique

      public ListItemAttributeDTOBuilder withCustomUnique(boolean customUnique)
      Sets the value of the customUnique field for the list item to build.
      Parameters:
      customUnique - if the list item's custom unique checkbox is checked.
      Returns:
      a builder with the field set.
    • withAutocreate

      public ListItemAttributeDTOBuilder withAutocreate(boolean autocreate)
      Sets the value of the autocreate field for the list item to build.
      Parameters:
      autocreate - if the list item autocreate checkbox is checked.
      Returns:
      a builder with the field set.
    • withAttributeName

      public ListItemAttributeDTOBuilder withAttributeName(String attributeName)
      Sets the value of the attribute name field for the list item to build.
      Parameters:
      attributeName - the name of the attribute the list item represents.
      Returns:
      a builder with the field set.
    • withTypeAlias

      public ListItemAttributeDTOBuilder withTypeAlias(String typeAlias)
      Sets the value of the itemCode field for the list item to build.
      Parameters:
      typeAlias - the code of the IntegrationObjectItemModel of the attribute the list item represents, if the attribute is of complex type.
      Returns:
      a builder with the field set.
    • build

      public ListItemAttributeDTO build()
      Instantiates a ListItemAttributeDTO with values provided or otherwise default values.
      Returns:
      a ListItemAttributeDTO with the values provided.