/// <summary> /// Initializes a new instance of the <see cref="QuoteId" /> class. /// </summary> /// <param name="quoteSeriesId">quoteSeriesId (required).</param> /// <param name="effectiveAt">The effective datetime or cut label at which the quote is valid from. (required).</param> public QuoteId(QuoteSeriesId quoteSeriesId = default(QuoteSeriesId), DateTimeOrCutLabel effectiveAt = default(DateTimeOrCutLabel)) { // to ensure "quoteSeriesId" is required (not null) this.QuoteSeriesId = quoteSeriesId ?? throw new ArgumentNullException("quoteSeriesId is a required property for QuoteId and cannot be null"); // to ensure "effectiveAt" is required (not null) this.EffectiveAt = effectiveAt ?? throw new ArgumentNullException("effectiveAt is a required property for QuoteId and cannot be null"); }
/// <summary> /// Initializes a new instance of the <see cref="QuoteId" /> class. /// </summary> /// <param name="quoteSeriesId">quoteSeriesId (required).</param> /// <param name="effectiveAt">The effective datetime or cut label at which the quote is valid from. (required).</param> public QuoteId(QuoteSeriesId quoteSeriesId = default(QuoteSeriesId), DateTimeOrCutLabel effectiveAt = default(DateTimeOrCutLabel)) { // to ensure "quoteSeriesId" is required (not null) if (quoteSeriesId == null) { throw new InvalidDataException("quoteSeriesId is a required property for QuoteId and cannot be null"); } else { this.QuoteSeriesId = quoteSeriesId; } // to ensure "effectiveAt" is required (not null) if (effectiveAt == null) { throw new InvalidDataException("effectiveAt is a required property for QuoteId and cannot be null"); } else { this.EffectiveAt = effectiveAt; } }