/// <summary> /// Initializes a new instance of the <see cref="PortfoliosReconciliationRequest" /> class. /// </summary> /// <param name="left">left (required).</param> /// <param name="right">right (required).</param> /// <param name="instrumentPropertyKeys">Instrument properties to be included with any identified breaks. These properties will be in the effective and AsAt dates of the left portfolio (required).</param> public PortfoliosReconciliationRequest(PortfolioReconciliationRequest left = default(PortfolioReconciliationRequest), PortfolioReconciliationRequest right = default(PortfolioReconciliationRequest), List <string> instrumentPropertyKeys = default(List <string>)) { // to ensure "left" is required (not null) if (left == null) { throw new InvalidDataException("left is a required property for PortfoliosReconciliationRequest and cannot be null"); } else { this.Left = left; } // to ensure "right" is required (not null) if (right == null) { throw new InvalidDataException("right is a required property for PortfoliosReconciliationRequest and cannot be null"); } else { this.Right = right; } // to ensure "instrumentPropertyKeys" is required (not null) if (instrumentPropertyKeys == null) { throw new InvalidDataException("instrumentPropertyKeys is a required property for PortfoliosReconciliationRequest and cannot be null"); } else { this.InstrumentPropertyKeys = instrumentPropertyKeys; } }
/// <summary> /// Initializes a new instance of the <see cref="PortfoliosReconciliationRequest" /> class. /// </summary> /// <param name="left">left (required).</param> /// <param name="right">right (required).</param> /// <param name="instrumentPropertyKeys">Instrument properties to be included with any identified breaks. These properties will be in the effective and AsAt dates of the left portfolio (required).</param> public PortfoliosReconciliationRequest(PortfolioReconciliationRequest left = default(PortfolioReconciliationRequest), PortfolioReconciliationRequest right = default(PortfolioReconciliationRequest), List <string> instrumentPropertyKeys = default(List <string>)) { // to ensure "left" is required (not null) this.Left = left ?? throw new ArgumentNullException("left is a required property for PortfoliosReconciliationRequest and cannot be null"); // to ensure "right" is required (not null) this.Right = right ?? throw new ArgumentNullException("right is a required property for PortfoliosReconciliationRequest and cannot be null"); // to ensure "instrumentPropertyKeys" is required (not null) this.InstrumentPropertyKeys = instrumentPropertyKeys ?? throw new ArgumentNullException("instrumentPropertyKeys is a required property for PortfoliosReconciliationRequest and cannot be null"); }