/// <summary> /// Initializes a new instance of the <see cref="ChannelCatalogMarketplaceSettingsLinks" /> class. /// </summary> /// <param name="Self">Self (required).</param> /// <param name="Save">Save (required).</param> public ChannelCatalogMarketplaceSettingsLinks(LinksGetChannelCatalogMarketplaceSettingsLink Self = default(LinksGetChannelCatalogMarketplaceSettingsLink), LinksSetChannelCatalogMarketplaceSettingsLink Save = default(LinksSetChannelCatalogMarketplaceSettingsLink)) { // to ensure "Self" is required (not null) if (Self == null) { throw new InvalidDataException("Self is a required property for ChannelCatalogMarketplaceSettingsLinks and cannot be null"); } else { this.Self = Self; } // to ensure "Save" is required (not null) if (Save == null) { throw new InvalidDataException("Save is a required property for ChannelCatalogMarketplaceSettingsLinks and cannot be null"); } else { this.Save = Save; } }
/// <summary> /// Initializes a new instance of the <see cref="MarketplaceChannelCatalogLinks" /> class. /// </summary> /// <param name="Properties">Properties (required).</param> /// <param name="Settings">Settings (required).</param> /// <param name="Publications">Publications.</param> public MarketplaceChannelCatalogLinks(LinksGetChannelCatalogMarketplacePropertiesLink Properties = default(LinksGetChannelCatalogMarketplacePropertiesLink), LinksGetChannelCatalogMarketplaceSettingsLink Settings = default(LinksGetChannelCatalogMarketplaceSettingsLink), LinksGetPublicationsLink Publications = default(LinksGetPublicationsLink)) { // to ensure "Properties" is required (not null) if (Properties == null) { throw new InvalidDataException("Properties is a required property for MarketplaceChannelCatalogLinks and cannot be null"); } else { this.Properties = Properties; } // to ensure "Settings" is required (not null) if (Settings == null) { throw new InvalidDataException("Settings is a required property for MarketplaceChannelCatalogLinks and cannot be null"); } else { this.Settings = Settings; } this.Publications = Publications; }