Class DataBoxScheduleAvailabilityRequest
java.lang.Object
com.azure.resourcemanager.databox.models.ScheduleAvailabilityRequest
com.azure.resourcemanager.databox.models.DataBoxScheduleAvailabilityRequest
Request body to get the availability for scheduling data box orders orders.
-
Constructor Summary
ConstructorDescriptionCreates an instance of DataBoxScheduleAvailabilityRequest class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
validate()
Validates the instance.withCountry
(String country) Set the country property: Country in which storage location should be supported.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
-
DataBoxScheduleAvailabilityRequest
public DataBoxScheduleAvailabilityRequest()Creates an instance of DataBoxScheduleAvailabilityRequest class.
-
-
Method Details
-
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.
-