示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateLaunchableInput" /> class.
 /// </summary>
 /// <param name="Clone"> (required).</param>
 /// <param name="Spec">Spec (required).</param>
 /// <param name="Space"> (required).</param>
 public CreateLaunchableInput(string Clone = null, WorkflowLaunchableDesignRecord Spec = null, string Space = null)
 {
     // to ensure "Clone" is required (not null)
     if (Clone == null)
     {
         throw new InvalidDataException("Clone is a required property for CreateLaunchableInput and cannot be null");
     }
     else
     {
         this.Clone = Clone;
     }
     // to ensure "Spec" is required (not null)
     if (Spec == null)
     {
         throw new InvalidDataException("Spec is a required property for CreateLaunchableInput and cannot be null");
     }
     else
     {
         this.Spec = Spec;
     }
     // to ensure "Space" is required (not null)
     if (Space == null)
     {
         throw new InvalidDataException("Space is a required property for CreateLaunchableInput and cannot be null");
     }
     else
     {
         this.Space = Space;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateLaunchableByKeyInput" /> class.
 /// </summary>
 /// <param name="WfForms">.</param>
 /// <param name="_Override">_Override (required).</param>
 /// <param name="Key">workflow definition object with statuss set to draft (required).</param>
 public CreateLaunchableByKeyInput(List <SmallObjectRecord> WfForms = null, WorkflowLaunchableDesignRecord _Override = null, string Key = null)
 {
     // to ensure "_Override" is required (not null)
     if (_Override == null)
     {
         throw new InvalidDataException("_Override is a required property for CreateLaunchableByKeyInput and cannot be null");
     }
     else
     {
         this._Override = _Override;
     }
     // to ensure "Key" is required (not null)
     if (Key == null)
     {
         throw new InvalidDataException("Key is a required property for CreateLaunchableByKeyInput and cannot be null");
     }
     else
     {
         this.Key = Key;
     }
     this.WfForms = WfForms;
 }