/// <summary>
 /// Initializes a new instance of the <see cref="CreateDefinitionFromFileInput" /> class.
 /// </summary>
 /// <param name="Inputfile">Inputfile (required).</param>
 /// <param name="WfDataRecord">WfDataRecord (required).</param>
 /// <param name="Key">Key of prior uploaded file (required).</param>
 public CreateDefinitionFromFileInput(FileRecord Inputfile = null, WorkflowDataRecord WfDataRecord = null, string Key = null)
 {
     // to ensure "Inputfile" is required (not null)
     if (Inputfile == null)
     {
         throw new InvalidDataException("Inputfile is a required property for CreateDefinitionFromFileInput and cannot be null");
     }
     else
     {
         this.Inputfile = Inputfile;
     }
     // to ensure "WfDataRecord" is required (not null)
     if (WfDataRecord == null)
     {
         throw new InvalidDataException("WfDataRecord is a required property for CreateDefinitionFromFileInput and cannot be null");
     }
     else
     {
         this.WfDataRecord = WfDataRecord;
     }
     // to ensure "Key" is required (not null)
     if (Key == null)
     {
         throw new InvalidDataException("Key is a required property for CreateDefinitionFromFileInput and cannot be null");
     }
     else
     {
         this.Key = Key;
     }
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetPayloadResult" /> class.
 /// </summary>
 /// <param name="Payload">Payload (required).</param>
 /// <param name="Hdr">Hdr (required).</param>
 public GetPayloadResult(WorkflowDataRecord Payload = null, ResponseHeaderRecord Hdr = null)
 {
     // to ensure "Payload" is required (not null)
     if (Payload == null)
     {
         throw new InvalidDataException("Payload is a required property for GetPayloadResult and cannot be null");
     }
     else
     {
         this.Payload = Payload;
     }
     // to ensure "Hdr" is required (not null)
     if (Hdr == null)
     {
         throw new InvalidDataException("Hdr is a required property for GetPayloadResult and cannot be null");
     }
     else
     {
         this.Hdr = Hdr;
     }
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateLaunchableFromFileInput" /> class.
 /// </summary>
 /// <param name="Inputfile">Inputfile (required).</param>
 /// <param name="WfForms">.</param>
 /// <param name="WfDataRecord">WfDataRecord (required).</param>
 public CreateLaunchableFromFileInput(FileRecord Inputfile = null, List <SmallObjectRecord> WfForms = null, WorkflowDataRecord WfDataRecord = null)
 {
     // to ensure "Inputfile" is required (not null)
     if (Inputfile == null)
     {
         throw new InvalidDataException("Inputfile is a required property for CreateLaunchableFromFileInput and cannot be null");
     }
     else
     {
         this.Inputfile = Inputfile;
     }
     // to ensure "WfDataRecord" is required (not null)
     if (WfDataRecord == null)
     {
         throw new InvalidDataException("WfDataRecord is a required property for CreateLaunchableFromFileInput and cannot be null");
     }
     else
     {
         this.WfDataRecord = WfDataRecord;
     }
     this.WfForms = WfForms;
 }