Class UpdateItemRequest

java.lang.Object
dev.getelements.elements.sdk.model.goods.UpdateItemRequest

public class UpdateItemRequest extends Object
  • Constructor Details

    • UpdateItemRequest

      public UpdateItemRequest()
  • Method Details

    • getName

      @NotNull public @NotNull String getName()
      Get the unique name of the Item
      Returns:
      The unique name for the Item
    • setName

      public void setName(@NotNull @NotNull String name)
      Set the unique name for the Item
      Parameters:
      name - unique name for the Item
    • getTags

      public List<String> getTags()
      Get the tags for the Item. The returned List should be treated as immutable.
      Returns:
      The tags for an Item, or an empty List if the Item does not have any tags.
    • setTags

      public void setTags(List<String> tags)
      Sets the tags for the Item.
      Parameters:
      tags - The tags for the Item.
    • getDisplayName

      @NotNull public @NotNull String getDisplayName()
      Gets the display name for this item, suitable for use at the presentation tier.
      Returns:
      The display name for the Item
    • setDisplayName

      public void setDisplayName(@NotNull @NotNull String displayName)
      Sets the display name for this item.
      Parameters:
      displayName - The display name for this item
    • getDescription

      @NotNull public @NotNull String getDescription()
      Gets the long description for the Item
      Returns:
      The long description for the Item
    • setDescription

      public void setDescription(@NotNull @NotNull String description)
      Sets the long description for the Item
      Parameters:
      description - The long description for the Item
    • getMetadataSpec

      public MetadataSpec getMetadataSpec()
      Gets the metadata spec ID.
      Returns:
      the metadata spec id
    • setMetadataSpec

      public void setMetadataSpec(MetadataSpec metadataSpec)
      Sets the metadata spec ID.
      Parameters:
      metadataSpec - the metadata spec id
    • getMetadata

      public Map<String,Object> getMetadata()
      Gets a copy of metadata of string key-value pairs for this Item. Changes to the returned Map are not reflected on this Item.
      Returns:
      The metadata for the Item
    • setMetadata

      public void setMetadata(Map<String,Object> metadata)
      Sets the metadata of string key-value pairs for this Item.
      Parameters:
      metadata - The metadata for the Item
    • addMetadata

      public void addMetadata(String name, Object value)
    • isPublicVisible

      public Boolean isPublicVisible()
    • setPublicVisible

      public void setPublicVisible(Boolean publicVisible)
      Sets the visibility of this Item
      Parameters:
      publicVisible - The boolean flag for the Item
    • 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