/// <summary> /// Validate the object. /// </summary> /// <exception cref="Rest.ValidationException"> /// Thrown if validation fails /// </exception> public virtual void Validate() { if (TransportPreferences != null) { TransportPreferences.Validate(); } }
/// <summary> /// Initializes a new instance of the ValidateAddress class. /// </summary> /// <param name="shippingAddress">Shipping address of the /// customer.</param> /// <param name="deviceType">Device type to be used for the job. /// Possible values include: 'DataBox', 'DataBoxDisk', /// 'DataBoxHeavy'</param> /// <param name="transportPreferences">Preferences related to the /// shipment logistics of the sku.</param> public ValidateAddress(ShippingAddress shippingAddress, SkuName deviceType, TransportPreferences transportPreferences = default(TransportPreferences)) { ShippingAddress = shippingAddress; DeviceType = deviceType; TransportPreferences = transportPreferences; CustomInit(); }
/// <summary> /// Initializes a new instance of the Preferences class. /// </summary> /// <param name="preferredDataCenterRegion">Preferred data center /// region.</param> /// <param name="transportPreferences">Preferences related to the /// shipment logistics of the sku.</param> /// <param name="encryptionPreferences">Preferences related to the /// Encryption.</param> public Preferences(IList <string> preferredDataCenterRegion = default(IList <string>), TransportPreferences transportPreferences = default(TransportPreferences), EncryptionPreferences encryptionPreferences = default(EncryptionPreferences)) { PreferredDataCenterRegion = preferredDataCenterRegion; TransportPreferences = transportPreferences; EncryptionPreferences = encryptionPreferences; CustomInit(); }