Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EdgeModuleObject" /> class.
 /// </summary>
 /// <param name="modulename">modulename (required).</param>
 /// <param name="id">id (required).</param>
 /// <param name="protocol">protocol (required).</param>
 /// <param name="protocolprops">protocolprops (required).</param>
 /// <param name="meta">meta (required).</param>
 public EdgeModuleObject(string modulename = default(string), string id = default(string), string protocol = default(string), string protocolprops = default(string), MetaEdgeModuleObject meta = default(MetaEdgeModuleObject)) : base()
 {
     // to ensure "modulename" is required (not null)
     if (modulename == null)
     {
         throw new InvalidDataException("modulename is a required property for EdgeModuleObject and cannot be null");
     }
     else
     {
         this.Modulename = modulename;
     }
     // to ensure "id" is required (not null)
     if (id == null)
     {
         throw new InvalidDataException("id is a required property for EdgeModuleObject and cannot be null");
     }
     else
     {
         this.Id = id;
     }
     // to ensure "protocol" is required (not null)
     if (protocol == null)
     {
         throw new InvalidDataException("protocol is a required property for EdgeModuleObject and cannot be null");
     }
     else
     {
         this.Protocol = protocol;
     }
     // to ensure "protocolprops" is required (not null)
     if (protocolprops == null)
     {
         throw new InvalidDataException("protocolprops is a required property for EdgeModuleObject and cannot be null");
     }
     else
     {
         this.Protocolprops = protocolprops;
     }
     // to ensure "meta" is required (not null)
     if (meta == null)
     {
         throw new InvalidDataException("meta is a required property for EdgeModuleObject and cannot be null");
     }
     else
     {
         this.Meta = meta;
     }
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EdgeModuleResourceObject" /> class.
 /// </summary>
 /// <param name="resourcename">resourcename (required).</param>
 /// <param name="modulename">modulename (required).</param>
 /// <param name="moduleid">moduleid (required).</param>
 /// <param name="meta">meta (required).</param>
 public EdgeModuleResourceObject(string resourcename = default(string), string modulename = default(string), string moduleid = default(string), MetaEdgeModuleObject meta = default(MetaEdgeModuleObject)) : base()
 {
     // to ensure "resourcename" is required (not null)
     if (resourcename == null)
     {
         throw new InvalidDataException("resourcename is a required property for EdgeModuleResourceObject and cannot be null");
     }
     else
     {
         this.Resourcename = resourcename;
     }
     // to ensure "modulename" is required (not null)
     if (modulename == null)
     {
         throw new InvalidDataException("modulename is a required property for EdgeModuleResourceObject and cannot be null");
     }
     else
     {
         this.Modulename = modulename;
     }
     // to ensure "moduleid" is required (not null)
     if (moduleid == null)
     {
         throw new InvalidDataException("moduleid is a required property for EdgeModuleResourceObject and cannot be null");
     }
     else
     {
         this.Moduleid = moduleid;
     }
     // to ensure "meta" is required (not null)
     if (meta == null)
     {
         throw new InvalidDataException("meta is a required property for EdgeModuleResourceObject and cannot be null");
     }
     else
     {
         this.Meta = meta;
     }
 }