/// <summary> /// Initializes a new instance of the <see cref="ManuallyArchiveRecordModel" /> class. /// </summary> /// <param name="rowKey">rowKey (required).</param> /// <param name="isSelected">isSelected.</param> /// <param name="nodeType">nodeType.</param> public ManuallyArchiveRecordModel(string rowKey = default(string), bool isSelected = default(bool), ManualArchiveNodeLevel nodeType = default(ManualArchiveNodeLevel)) { // to ensure "rowKey" is required (not null) if (rowKey == null) { throw new InvalidDataException("rowKey is a required property for ManuallyArchiveRecordModel and cannot be null"); } else { this.RowKey = rowKey; } this.IsSelected = isSelected; this.NodeType = nodeType; }
/// <summary> /// Initializes a new instance of the <see cref="ManuallyArchiveRecordModel" /> class. /// </summary> /// <param name="rowKey">rowKey (required).</param> /// <param name="isSelected">isSelected.</param> /// <param name="nodeType">nodeType.</param> public ManuallyArchiveRecordModel(string rowKey = default(string), bool isSelected = default(bool), ManualArchiveNodeLevel nodeType = default(ManualArchiveNodeLevel)) { // to ensure "rowKey" is required (not null) this.RowKey = rowKey ?? throw new ArgumentNullException("rowKey is a required property for ManuallyArchiveRecordModel and cannot be null");; this.IsSelected = isSelected; this.NodeType = nodeType; }