Class ResourceStatistics.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • usage

        public ResourceStatistics.Builder usage​(Double usage)
        Total amount used of the resource metric type (CPU, STORAGE).
        Parameters:
        usage - the value to set
        Returns:
        this builder
      • capacity

        public ResourceStatistics.Builder capacity​(Double capacity)
        The maximum allocated amount of the resource metric type (CPU, STORAGE) for a set of databases.
        Parameters:
        capacity - the value to set
        Returns:
        this builder
      • baseCapacity

        public ResourceStatistics.Builder baseCapacity​(Double baseCapacity)
        The base allocated amount of the resource metric type (CPU, STORAGE) for a set of databases.
        Parameters:
        baseCapacity - the value to set
        Returns:
        this builder
      • isAutoScalingEnabled

        public ResourceStatistics.Builder isAutoScalingEnabled​(Boolean isAutoScalingEnabled)
        Indicates if auto scaling feature is enabled or disabled on a database.

        It will be false for all metrics other than CPU.

        Parameters:
        isAutoScalingEnabled - the value to set
        Returns:
        this builder
      • utilizationPercent

        public ResourceStatistics.Builder utilizationPercent​(Double utilizationPercent)
        Resource utilization in percentage
        Parameters:
        utilizationPercent - the value to set
        Returns:
        this builder
      • usageChangePercent

        public ResourceStatistics.Builder usageChangePercent​(Double usageChangePercent)
        Change in resource utilization in percentage
        Parameters:
        usageChangePercent - the value to set
        Returns:
        this builder
      • totalHostCapacity

        public ResourceStatistics.Builder totalHostCapacity​(Double totalHostCapacity)
        The maximum host CPUs (cores x threads/core) on the underlying infrastructure.

        This only applies to CPU and does not not apply for Autonomous Databases.

        Parameters:
        totalHostCapacity - the value to set
        Returns:
        this builder
      • isHeatWaveClusterAttached

        public ResourceStatistics.Builder isHeatWaveClusterAttached​(Boolean isHeatWaveClusterAttached)
        Specifies if MYSQL DB System has heatwave cluster attached.
        Parameters:
        isHeatWaveClusterAttached - the value to set
        Returns:
        this builder
      • isHighlyAvailable

        public ResourceStatistics.Builder isHighlyAvailable​(Boolean isHighlyAvailable)
        Specifies if MYSQL DB System is highly available.
        Parameters:
        isHighlyAvailable - the value to set
        Returns:
        this builder