/// <summary> /// Initializes a new instance of the <see cref="UpdateWidgetInput" /> class. /// </summary> /// <param name="Widget">Widget (required).</param> public UpdateWidgetInput(WidgetV2Record Widget = null) { // to ensure "Widget" is required (not null) if (Widget == null) { throw new InvalidDataException("Widget is a required property for UpdateWidgetInput and cannot be null"); } else { this.Widget = Widget; } }
/// <summary> /// Initializes a new instance of the <see cref="CreateWidgetInput" /> class. /// </summary> /// <param name="Widget">Widget (required).</param> /// <param name="Destinations">.</param> public CreateWidgetInput(WidgetV2Record Widget = null, List <string> Destinations = null) { // to ensure "Widget" is required (not null) if (Widget == null) { throw new InvalidDataException("Widget is a required property for CreateWidgetInput and cannot be null"); } else { this.Widget = Widget; } this.Destinations = Destinations; }
/// <summary> /// Initializes a new instance of the <see cref="GetWidgetResult" /> class. /// </summary> /// <param name="Widget">Widget (required).</param> /// <param name="Hdr">Hdr (required).</param> public GetWidgetResult(WidgetV2Record Widget = null, ResponseHeaderRecord Hdr = null) { // to ensure "Widget" is required (not null) if (Widget == null) { throw new InvalidDataException("Widget is a required property for GetWidgetResult and cannot be null"); } else { this.Widget = Widget; } // to ensure "Hdr" is required (not null) if (Hdr == null) { throw new InvalidDataException("Hdr is a required property for GetWidgetResult and cannot be null"); } else { this.Hdr = Hdr; } }