Class CreateVolumeDetails.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • availabilityDomain

        public CreateVolumeDetails.Builder availabilityDomain​(String availabilityDomain)
        The availability domain of the volume.

        Omissible for cloning a volume. The new volume will be created in the availability domain of the source volume.

        Example: Uocm:PHX-AD-1

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

        public CreateVolumeDetails.Builder backupPolicyId​(String backupPolicyId)
        If provided, specifies the ID of the volume backup policy to assign to the newly created volume.

        If omitted, no policy will be assigned.

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

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

        public CreateVolumeDetails.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 CreateVolumeDetails.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 CreateVolumeDetails.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
      • kmsKeyId

        public CreateVolumeDetails.Builder kmsKeyId​(String kmsKeyId)
        The OCID of the Vault service key to assign as the master encryption key for the volume.
        Parameters:
        kmsKeyId - the value to set
        Returns:
        this builder
      • vpusPerGB

        public CreateVolumeDetails.Builder vpusPerGB​(Long vpusPerGB)
        The number of volume performance units (VPUs) that will be applied to this volume per GB, representing the Block Volume service’s elastic performance options.

        See Block Volume Performance Levels for more information.

        Allowed values:

        0: Represents Lower Cost option.

        10: Represents Balanced option.

        20: Represents Higher Performance option.

        30-120: Represents the Ultra High Performance option.

        For performance autotune enabled volumes, it would be the Default(Minimum) VPUs/GB.

        Parameters:
        vpusPerGB - the value to set
        Returns:
        this builder
      • clusterPlacementGroupId

        public CreateVolumeDetails.Builder clusterPlacementGroupId​(String clusterPlacementGroupId)
        The clusterPlacementGroup Id of the volume for volume placement.
        Parameters:
        clusterPlacementGroupId - the value to set
        Returns:
        this builder
      • sizeInGBs

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

        public CreateVolumeDetails.Builder sizeInMBs​(Long sizeInMBs)
        The size of the volume in MBs.

        The value must be a multiple of 1024. This field is deprecated. Use sizeInGBs instead.

        Parameters:
        sizeInMBs - the value to set
        Returns:
        this builder
      • volumeBackupId

        public CreateVolumeDetails.Builder volumeBackupId​(String volumeBackupId)
        The OCID of the volume backup from which the data should be restored on the newly created volume.

        This field is deprecated. Use the sourceDetails field instead to specify the backup for the volume.

        Parameters:
        volumeBackupId - the value to set
        Returns:
        this builder
      • isAutoTuneEnabled

        public CreateVolumeDetails.Builder isAutoTuneEnabled​(Boolean isAutoTuneEnabled)
        Specifies whether the auto-tune performance is enabled for this volume.

        This field is deprecated. Use the DetachedVolumeAutotunePolicy instead to enable the volume for detached autotune.

        Parameters:
        isAutoTuneEnabled - the value to set
        Returns:
        this builder
      • blockVolumeReplicas

        public CreateVolumeDetails.Builder blockVolumeReplicas​(List<BlockVolumeReplicaDetails> blockVolumeReplicas)
        The list of block volume replicas to be enabled for this volume in the specified destination availability domains.
        Parameters:
        blockVolumeReplicas - the value to set
        Returns:
        this builder
      • autotunePolicies

        public CreateVolumeDetails.Builder autotunePolicies​(List<AutotunePolicy> autotunePolicies)
        The list of autotune policies to be enabled for this volume.
        Parameters:
        autotunePolicies - the value to set
        Returns:
        this builder
      • xrcKmsKeyId

        public CreateVolumeDetails.Builder xrcKmsKeyId​(String xrcKmsKeyId)
        The OCID of the Vault service key which is the master encryption key for the block volume cross region backups, which will be used in the destination region to encrypt the backup’s encryption keys.

        For more information about the Vault service and encryption keys, see Overview of Vault service and Using Keys.

        Parameters:
        xrcKmsKeyId - the value to set
        Returns:
        this builder
      • isReservationsEnabled

        public CreateVolumeDetails.Builder isReservationsEnabled​(Boolean isReservationsEnabled)
        Reservations-enabled is a boolean field that allows to enable PR (Persistent Reservation) on a volume.
        Parameters:
        isReservationsEnabled - the value to set
        Returns:
        this builder