/// <summary> /// Initializes a new instance of the <see cref="EdFiStudentSpecialEducationProgramAssociationWritable" /> class. /// </summary> /// <param name="Id">Id (required).</param> /// <param name="BeginDate">The month, day, and year on which the Student first received services. (required).</param> /// <param name="EducationOrganizationReference">EducationOrganizationReference (required).</param> /// <param name="ProgramReference">ProgramReference (required).</param> /// <param name="StudentReference">StudentReference (required).</param> /// <param name="Disabilities">An unordered collection of studentSpecialEducationProgramAssociationDisabilities. The disability condition(s) that best describes an individual's impairment, as related to special education services received..</param> /// <param name="EndDate">The month, day, and year on which the Student exited the Program or stopped receiving services..</param> /// <param name="SpecialEducationSettingDescriptor">The major instructional setting (more than 50 percent of a student's special education program)..</param> /// <param name="Etag">A unique system-generated value that identifies the version of the resource..</param> /// <param name="Ext">Ext.</param> public EdFiStudentSpecialEducationProgramAssociationWritable(string Id = default(string), DateTime?BeginDate = default(DateTime?), EdFiEducationOrganizationReference EducationOrganizationReference = default(EdFiEducationOrganizationReference), EdFiProgramReference ProgramReference = default(EdFiProgramReference), EdFiStudentReference StudentReference = default(EdFiStudentReference), List <EdFiStudentSpecialEducationProgramAssociationDisabilityWritable> Disabilities = default(List <EdFiStudentSpecialEducationProgramAssociationDisabilityWritable>), DateTime?EndDate = default(DateTime?), string SpecialEducationSettingDescriptor = default(string), string Etag = default(string), StudentSpecialEducationProgramAssociationExtensionsWritable Ext = default(StudentSpecialEducationProgramAssociationExtensionsWritable)) { // to ensure "Id" is required (not null) if (Id == null) { throw new InvalidDataException("Id is a required property for EdFiStudentSpecialEducationProgramAssociationWritable 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 EdFiStudentSpecialEducationProgramAssociationWritable and cannot be null"); } else { this.BeginDate = BeginDate; } // to ensure "EducationOrganizationReference" is required (not null) if (EducationOrganizationReference == null) { throw new InvalidDataException("EducationOrganizationReference is a required property for EdFiStudentSpecialEducationProgramAssociationWritable and cannot be null"); } else { this.EducationOrganizationReference = EducationOrganizationReference; } // to ensure "ProgramReference" is required (not null) if (ProgramReference == null) { throw new InvalidDataException("ProgramReference is a required property for EdFiStudentSpecialEducationProgramAssociationWritable and cannot be null"); } else { this.ProgramReference = ProgramReference; } // to ensure "StudentReference" is required (not null) if (StudentReference == null) { throw new InvalidDataException("StudentReference is a required property for EdFiStudentSpecialEducationProgramAssociationWritable and cannot be null"); } else { this.StudentReference = StudentReference; } this.Disabilities = Disabilities; this.EndDate = EndDate; this.SpecialEducationSettingDescriptor = SpecialEducationSettingDescriptor; this.Etag = Etag; this.Ext = Ext; }
/// <summary> /// Initializes a new instance of the <see cref="EdFiStudentSpecialEducationProgramAssociationWritable" /> class. /// </summary> /// <param name="id">id.</param> /// <param name="beginDate">The earliest date the student is involved with the program. Typically, this is the date the student becomes eligible for the program. (required).</param> /// <param name="educationOrganizationReference">educationOrganizationReference (required).</param> /// <param name="programReference">programReference (required).</param> /// <param name="studentReference">studentReference (required).</param> /// <param name="disabilities">An unordered collection of studentSpecialEducationProgramAssociationDisabilities. The disability condition(s) that best describes an individual's impairment, as related to special education services received..</param> /// <param name="endDate">The month, day, and year on which the Student exited the Program or stopped receiving services..</param> /// <param name="specialEducationSettingDescriptor">The major instructional setting (more than 50 percent of a student's special education program)..</param> /// <param name="etag">A unique system-generated value that identifies the version of the resource..</param> /// <param name="ext">ext.</param> public EdFiStudentSpecialEducationProgramAssociationWritable(string id = default(string), DateTime?beginDate = default(DateTime?), EdFiEducationOrganizationReference educationOrganizationReference = default(EdFiEducationOrganizationReference), EdFiProgramReference programReference = default(EdFiProgramReference), EdFiStudentReference studentReference = default(EdFiStudentReference), List <EdFiStudentSpecialEducationProgramAssociationDisabilityWritable> disabilities = default(List <EdFiStudentSpecialEducationProgramAssociationDisabilityWritable>), DateTime?endDate = default(DateTime?), string specialEducationSettingDescriptor = default(string), string etag = default(string), StudentSpecialEducationProgramAssociationExtensionsWritable ext = default(StudentSpecialEducationProgramAssociationExtensionsWritable)) { // to ensure "beginDate" is required (not null) if (beginDate == null) { throw new InvalidDataException("beginDate is a required property for EdFiStudentSpecialEducationProgramAssociationWritable and cannot be null"); } else { this.BeginDate = beginDate; } // to ensure "educationOrganizationReference" is required (not null) if (educationOrganizationReference == null) { throw new InvalidDataException("educationOrganizationReference is a required property for EdFiStudentSpecialEducationProgramAssociationWritable and cannot be null"); } else { this.EducationOrganizationReference = educationOrganizationReference; } // to ensure "programReference" is required (not null) if (programReference == null) { throw new InvalidDataException("programReference is a required property for EdFiStudentSpecialEducationProgramAssociationWritable and cannot be null"); } else { this.ProgramReference = programReference; } // to ensure "studentReference" is required (not null) if (studentReference == null) { throw new InvalidDataException("studentReference is a required property for EdFiStudentSpecialEducationProgramAssociationWritable and cannot be null"); } else { this.StudentReference = studentReference; } this.Id = id; this.Disabilities = disabilities; this.EndDate = endDate; this.SpecialEducationSettingDescriptor = specialEducationSettingDescriptor; this.Etag = etag; this.Ext = ext; }