Class JreUsage.Builder

  • Enclosing class:
    JreUsage

    public static class JreUsage.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public JreUsage.Builder id​(String id)
        The internal identifier of the Java Runtime.
        Parameters:
        id - the value to set
        Returns:
        this builder
      • fleetId

        public JreUsage.Builder fleetId​(String fleetId)
        The OCID of the related fleet.
        Parameters:
        fleetId - the value to set
        Returns:
        this builder
      • managedInstanceId

        public JreUsage.Builder managedInstanceId​(String managedInstanceId)
        The OCID of the related managed instance.

        This property value is present only for /listJreUsage.

        Parameters:
        managedInstanceId - the value to set
        Returns:
        this builder
      • securityStatus

        public JreUsage.Builder securityStatus​(JreSecurityStatus securityStatus)
        The security status of the Java Runtime.
        Parameters:
        securityStatus - the value to set
        Returns:
        this builder
      • releaseDate

        public JreUsage.Builder releaseDate​(Date releaseDate)
        The release date of the Java Runtime (formatted according to RFC3339).
        Parameters:
        releaseDate - the value to set
        Returns:
        this builder
      • endOfSupportLifeDate

        public JreUsage.Builder endOfSupportLifeDate​(Date endOfSupportLifeDate)
        The End of Support Life (EOSL) date of the Java Runtime (formatted according to RFC3339).
        Parameters:
        endOfSupportLifeDate - the value to set
        Returns:
        this builder
      • vendor

        public JreUsage.Builder vendor​(String vendor)
        The vendor of the Java Runtime.
        Parameters:
        vendor - the value to set
        Returns:
        this builder
      • distribution

        public JreUsage.Builder distribution​(String distribution)
        The distribution of a Java Runtime is the name of the lineage of product to which it belongs, for example Java(TM) SE Runtime Environment.
        Parameters:
        distribution - the value to set
        Returns:
        this builder
      • version

        public JreUsage.Builder version​(String version)
        The version of the Java Runtime.
        Parameters:
        version - the value to set
        Returns:
        this builder
      • daysUnderSecurityBaseline

        public JreUsage.Builder daysUnderSecurityBaseline​(Integer daysUnderSecurityBaseline)
        The number of days since this release has been under the security baseline.
        Parameters:
        daysUnderSecurityBaseline - the value to set
        Returns:
        this builder
      • operatingSystems

        public JreUsage.Builder operatingSystems​(List<OperatingSystem> operatingSystems)
        The operating systems that have this Java Runtime installed.
        Parameters:
        operatingSystems - the value to set
        Returns:
        this builder
      • approximateInstallationCount

        public JreUsage.Builder approximateInstallationCount​(Integer approximateInstallationCount)
        The approximate count of installations that are installations of this Java Runtime.
        Parameters:
        approximateInstallationCount - the value to set
        Returns:
        this builder
      • approximateApplicationCount

        public JreUsage.Builder approximateApplicationCount​(Integer approximateApplicationCount)
        The approximate count of the applications running on this Java Runtime.
        Parameters:
        approximateApplicationCount - the value to set
        Returns:
        this builder
      • approximateManagedInstanceCount

        public JreUsage.Builder approximateManagedInstanceCount​(Integer approximateManagedInstanceCount)
        The approximate count of the managed instances that report this Java Runtime.
        Parameters:
        approximateManagedInstanceCount - the value to set
        Returns:
        this builder
      • approximatePendingWorkRequestCount

        public JreUsage.Builder approximatePendingWorkRequestCount​(Integer approximatePendingWorkRequestCount)
        The approximate count of work requests working on this Java Runtime.
        Parameters:
        approximatePendingWorkRequestCount - the value to set
        Returns:
        this builder
      • timeStart

        public JreUsage.Builder timeStart​(Date timeStart)
        Lower bound of the specified time period filter.

        JMS provides a view of the data that is per day. The query uses only the date element of the parameter.

        Parameters:
        timeStart - the value to set
        Returns:
        this builder
      • timeEnd

        public JreUsage.Builder timeEnd​(Date timeEnd)
        Upper bound of the specified time period filter.

        JMS provides a view of the data that is per day. The query uses only the date element of the parameter.

        Parameters:
        timeEnd - the value to set
        Returns:
        this builder
      • timeFirstSeen

        public JreUsage.Builder timeFirstSeen​(Date timeFirstSeen)
        The date and time the resource was first reported to JMS.

        This is potentially before the specified time period provided by the filters. For example, a resource can be first reported to JMS before the start of a specified time period, if it is also reported during the time period.

        Parameters:
        timeFirstSeen - the value to set
        Returns:
        this builder
      • timeLastSeen

        public JreUsage.Builder timeLastSeen​(Date timeLastSeen)
        The date and time the resource was last reported to JMS.

        This is potentially after the specified time period provided by the filters. For example, a resource can be last reported to JMS before the start of a specified time period, if it is also reported during the time period.

        Parameters:
        timeLastSeen - the value to set
        Returns:
        this builder