Class VolumeGroup.Builder

  • Enclosing class:
    VolumeGroup

    public static class VolumeGroup.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • availabilityDomain

        public VolumeGroup.Builder availabilityDomain​(String availabilityDomain)
        The availability domain of the volume group.
        Parameters:
        availabilityDomain - the value to set
        Returns:
        this builder
      • compartmentId

        public VolumeGroup.Builder compartmentId​(String compartmentId)
        The OCID of the compartment that contains the volume group.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • definedTags

        public VolumeGroup.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 VolumeGroup.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 VolumeGroup.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
      • id

        public VolumeGroup.Builder id​(String id)
        The OCID for the volume group.
        Parameters:
        id - the value to set
        Returns:
        this builder
      • sizeInMBs

        public VolumeGroup.Builder sizeInMBs​(Long sizeInMBs)
        The aggregate size of the volume group in MBs.
        Parameters:
        sizeInMBs - the value to set
        Returns:
        this builder
      • sizeInGBs

        public VolumeGroup.Builder sizeInGBs​(Long sizeInGBs)
        The aggregate size of the volume group in GBs.
        Parameters:
        sizeInGBs - the value to set
        Returns:
        this builder
      • timeCreated

        public VolumeGroup.Builder timeCreated​(Date timeCreated)
        The date and time the volume group was created.

        Format defined by RFC3339.

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

        public VolumeGroup.Builder volumeIds​(List<String> volumeIds)
        OCIDs for the volumes in this volume group.
        Parameters:
        volumeIds - the value to set
        Returns:
        this builder
      • isHydrated

        public VolumeGroup.Builder isHydrated​(Boolean isHydrated)
        Specifies whether the newly created cloned volume group’s data has finished copying from the source volume group or backup.
        Parameters:
        isHydrated - the value to set
        Returns:
        this builder
      • volumeGroupReplicas

        public VolumeGroup.Builder volumeGroupReplicas​(List<VolumeGroupReplicaInfo> volumeGroupReplicas)
        The list of volume group replicas of this volume group.
        Parameters:
        volumeGroupReplicas - the value to set
        Returns:
        this builder