コード例 #1
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="Rest.ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (TransportPreferences != null)
     {
         TransportPreferences.Validate();
     }
 }
コード例 #2
0
 /// <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();
 }
コード例 #3
0
 /// <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();
 }