Class Items.Builder

  • Enclosing class:
    Items

    public static final class Items.Builder
    extends Object
    Builder to help construct the Items.
    • Constructor Detail

      • Builder

        protected Builder()
        Private default constructor.
    • Method Detail

      • create

        public Items.Builder create​(Create create)
        Set create.
        Parameters:
        create - The create operation description, if supported
        Returns:
        Builder
      • read

        public Items.Builder read​(Read read)
        Set Read.
        Parameters:
        read - The read operation description, if supported
        Returns:
        Builder
      • update

        public Items.Builder update​(Update update)
        Set Update.
        Parameters:
        update - The update operation description, if supported
        Returns:
        Builder
      • delete

        public Items.Builder delete​(Delete delete)
        Set Delete.
        Parameters:
        delete - The delete operation description, if supported
        Returns:
        Builder
      • patch

        public Items.Builder patch​(Patch patch)
        Set Patch.
        Parameters:
        patch - The patch operation description, if supported
        Returns:
        Builder
      • actions

        public Items.Builder actions​(List<Action> actions)
        Set Actions.
        Parameters:
        actions - The list of action operation descriptions, if supported
        Returns:
        Builder
      • action

        public Items.Builder action​(Action action)
        Adds one Action to the list of Actions.
        Parameters:
        action - Action operation description to be added to the list
        Returns:
        Builder
      • pathParameter

        public Items.Builder pathParameter​(Parameter pathParameter)
        Sets the path parameter for this resource.
        Parameters:
        pathParameter - The path parameter definition.
        Returns:
        Builder
      • subresources

        public Items.Builder subresources​(SubResources subresources)
        Sets the sub-resources for this resource.
        Parameters:
        subresources - The sub-reosurces definition.
        Returns:
        Builder
      • build

        public Items build()
        Construct a new instance of Resource.
        Returns:
        Resource instance