/// <summary> /// Initializes a new instance of the <see cref="LinePlusSingleStatProperties" /> class. /// </summary> /// <param name="type">type (required).</param> /// <param name="queries">queries (required).</param> /// <param name="colors">Colors define color encoding of data into a visualization (required).</param> /// <param name="shape">shape (required).</param> /// <param name="note">note (required).</param> /// <param name="showNoteWhenEmpty">If true, will display note when empty (required).</param> /// <param name="axes">axes (required).</param> /// <param name="legend">legend (required).</param> /// <param name="xColumn">xColumn.</param> /// <param name="yColumn">yColumn.</param> /// <param name="shadeBelow">shadeBelow.</param> /// <param name="prefix">prefix (required).</param> /// <param name="suffix">suffix (required).</param> /// <param name="decimalPlaces">decimalPlaces (required).</param> public LinePlusSingleStatProperties(TypeEnum type = default(TypeEnum), List <DashboardQuery> queries = default(List <DashboardQuery>), List <DashboardColor> colors = default(List <DashboardColor>), ShapeEnum shape = default(ShapeEnum), string note = default(string), bool?showNoteWhenEmpty = default(bool?), Axes axes = default(Axes), Legend legend = default(Legend), string xColumn = default(string), string yColumn = default(string), bool?shadeBelow = default(bool?), string prefix = default(string), string suffix = default(string), DecimalPlaces decimalPlaces = default(DecimalPlaces)) { // to ensure "type" is required (not null) if (type == null) { throw new InvalidDataException("type is a required property for LinePlusSingleStatProperties and cannot be null"); } else { this.Type = type; } // to ensure "queries" is required (not null) if (queries == null) { throw new InvalidDataException("queries is a required property for LinePlusSingleStatProperties and cannot be null"); } else { this.Queries = queries; } // to ensure "colors" is required (not null) if (colors == null) { throw new InvalidDataException("colors is a required property for LinePlusSingleStatProperties and cannot be null"); } else { this.Colors = colors; } // to ensure "shape" is required (not null) if (shape == null) { throw new InvalidDataException("shape is a required property for LinePlusSingleStatProperties and cannot be null"); } else { this.Shape = shape; } // to ensure "note" is required (not null) if (note == null) { throw new InvalidDataException("note is a required property for LinePlusSingleStatProperties and cannot be null"); } else { this.Note = note; } // to ensure "showNoteWhenEmpty" is required (not null) if (showNoteWhenEmpty == null) { throw new InvalidDataException("showNoteWhenEmpty is a required property for LinePlusSingleStatProperties and cannot be null"); } else { this.ShowNoteWhenEmpty = showNoteWhenEmpty; } // to ensure "axes" is required (not null) if (axes == null) { throw new InvalidDataException("axes is a required property for LinePlusSingleStatProperties and cannot be null"); } else { this.Axes = axes; } // to ensure "legend" is required (not null) if (legend == null) { throw new InvalidDataException("legend is a required property for LinePlusSingleStatProperties and cannot be null"); } else { this.Legend = legend; } // to ensure "prefix" is required (not null) if (prefix == null) { throw new InvalidDataException("prefix is a required property for LinePlusSingleStatProperties and cannot be null"); } else { this.Prefix = prefix; } // to ensure "suffix" is required (not null) if (suffix == null) { throw new InvalidDataException("suffix is a required property for LinePlusSingleStatProperties and cannot be null"); } else { this.Suffix = suffix; } // to ensure "decimalPlaces" is required (not null) if (decimalPlaces == null) { throw new InvalidDataException("decimalPlaces is a required property for LinePlusSingleStatProperties and cannot be null"); } else { this.DecimalPlaces = decimalPlaces; } this.XColumn = xColumn; this.YColumn = yColumn; this.ShadeBelow = shadeBelow; }
/// <summary> /// Initializes a new instance of the <see cref="GaugeViewProperties" /> class. /// </summary> /// <param name="type">type (required).</param> /// <param name="queries">queries (required).</param> /// <param name="colors">Colors define color encoding of data into a visualization (required).</param> /// <param name="shape">shape (required).</param> /// <param name="note">note (required).</param> /// <param name="showNoteWhenEmpty">If true, will display note when empty (required).</param> /// <param name="prefix">prefix (required).</param> /// <param name="suffix">suffix (required).</param> /// <param name="legend">legend (required).</param> /// <param name="decimalPlaces">decimalPlaces (required).</param> public GaugeViewProperties(TypeEnum type = default(TypeEnum), List <DashboardQuery> queries = default(List <DashboardQuery>), List <DashboardColor> colors = default(List <DashboardColor>), ShapeEnum shape = default(ShapeEnum), string note = default(string), bool?showNoteWhenEmpty = default(bool?), string prefix = default(string), string suffix = default(string), Legend legend = default(Legend), DecimalPlaces decimalPlaces = default(DecimalPlaces)) : base() { // to ensure "type" is required (not null) if (type == null) { throw new InvalidDataException("type is a required property for GaugeViewProperties and cannot be null"); } else { this.Type = type; } // to ensure "queries" is required (not null) if (queries == null) { throw new InvalidDataException("queries is a required property for GaugeViewProperties and cannot be null"); } else { this.Queries = queries; } // to ensure "colors" is required (not null) if (colors == null) { throw new InvalidDataException("colors is a required property for GaugeViewProperties and cannot be null"); } else { this.Colors = colors; } // to ensure "shape" is required (not null) if (shape == null) { throw new InvalidDataException("shape is a required property for GaugeViewProperties and cannot be null"); } else { this.Shape = shape; } // to ensure "note" is required (not null) if (note == null) { throw new InvalidDataException("note is a required property for GaugeViewProperties and cannot be null"); } else { this.Note = note; } // to ensure "showNoteWhenEmpty" is required (not null) if (showNoteWhenEmpty == null) { throw new InvalidDataException("showNoteWhenEmpty is a required property for GaugeViewProperties and cannot be null"); } else { this.ShowNoteWhenEmpty = showNoteWhenEmpty; } // to ensure "prefix" is required (not null) if (prefix == null) { throw new InvalidDataException("prefix is a required property for GaugeViewProperties and cannot be null"); } else { this.Prefix = prefix; } // to ensure "suffix" is required (not null) if (suffix == null) { throw new InvalidDataException("suffix is a required property for GaugeViewProperties and cannot be null"); } else { this.Suffix = suffix; } // to ensure "legend" is required (not null) if (legend == null) { throw new InvalidDataException("legend is a required property for GaugeViewProperties and cannot be null"); } else { this.Legend = legend; } // to ensure "decimalPlaces" is required (not null) if (decimalPlaces == null) { throw new InvalidDataException("decimalPlaces is a required property for GaugeViewProperties and cannot be null"); } else { this.DecimalPlaces = decimalPlaces; } }