### YamlMime:JavaType uid: "com.azure.resourcemanager.batch.models.DataDisk" fullName: "com.azure.resourcemanager.batch.models.DataDisk" name: "DataDisk" nameWithType: "DataDisk" summary: "Settings which will be used by the data disks associated to Compute Nodes in the Pool." inheritances: - "" inheritedClassMethods: - classRef: "java.lang.Object" methodsRef: - "clone" - "equals" - "finalize" - "getClass" - "hashCode" - "notify" - "notifyAll" - "toString" - "wait" - "wait" - "wait" syntax: "public final class **DataDisk**" constructors: - uid: "com.azure.resourcemanager.batch.models.DataDisk.DataDisk()" fullName: "com.azure.resourcemanager.batch.models.DataDisk.DataDisk()" name: "DataDisk()" nameWithType: "DataDisk.DataDisk()" syntax: "public DataDisk()" methods: - uid: "com.azure.resourcemanager.batch.models.DataDisk.caching()" fullName: "com.azure.resourcemanager.batch.models.DataDisk.caching()" name: "caching()" nameWithType: "DataDisk.caching()" summary: "Get the caching property: The type of caching to enable for the disk." syntax: "public CachingType caching()" desc: "Get the caching property: The type of caching to enable for the disk. Values are:\n\nnone - The caching mode for the disk is not enabled. readOnly - The caching mode for the disk is read only. readWrite - The caching mode for the disk is read and write.\n\nThe default value for caching is none. For information about the caching options see: https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/." returns: description: "the caching value." type: "" - uid: "com.azure.resourcemanager.batch.models.DataDisk.diskSizeGB()" fullName: "com.azure.resourcemanager.batch.models.DataDisk.diskSizeGB()" name: "diskSizeGB()" nameWithType: "DataDisk.diskSizeGB()" summary: "Get the diskSizeGB property: The initial disk size in GB when creating new data disk." syntax: "public int diskSizeGB()" desc: "Get the diskSizeGB property: The initial disk size in GB when creating new data disk." returns: description: "the diskSizeGB value." type: "" - uid: "com.azure.resourcemanager.batch.models.DataDisk.lun()" fullName: "com.azure.resourcemanager.batch.models.DataDisk.lun()" name: "lun()" nameWithType: "DataDisk.lun()" summary: "Get the lun property: The logical unit number." syntax: "public int lun()" desc: "Get the lun property: The logical unit number. The lun is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct lun. The value must be between 0 and 63, inclusive." returns: description: "the lun value." type: "" - uid: "com.azure.resourcemanager.batch.models.DataDisk.storageAccountType()" fullName: "com.azure.resourcemanager.batch.models.DataDisk.storageAccountType()" name: "storageAccountType()" nameWithType: "DataDisk.storageAccountType()" summary: "Get the storageAccountType property: The storage account type for use in creating data disks." syntax: "public StorageAccountType storageAccountType()" desc: "Get the storageAccountType property: The storage account type for use in creating data disks. If omitted, the default is \"Standard\\_LRS\". Values are:\n\nStandard\\_LRS - The data disk should use standard locally redundant storage. Premium\\_LRS - The data disk should use premium locally redundant storage." returns: description: "the storageAccountType value." type: "" - uid: "com.azure.resourcemanager.batch.models.DataDisk.validate()" fullName: "com.azure.resourcemanager.batch.models.DataDisk.validate()" name: "validate()" nameWithType: "DataDisk.validate()" summary: "Validates the instance." syntax: "public void validate()" desc: "Validates the instance." - uid: "com.azure.resourcemanager.batch.models.DataDisk.withCaching(com.azure.resourcemanager.batch.models.CachingType)" fullName: "com.azure.resourcemanager.batch.models.DataDisk.withCaching(CachingType caching)" name: "withCaching(CachingType caching)" nameWithType: "DataDisk.withCaching(CachingType caching)" summary: "Set the caching property: The type of caching to enable for the disk." parameters: - description: "the caching value to set." name: "caching" type: "" syntax: "public DataDisk withCaching(CachingType caching)" desc: "Set the caching property: The type of caching to enable for the disk. Values are:\n\nnone - The caching mode for the disk is not enabled. readOnly - The caching mode for the disk is read only. readWrite - The caching mode for the disk is read and write.\n\nThe default value for caching is none. For information about the caching options see: https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/." returns: description: "the DataDisk object itself." type: "" - uid: "com.azure.resourcemanager.batch.models.DataDisk.withDiskSizeGB(int)" fullName: "com.azure.resourcemanager.batch.models.DataDisk.withDiskSizeGB(int diskSizeGB)" name: "withDiskSizeGB(int diskSizeGB)" nameWithType: "DataDisk.withDiskSizeGB(int diskSizeGB)" summary: "Set the diskSizeGB property: The initial disk size in GB when creating new data disk." parameters: - description: "the diskSizeGB value to set." name: "diskSizeGB" type: "" syntax: "public DataDisk withDiskSizeGB(int diskSizeGB)" desc: "Set the diskSizeGB property: The initial disk size in GB when creating new data disk." returns: description: "the DataDisk object itself." type: "" - uid: "com.azure.resourcemanager.batch.models.DataDisk.withLun(int)" fullName: "com.azure.resourcemanager.batch.models.DataDisk.withLun(int lun)" name: "withLun(int lun)" nameWithType: "DataDisk.withLun(int lun)" summary: "Set the lun property: The logical unit number." parameters: - description: "the lun value to set." name: "lun" type: "" syntax: "public DataDisk withLun(int lun)" desc: "Set the lun property: The logical unit number. The lun is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct lun. The value must be between 0 and 63, inclusive." returns: description: "the DataDisk object itself." type: "" - uid: "com.azure.resourcemanager.batch.models.DataDisk.withStorageAccountType(com.azure.resourcemanager.batch.models.StorageAccountType)" fullName: "com.azure.resourcemanager.batch.models.DataDisk.withStorageAccountType(StorageAccountType storageAccountType)" name: "withStorageAccountType(StorageAccountType storageAccountType)" nameWithType: "DataDisk.withStorageAccountType(StorageAccountType storageAccountType)" summary: "Set the storageAccountType property: The storage account type for use in creating data disks." parameters: - description: "the storageAccountType value to set." name: "storageAccountType" type: "" syntax: "public DataDisk withStorageAccountType(StorageAccountType storageAccountType)" desc: "Set the storageAccountType property: The storage account type for use in creating data disks. If omitted, the default is \"Standard\\_LRS\". Values are:\n\nStandard\\_LRS - The data disk should use standard locally redundant storage. Premium\\_LRS - The data disk should use premium locally redundant storage." returns: description: "the DataDisk object itself." type: "" type: "class" desc: "Settings which will be used by the data disks associated to Compute Nodes in the Pool. When using attached data disks, you need to mount and format the disks from within a VM to use them." metadata: {} package: "com.azure.resourcemanager.batch.models" artifact: com.azure.resourcemanager:azure-resourcemanager-batch:1.0.0