Class Patch.Builder

  • Enclosing class:
    Patch

    public static class Patch.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public Patch.Builder id​(String id)
        The OCID of the patch.
        Parameters:
        id - the value to set
        Returns:
        this builder
      • description

        public Patch.Builder description​(String description)
        The text describing this patch package.
        Parameters:
        description - the value to set
        Returns:
        this builder
      • lastAction

        public Patch.Builder lastAction​(Patch.LastAction lastAction)
        Action that is currently being performed or was completed last.
        Parameters:
        lastAction - the value to set
        Returns:
        this builder
      • availableActions

        public Patch.Builder availableActions​(List<Patch.AvailableActions> availableActions)
        Actions that can possibly be performed using this patch.
        Parameters:
        availableActions - the value to set
        Returns:
        this builder
      • lifecycleDetails

        public Patch.Builder lifecycleDetails​(String lifecycleDetails)
        A descriptive text associated with the lifecycleState.

        Typically can contain additional displayable text.

        Parameters:
        lifecycleDetails - the value to set
        Returns:
        this builder
      • lifecycleState

        public Patch.Builder lifecycleState​(Patch.LifecycleState lifecycleState)
        The current state of the patch as a result of lastAction.
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • timeReleased

        public Patch.Builder timeReleased​(Date timeReleased)
        The date and time that the patch was released.
        Parameters:
        timeReleased - the value to set
        Returns:
        this builder
      • version

        public Patch.Builder version​(String version)
        The version of this patch package.
        Parameters:
        version - the value to set
        Returns:
        this builder
      • build

        public Patch build()