Class ShareItemListRequest

  • All Implemented Interfaces:
    Serializable

    public class ShareItemListRequest
    extends Object
    implements Serializable
    A request body to share an item list. Describes which item list to share and who it should be shared with with which level of access.
    Author:
    Jacob Mitash
    See Also:
    ItemList, Serialized Form
    • Constructor Detail

      • ShareItemListRequest

        public ShareItemListRequest()
    • Method Detail

      • getListId

        public String getListId()
        The ID of the item list being shared. This will be populated from the request path.
        Returns:
        the ID of the item list being shared
      • getValueType

        public String getValueType()
        The type of values that this list will be shared with (e.g email address, customer ID, etc.). This corresponds to ShareItemListRequest.Target.value. See ItemListAccessRule.getType() for how this is used. See DefaultItemListAccessRuleType for the default supported values.
        Returns:
        the type of value this item list is being shared with
      • getRole

        public String getRole()
        The role that the targets this item list is being shared with will be granted. See ItemListAccessRule.getRole() for how this is used. See DefaultItemListAccessRuleRole for the default supported values.
        Returns:
        the role that the targets this item list is being shared with will be granted
      • setListId

        public void setListId​(String listId)
        The ID of the item list being shared. This will be populated from the request path.
        Parameters:
        listId - the ID of the item list being shared
      • setValueType

        public void setValueType​(String valueType)
        The type of values that this list will be shared with (e.g email address, customer ID, etc.). This corresponds to ShareItemListRequest.Target.value. See ItemListAccessRule.getType() for how this is used. See DefaultItemListAccessRuleType for the default supported values.
        Parameters:
        valueType - the type of value this item list is being shared with
      • setRole

        public void setRole​(String role)
        The role that the targets this item list is being shared with will be granted. See ItemListAccessRule.getRole() for how this is used. See DefaultItemListAccessRuleRole for the default supported values.
        Parameters:
        role - the role that the targets this item list is being shared with will be granted
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object