Class DiskScheduleAvailabilityRequest
java.lang.Object
com.azure.resourcemanager.databox.models.ScheduleAvailabilityRequest
com.azure.resourcemanager.databox.models.DiskScheduleAvailabilityRequest
Request body to get the availability for scheduling disk orders.
-
Constructor Summary
ConstructorDescriptionCreates an instance of DiskScheduleAvailabilityRequest class. -
Method Summary
Modifier and TypeMethodDescriptionint
Get the expectedDataSizeInTeraBytes property: The expected size of the data, which needs to be transferred in this job, in terabytes.void
validate()
Validates the instance.withCountry
(String country) Set the country property: Country in which storage location should be supported.withExpectedDataSizeInTeraBytes
(int expectedDataSizeInTeraBytes) Set the expectedDataSizeInTeraBytes property: The expected size of the data, which needs to be transferred in this job, in terabytes.withStorageLocation
(String storageLocation) Set the storageLocation property: Location for data transfer.Methods inherited from class com.azure.resourcemanager.databox.models.ScheduleAvailabilityRequest
country, storageLocation
-
Constructor Details
-
DiskScheduleAvailabilityRequest
public DiskScheduleAvailabilityRequest()Creates an instance of DiskScheduleAvailabilityRequest class.
-
-
Method Details
-
expectedDataSizeInTeraBytes
public int expectedDataSizeInTeraBytes()Get the expectedDataSizeInTeraBytes property: The expected size of the data, which needs to be transferred in this job, in terabytes.- Returns:
- the expectedDataSizeInTeraBytes value.
-
withExpectedDataSizeInTeraBytes
public DiskScheduleAvailabilityRequest withExpectedDataSizeInTeraBytes(int expectedDataSizeInTeraBytes) Set the expectedDataSizeInTeraBytes property: The expected size of the data, which needs to be transferred in this job, in terabytes.- Parameters:
expectedDataSizeInTeraBytes
- the expectedDataSizeInTeraBytes value to set.- Returns:
- the DiskScheduleAvailabilityRequest object itself.
-
withStorageLocation
Set the storageLocation property: Location for data transfer. For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01.- Overrides:
withStorageLocation
in classScheduleAvailabilityRequest
- Parameters:
storageLocation
- the storageLocation value to set.- Returns:
- the ScheduleAvailabilityRequest object itself.
-
withCountry
Set the country property: Country in which storage location should be supported.- Overrides:
withCountry
in classScheduleAvailabilityRequest
- Parameters:
country
- the country value to set.- Returns:
- the ScheduleAvailabilityRequest object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classScheduleAvailabilityRequest
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-