SkuAvailabilityValidationRequest Class
- java.
lang. Object - com.
azure. resourcemanager. databox. models. ValidationInputRequest - com.
azure. resourcemanager. databox. models. SkuAvailabilityValidationRequest
- com.
- com.
public final class SkuAvailabilityValidationRequest
extends ValidationInputRequest
Request to validate sku availability.
Constructor Summary
| Constructor | Description |
|---|---|
| SkuAvailabilityValidationRequest() |
Creates an instance of Sku |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
country()
Get the country property: ISO country code. |
|
Sku |
deviceType()
Get the device |
|
static
Sku |
fromJson(JsonReader jsonReader)
Reads an instance of Sku |
| String |
location()
Get the location property: Location for data transfer. |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Transfer |
transferType()
Get the transfer |
| void |
validate()
Validates the instance. |
|
Validation |
validationType()
Get the validation |
|
Sku |
withCountry(String country)
Set the country property: ISO country code. |
|
Sku |
withDeviceType(SkuName deviceType)
Set the device |
|
Sku |
withLocation(String location)
Set the location property: Location for data transfer. |
|
Sku |
withTransferType(TransferType transferType)
Set the transfer |
Methods inherited from ValidationInputRequest
Methods inherited from java.lang.Object
Constructor Details
SkuAvailabilityValidationRequest
public SkuAvailabilityValidationRequest()
Creates an instance of SkuAvailabilityValidationRequest class.
Method Details
country
public String 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:
deviceType
public SkuName deviceType()
Get the deviceType property: Device type to be used for the job.
Returns:
fromJson
public static SkuAvailabilityValidationRequest fromJson(JsonReader jsonReader)
Reads an instance of SkuAvailabilityValidationRequest from the JsonReader.
Parameters:
Returns:
Throws:
location
public String 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:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
SkuAvailabilityValidationRequest.toJson(JsonWriter jsonWriter)Parameters:
Throws:
transferType
public TransferType transferType()
Get the transferType property: Type of the transfer.
Returns:
validate
public void validate()
Validates the instance.
Overrides:
SkuAvailabilityValidationRequest.validate()validationType
public ValidationInputDiscriminator validationType()
Get the validationType property: Identifies the type of validation request.
Overrides:
SkuAvailabilityValidationRequest.validationType()Returns:
withCountry
public SkuAvailabilityValidationRequest withCountry(String country)
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:
Returns:
withDeviceType
public SkuAvailabilityValidationRequest withDeviceType(SkuName deviceType)
Set the deviceType property: Device type to be used for the job.
Parameters:
Returns:
withLocation
public SkuAvailabilityValidationRequest withLocation(String location)
Set the location property: Location for data transfer. For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01.
Parameters:
Returns:
withTransferType
public SkuAvailabilityValidationRequest withTransferType(TransferType transferType)
Set the transferType property: Type of the transfer.
Parameters:
Returns: