Class ComputeCapacityReservation.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • availabilityDomain

        public ComputeCapacityReservation.Builder availabilityDomain​(String availabilityDomain)
        The availability domain of the compute capacity reservation.

        Example: Uocm:PHX-AD-1

        Parameters:
        availabilityDomain - the value to set
        Returns:
        this builder
      • compartmentId

        public ComputeCapacityReservation.Builder compartmentId​(String compartmentId)
        The OCID of the compartment containing the compute capacity reservation.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • definedTags

        public ComputeCapacityReservation.Builder definedTags​(Map<String,​Map<String,​Object>> definedTags)
        Defined tags for this resource.

        Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

        Example: {"Operations": {"CostCenter": "42"}}

        Parameters:
        definedTags - the value to set
        Returns:
        this builder
      • displayName

        public ComputeCapacityReservation.Builder displayName​(String displayName)
        A user-friendly name.

        Does not have to be unique, and it’s changeable. Avoid entering confidential information.

        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • freeformTags

        public ComputeCapacityReservation.Builder freeformTags​(Map<String,​String> freeformTags)
        Free-form tags for this resource.

        Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.

        Example: {"Department": "Finance"}

        Parameters:
        freeformTags - the value to set
        Returns:
        this builder
      • instanceReservationConfigs

        public ComputeCapacityReservation.Builder instanceReservationConfigs​(List<InstanceReservationConfig> instanceReservationConfigs)
        The capacity configurations for the capacity reservation.

        To use the reservation for the desired shape, specify the shape, count, and optionally the fault domain where you want this configuration.

        Parameters:
        instanceReservationConfigs - the value to set
        Returns:
        this builder
      • reservedInstanceCount

        public ComputeCapacityReservation.Builder reservedInstanceCount​(Long reservedInstanceCount)
        The number of instances for which capacity will be held with this compute capacity reservation.

        This number is the sum of the values of the reservedCount fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.

        Parameters:
        reservedInstanceCount - the value to set
        Returns:
        this builder
      • timeUpdated

        public ComputeCapacityReservation.Builder timeUpdated​(Date timeUpdated)
        The date and time the compute capacity reservation was updated, in the format defined by RFC3339.

        Example: 2016-08-25T21:10:29.600Z

        Parameters:
        timeUpdated - the value to set
        Returns:
        this builder
      • timeCreated

        public ComputeCapacityReservation.Builder timeCreated​(Date timeCreated)
        The date and time the compute capacity reservation was created, in the format defined by RFC3339.

        Example: 2016-08-25T21:10:29.600Z

        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • usedInstanceCount

        public ComputeCapacityReservation.Builder usedInstanceCount​(Long usedInstanceCount)
        The total number of instances currently consuming space in this compute capacity reservation.

        This number is the sum of the values of the usedCount fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.

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