/// <summary> /// Initializes a new instance of the <see cref="EdFiAssessmentSectionReadable" /> class. /// </summary> /// <param name="SectionReference">SectionReference (required).</param> public EdFiAssessmentSectionReadable(EdFiSectionReference SectionReference = default(EdFiSectionReference)) { // to ensure "SectionReference" is required (not null) if (SectionReference == null) { throw new InvalidDataException("SectionReference is a required property for EdFiAssessmentSectionReadable and cannot be null"); } else { this.SectionReference = SectionReference; } }
/// <summary> /// Initializes a new instance of the <see cref="EdFiStaffSectionAssociationWritable" /> class. /// </summary> /// <param name="Id">Id (required).</param> /// <param name="SectionReference">SectionReference (required).</param> /// <param name="StaffReference">StaffReference (required).</param> /// <param name="ClassroomPositionDescriptor">The type of position the Staff member holds in the specific class/section; for example: Teacher of Record, Assistant Teacher, Support Teacher, Substitute Teacher... (required).</param> /// <param name="Etag">A unique system-generated value that identifies the version of the resource..</param> public EdFiStaffSectionAssociationWritable(string Id = default(string), EdFiSectionReference SectionReference = default(EdFiSectionReference), EdFiStaffReference StaffReference = default(EdFiStaffReference), string ClassroomPositionDescriptor = default(string), string Etag = default(string)) { // to ensure "Id" is required (not null) if (Id == null) { throw new InvalidDataException("Id is a required property for EdFiStaffSectionAssociationWritable and cannot be null"); } else { this.Id = Id; } // to ensure "SectionReference" is required (not null) if (SectionReference == null) { throw new InvalidDataException("SectionReference is a required property for EdFiStaffSectionAssociationWritable and cannot be null"); } else { this.SectionReference = SectionReference; } // to ensure "StaffReference" is required (not null) if (StaffReference == null) { throw new InvalidDataException("StaffReference is a required property for EdFiStaffSectionAssociationWritable and cannot be null"); } else { this.StaffReference = StaffReference; } // to ensure "ClassroomPositionDescriptor" is required (not null) if (ClassroomPositionDescriptor == null) { throw new InvalidDataException("ClassroomPositionDescriptor is a required property for EdFiStaffSectionAssociationWritable and cannot be null"); } else { this.ClassroomPositionDescriptor = ClassroomPositionDescriptor; } this.Etag = Etag; }
/// <summary> /// Initializes a new instance of the <see cref="EdFiStudentSectionAssociationWritable" /> class. /// </summary> /// <param name="Id">Id (required).</param> /// <param name="BeginDate">Month, day, and year of the Student's entry or assignment to the Section. (required).</param> /// <param name="SectionReference">SectionReference (required).</param> /// <param name="StudentReference">StudentReference (required).</param> /// <param name="Etag">A unique system-generated value that identifies the version of the resource..</param> /// <param name="Ext">Ext.</param> public EdFiStudentSectionAssociationWritable(string Id = default(string), DateTime?BeginDate = default(DateTime?), EdFiSectionReference SectionReference = default(EdFiSectionReference), EdFiStudentReference StudentReference = default(EdFiStudentReference), string Etag = default(string), StudentSectionAssociationExtensionsWritable Ext = default(StudentSectionAssociationExtensionsWritable)) { // to ensure "Id" is required (not null) if (Id == null) { throw new InvalidDataException("Id is a required property for EdFiStudentSectionAssociationWritable and cannot be null"); } else { this.Id = Id; } // to ensure "BeginDate" is required (not null) if (BeginDate == null) { throw new InvalidDataException("BeginDate is a required property for EdFiStudentSectionAssociationWritable and cannot be null"); } else { this.BeginDate = BeginDate; } // to ensure "SectionReference" is required (not null) if (SectionReference == null) { throw new InvalidDataException("SectionReference is a required property for EdFiStudentSectionAssociationWritable and cannot be null"); } else { this.SectionReference = SectionReference; } // to ensure "StudentReference" is required (not null) if (StudentReference == null) { throw new InvalidDataException("StudentReference is a required property for EdFiStudentSectionAssociationWritable and cannot be null"); } else { this.StudentReference = StudentReference; } this.Etag = Etag; this.Ext = Ext; }