/// <summary> /// Initializes a new instance of the <see cref="Segmentation" /> class. /// </summary> /// <param name="boundaries">boundaries (required).</param> /// <param name="themes">themes (required).</param> public Segmentation(Boundaries boundaries = default(Boundaries), SegmentationThemes themes = default(SegmentationThemes)) { // to ensure "boundaries" is required (not null) if (boundaries == null) { throw new InvalidDataException("boundaries is a required property for Segmentation and cannot be null"); } else { this.Boundaries = boundaries; } // to ensure "themes" is required (not null) if (themes == null) { throw new InvalidDataException("themes is a required property for Segmentation and cannot be null"); } else { this.Themes = themes; } }
/// <summary> /// Initializes a new instance of the <see cref="Demographics" /> class. /// </summary> /// <param name="boundaries">boundaries (required).</param> /// <param name="themes">themes (required).</param> /// <param name="boundaryThemes">boundaryThemes.</param> public Demographics(Boundaries boundaries = default(Boundaries), DemographicsThemesV2 themes = default(DemographicsThemesV2), List <DemographicsThemesV2> boundaryThemes = default(List <DemographicsThemesV2>)) { // to ensure "boundaries" is required (not null) if (boundaries == null) { throw new InvalidDataException("boundaries is a required property for Demographics and cannot be null"); } else { this.Boundaries = boundaries; } // to ensure "themes" is required (not null) if (themes == null) { throw new InvalidDataException("themes is a required property for Demographics and cannot be null"); } else { this.Themes = themes; } this.BoundaryThemes = boundaryThemes; }