Class PreferencesValidationRequest

java.lang.Object
com.azure.resourcemanager.databox.models.ValidationInputRequest
com.azure.resourcemanager.databox.models.PreferencesValidationRequest

public final class PreferencesValidationRequest extends ValidationInputRequest
Request to validate preference of transport and data center.
  • Constructor Details

    • PreferencesValidationRequest

      public PreferencesValidationRequest()
      Creates an instance of PreferencesValidationRequest class.
  • Method Details

    • preference

      public Preferences preference()
      Get the preference property: Preference of transport and data center.
      Returns:
      the preference value.
    • withPreference

      public PreferencesValidationRequest withPreference(Preferences preference)
      Set the preference property: Preference of transport and data center.
      Parameters:
      preference - the preference value to set.
      Returns:
      the PreferencesValidationRequest object itself.
    • deviceType

      public SkuName deviceType()
      Get the deviceType property: Device type to be used for the job.
      Returns:
      the deviceType value.
    • withDeviceType

      public PreferencesValidationRequest withDeviceType(SkuName deviceType)
      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 class ValidationInputRequest
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.