Class SoftwarePackage.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • displayName

        public SoftwarePackage.Builder displayName​(String displayName)
        Package name.
        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • name

        public SoftwarePackage.Builder name​(String name)
        Unique identifier for the package.

        Note that this is not an OCID.

        Parameters:
        name - the value to set
        Returns:
        this builder
      • version

        public SoftwarePackage.Builder version​(String version)
        Version of the package.
        Parameters:
        version - the value to set
        Returns:
        this builder
      • lastModifiedDate

        public SoftwarePackage.Builder lastModifiedDate​(String lastModifiedDate)
        The date and time the package was last modified (in RFC 3339 format).
        Parameters:
        lastModifiedDate - the value to set
        Returns:
        this builder
      • checksum

        public SoftwarePackage.Builder checksum​(String checksum)
        Checksum of the package.
        Parameters:
        checksum - the value to set
        Returns:
        this builder
      • checksumType

        public SoftwarePackage.Builder checksumType​(String checksumType)
        Type of the checksum.
        Parameters:
        checksumType - the value to set
        Returns:
        this builder
      • description

        public SoftwarePackage.Builder description​(String description)
        Description of the package.
        Parameters:
        description - the value to set
        Returns:
        this builder
      • sizeInBytes

        public SoftwarePackage.Builder sizeInBytes​(Long sizeInBytes)
        Size of the package in bytes.
        Parameters:
        sizeInBytes - the value to set
        Returns:
        this builder
      • softwareSources

        public SoftwarePackage.Builder softwareSources​(List<SoftwareSourceDetails> softwareSources)
        List of software sources that provide the software package.

        This property is deprecated and it will be removed in a future API release.

        Parameters:
        softwareSources - the value to set
        Returns:
        this builder
      • isLatest

        public SoftwarePackage.Builder isLatest​(Boolean isLatest)
        Indicates whether this package is the latest version.
        Parameters:
        isLatest - the value to set
        Returns:
        this builder
      • osFamilies

        public SoftwarePackage.Builder osFamilies​(List<OsFamily> osFamilies)
        The OS families the package belongs to.
        Parameters:
        osFamilies - the value to set
        Returns:
        this builder