Class SkuAvailabilityValidationRequest
java.lang.Object
com.azure.resourcemanager.databox.models.ValidationInputRequest
com.azure.resourcemanager.databox.models.SkuAvailabilityValidationRequest
Request to validate sku availability.
-
Constructor Summary
ConstructorDescriptionCreates an instance of SkuAvailabilityValidationRequest class. -
Method Summary
Modifier and TypeMethodDescriptioncountry()
Get the country property: ISO country code.Get the deviceType property: Device type to be used for the job.location()
Get the location property: Location for data transfer.Get the transferType property: Type of the transfer.void
validate()
Validates the instance.withCountry
(String country) Set the country property: ISO country code.withDeviceType
(SkuName deviceType) Set the deviceType property: Device type to be used for the job.withLocation
(String location) Set the location property: Location for data transfer.withTransferType
(TransferType transferType) Set the transferType property: Type of the transfer.
-
Constructor Details
-
SkuAvailabilityValidationRequest
public SkuAvailabilityValidationRequest()Creates an instance of SkuAvailabilityValidationRequest class.
-
-
Method Details
-
deviceType
Get the deviceType property: Device type to be used for the job.- Returns:
- the deviceType value.
-
withDeviceType
Set the deviceType property: Device type to be used for the job.- Parameters:
deviceType
- the deviceType value to set.- Returns:
- the SkuAvailabilityValidationRequest object itself.
-
transferType
Get the transferType property: Type of the transfer.- Returns:
- the transferType value.
-
withTransferType
Set the transferType property: Type of the transfer.- Parameters:
transferType
- the transferType value to set.- Returns:
- the SkuAvailabilityValidationRequest object itself.
-
country
Get the country property: ISO country code. Country for hardware shipment. For codes check: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements.- Returns:
- the country value.
-
withCountry
Set the country property: ISO country code. Country for hardware shipment. For codes check: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements.- Parameters:
country
- the country value to set.- Returns:
- the SkuAvailabilityValidationRequest object itself.
-
location
Get the location property: Location for data transfer. For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01.- Returns:
- the location value.
-
withLocation
Set the location property: Location for data transfer. For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01.- Parameters:
location
- the location value to set.- Returns:
- the SkuAvailabilityValidationRequest object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classValidationInputRequest
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-