/// <summary> /// Initializes a new instance of the DataExportDetails class. /// </summary> /// <param name="transferConfiguration">Configuration for the data /// transfer.</param> /// <param name="accountDetails">Account details of the data to be /// transferred</param> /// <param name="logCollectionLevel">Level of the logs to be collected. /// Possible values include: 'Error', 'Verbose'</param> public DataExportDetails(TransferConfiguration transferConfiguration, DataAccountDetails accountDetails, LogCollectionLevel?logCollectionLevel = default(LogCollectionLevel?)) { TransferConfiguration = transferConfiguration; LogCollectionLevel = logCollectionLevel; AccountDetails = accountDetails; CustomInit(); }
/// <summary> /// Validate the object. /// </summary> /// <exception cref="ValidationException"> /// Thrown if validation fails /// </exception> public virtual void Validate() { if (TransferConfiguration == null) { throw new ValidationException(ValidationRules.CannotBeNull, "TransferConfiguration"); } if (AccountDetails == null) { throw new ValidationException(ValidationRules.CannotBeNull, "AccountDetails"); } if (TransferConfiguration != null) { TransferConfiguration.Validate(); } }