Class PreferencesValidationRequest
java.lang.Object
com.azure.resourcemanager.databox.models.ValidationInputRequest
com.azure.resourcemanager.databox.models.PreferencesValidationRequest
Request to validate preference of transport and data center.
-
Constructor Summary
ConstructorDescriptionCreates an instance of PreferencesValidationRequest class. -
Method Summary
Modifier and TypeMethodDescriptionGet the deviceType property: Device type to be used for the job.Get the preference property: Preference of transport and data center.void
validate()
Validates the instance.withDeviceType
(SkuName deviceType) Set the deviceType property: Device type to be used for the job.withPreference
(Preferences preference) Set the preference property: Preference of transport and data center.
-
Constructor Details
-
PreferencesValidationRequest
public PreferencesValidationRequest()Creates an instance of PreferencesValidationRequest class.
-
-
Method Details
-
preference
Get the preference property: Preference of transport and data center.- Returns:
- the preference value.
-
withPreference
Set the preference property: Preference of transport and data center.- Parameters:
preference
- the preference value to set.- Returns:
- the PreferencesValidationRequest object itself.
-
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 PreferencesValidationRequest object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classValidationInputRequest
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-