/// <summary>
 /// Initializes a new instance of the <see cref="EdFiStudentNeglectedOrDelinquentProgramAssociationReadable" /> 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="elaProgressLevelDescriptor">The progress measured from pre- to post- test for ELA..</param>
 /// <param name="endDate">The month, day, and year on which the Student exited the Program or stopped receiving services..</param>
 /// <param name="mathematicsProgressLevelDescriptor">The progress measured from pre- to post-test for Mathematics..</param>
 /// <param name="neglectedOrDelinquentProgramDescriptor">The type of program under ESEA Title I, Part D, Subpart 1 (state programs) or Subpart 2 (LEA)..</param>
 /// <param name="neglectedOrDelinquentProgramServices">An unordered collection of studentNeglectedOrDelinquentProgramAssociationNeglectedOrDelinquentProgramServices. Indicates the service(s) being provided to the Student by the Neglected or Delinquent Program..</param>
 /// <param name="etag">A unique system-generated value that identifies the version of the resource..</param>
 /// <param name="ext">ext.</param>
 public EdFiStudentNeglectedOrDelinquentProgramAssociationReadable(string id = default(string), DateTime?beginDate = default(DateTime?), EdFiEducationOrganizationReference educationOrganizationReference = default(EdFiEducationOrganizationReference), EdFiProgramReference programReference = default(EdFiProgramReference), EdFiStudentReference studentReference = default(EdFiStudentReference), string elaProgressLevelDescriptor = default(string), DateTime?endDate = default(DateTime?), string mathematicsProgressLevelDescriptor = default(string), string neglectedOrDelinquentProgramDescriptor = default(string), List <EdFiStudentNeglectedOrDelinquentProgramAssociationNeglectedOrDelinquentProgramServiceReadable> neglectedOrDelinquentProgramServices = default(List <EdFiStudentNeglectedOrDelinquentProgramAssociationNeglectedOrDelinquentProgramServiceReadable>), string etag = default(string), StudentNeglectedOrDelinquentProgramAssociationExtensionsReadable ext = default(StudentNeglectedOrDelinquentProgramAssociationExtensionsReadable))
 {
     // to ensure "beginDate" is required (not null)
     if (beginDate == null)
     {
         throw new InvalidDataException("beginDate is a required property for EdFiStudentNeglectedOrDelinquentProgramAssociationReadable 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 EdFiStudentNeglectedOrDelinquentProgramAssociationReadable 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 EdFiStudentNeglectedOrDelinquentProgramAssociationReadable 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 EdFiStudentNeglectedOrDelinquentProgramAssociationReadable and cannot be null");
     }
     else
     {
         this.StudentReference = studentReference;
     }
     this.Id = id;
     this.ElaProgressLevelDescriptor = elaProgressLevelDescriptor;
     this.EndDate = endDate;
     this.MathematicsProgressLevelDescriptor     = mathematicsProgressLevelDescriptor;
     this.NeglectedOrDelinquentProgramDescriptor = neglectedOrDelinquentProgramDescriptor;
     this.NeglectedOrDelinquentProgramServices   = neglectedOrDelinquentProgramServices;
     this.Etag = etag;
     this.Ext  = ext;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiStudentSchoolAssociationReadable" /> class.
 /// </summary>
 /// <param name="id">id.</param>
 /// <param name="entryDate">The month, day, and year on which an individual enters and begins to receive instructional services in a school. (required).</param>
 /// <param name="calendarReference">calendarReference.</param>
 /// <param name="schoolReference">schoolReference (required).</param>
 /// <param name="schoolYearTypeReference">schoolYearTypeReference.</param>
 /// <param name="studentReference">studentReference (required).</param>
 /// <param name="entryGradeLevelDescriptor">The grade level or primary instructional level at which a student enters and receives services in a school or an educational institution during a given academic session. (required).</param>
 /// <param name="entryTypeDescriptor">The process by which a student enters a school during a given academic session..</param>
 /// <param name="exitWithdrawDate">The recorded exit or withdraw date for the student..</param>
 /// <param name="exitWithdrawTypeDescriptor">The circumstances under which the student exited from membership in an educational institution..</param>
 /// <param name="etag">A unique system-generated value that identifies the version of the resource..</param>
 /// <param name="ext">ext.</param>
 public EdFiStudentSchoolAssociationReadable(string id = default(string), DateTime?entryDate = default(DateTime?), EdFiCalendarReference calendarReference = default(EdFiCalendarReference), EdFiSchoolReference schoolReference = default(EdFiSchoolReference), EdFiSchoolYearTypeReference schoolYearTypeReference = default(EdFiSchoolYearTypeReference), EdFiStudentReference studentReference = default(EdFiStudentReference), string entryGradeLevelDescriptor = default(string), string entryTypeDescriptor = default(string), DateTime?exitWithdrawDate = default(DateTime?), string exitWithdrawTypeDescriptor = default(string), string etag = default(string), StudentSchoolAssociationExtensionsReadable ext = default(StudentSchoolAssociationExtensionsReadable))
 {
     // to ensure "entryDate" is required (not null)
     if (entryDate == null)
     {
         throw new InvalidDataException("entryDate is a required property for EdFiStudentSchoolAssociationReadable and cannot be null");
     }
     else
     {
         this.EntryDate = entryDate;
     }
     // to ensure "schoolReference" is required (not null)
     if (schoolReference == null)
     {
         throw new InvalidDataException("schoolReference is a required property for EdFiStudentSchoolAssociationReadable and cannot be null");
     }
     else
     {
         this.SchoolReference = schoolReference;
     }
     // to ensure "studentReference" is required (not null)
     if (studentReference == null)
     {
         throw new InvalidDataException("studentReference is a required property for EdFiStudentSchoolAssociationReadable and cannot be null");
     }
     else
     {
         this.StudentReference = studentReference;
     }
     // to ensure "entryGradeLevelDescriptor" is required (not null)
     if (entryGradeLevelDescriptor == null)
     {
         throw new InvalidDataException("entryGradeLevelDescriptor is a required property for EdFiStudentSchoolAssociationReadable and cannot be null");
     }
     else
     {
         this.EntryGradeLevelDescriptor = entryGradeLevelDescriptor;
     }
     this.Id = id;
     this.CalendarReference          = calendarReference;
     this.SchoolYearTypeReference    = schoolYearTypeReference;
     this.EntryTypeDescriptor        = entryTypeDescriptor;
     this.ExitWithdrawDate           = exitWithdrawDate;
     this.ExitWithdrawTypeDescriptor = exitWithdrawTypeDescriptor;
     this.Etag = etag;
     this.Ext  = ext;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiStudentEducationOrganizationAssociationWritable" /> class.
 /// </summary>
 /// <param name="id">id.</param>
 /// <param name="educationOrganizationReference">educationOrganizationReference (required).</param>
 /// <param name="studentReference">studentReference (required).</param>
 /// <param name="ancestryEthnicOrigins">An unordered collection of studentEducationOrganizationAssociationAncestryEthnicOrigins. The original peoples or cultures with which the individual identifies..</param>
 /// <param name="hispanicLatinoEthnicity">An indication that the individual traces his or her origin or descent to Mexico, Puerto Rico, Cuba, Central, and South America, and other Spanish cultures, regardless of race, as last reported to the education organization. The term, \&quot;Spanish origin,\&quot; can be used in addition to \&quot;Hispanic or Latino.\&quot;.</param>
 /// <param name="languages">An unordered collection of studentEducationOrganizationAssociationLanguages. The language(s) the individual uses to communicate. It is strongly recommended that entries use only ISO 639-3 language codes..</param>
 /// <param name="races">An unordered collection of studentEducationOrganizationAssociationRaces. The general racial category which most clearly reflects the individual&#39;s recognition of his or her community or with which the individual most identifies as last reported to the education organization. The data model allows for multiple entries so that each individual can specify all appropriate races..</param>
 /// <param name="sexDescriptor">The student&#39;s gender as last reported to the education organization. (required).</param>
 /// <param name="studentCharacteristics">An unordered collection of studentEducationOrganizationAssociationStudentCharacteristics. Reflects important characteristics of a student. If a student has a characteristic present, that characteristic is considered true or active for that student. If a characteristic is not present, no assumption is made as to the applicability of the characteristic, but local policy may dictate otherwise..</param>
 /// <param name="studentIdentificationCodes">An unordered collection of studentEducationOrganizationAssociationStudentIdentificationCodes. A coding scheme that is used for identification and record-keeping purposes by schools, social services, or other agencies to refer to a student..</param>
 /// <param name="studentIndicators">An unordered collection of studentEducationOrganizationAssociationStudentIndicators. An indicator or metric computed for the student (e.g., at risk)..</param>
 /// <param name="etag">A unique system-generated value that identifies the version of the resource..</param>
 /// <param name="ext">ext.</param>
 public EdFiStudentEducationOrganizationAssociationWritable(string id = default(string), EdFiEducationOrganizationReference educationOrganizationReference = default(EdFiEducationOrganizationReference), EdFiStudentReference studentReference = default(EdFiStudentReference), List <EdFiStudentEducationOrganizationAssociationAncestryEthnicOriginWritable> ancestryEthnicOrigins = default(List <EdFiStudentEducationOrganizationAssociationAncestryEthnicOriginWritable>), bool?hispanicLatinoEthnicity = default(bool?), List <EdFiStudentEducationOrganizationAssociationLanguageWritable> languages = default(List <EdFiStudentEducationOrganizationAssociationLanguageWritable>), List <EdFiStudentEducationOrganizationAssociationRaceWritable> races = default(List <EdFiStudentEducationOrganizationAssociationRaceWritable>), string sexDescriptor = default(string), List <EdFiStudentEducationOrganizationAssociationStudentCharacteristicWritable> studentCharacteristics = default(List <EdFiStudentEducationOrganizationAssociationStudentCharacteristicWritable>), List <EdFiStudentEducationOrganizationAssociationStudentIdentificationCodeWritable> studentIdentificationCodes = default(List <EdFiStudentEducationOrganizationAssociationStudentIdentificationCodeWritable>), List <EdFiStudentEducationOrganizationAssociationStudentIndicatorWritable> studentIndicators = default(List <EdFiStudentEducationOrganizationAssociationStudentIndicatorWritable>), string etag = default(string), StudentEducationOrganizationAssociationExtensionsWritable ext = default(StudentEducationOrganizationAssociationExtensionsWritable))
 {
     // to ensure "educationOrganizationReference" is required (not null)
     if (educationOrganizationReference == null)
     {
         throw new InvalidDataException("educationOrganizationReference is a required property for EdFiStudentEducationOrganizationAssociationWritable and cannot be null");
     }
     else
     {
         this.EducationOrganizationReference = educationOrganizationReference;
     }
     // to ensure "studentReference" is required (not null)
     if (studentReference == null)
     {
         throw new InvalidDataException("studentReference is a required property for EdFiStudentEducationOrganizationAssociationWritable and cannot be null");
     }
     else
     {
         this.StudentReference = studentReference;
     }
     // to ensure "sexDescriptor" is required (not null)
     if (sexDescriptor == null)
     {
         throw new InvalidDataException("sexDescriptor is a required property for EdFiStudentEducationOrganizationAssociationWritable and cannot be null");
     }
     else
     {
         this.SexDescriptor = sexDescriptor;
     }
     this.Id = id;
     this.AncestryEthnicOrigins   = ancestryEthnicOrigins;
     this.HispanicLatinoEthnicity = hispanicLatinoEthnicity;
     this.Languages = languages;
     this.Races     = races;
     this.StudentCharacteristics     = studentCharacteristics;
     this.StudentIdentificationCodes = studentIdentificationCodes;
     this.StudentIndicators          = studentIndicators;
     this.Etag = etag;
     this.Ext  = ext;
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiStudentLanguageInstructionProgramAssociationReadable" /> 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="endDate">The month, day, and year on which the Student exited the Program or stopped receiving services..</param>
 /// <param name="englishLearnerParticipation">An indication that an English Learner student is served by an English language instruction educational program supported with Title III of ESEA funds..</param>
 /// <param name="languageInstructionProgramServices">An unordered collection of studentLanguageInstructionProgramAssociationLanguageInstructionProgramServices. Indicates the service(s) being provided to the Student by the Language Instruction Program..</param>
 /// <param name="etag">A unique system-generated value that identifies the version of the resource..</param>
 public EdFiStudentLanguageInstructionProgramAssociationReadable(string id = default(string), DateTime?beginDate = default(DateTime?), EdFiEducationOrganizationReference educationOrganizationReference = default(EdFiEducationOrganizationReference), EdFiProgramReference programReference = default(EdFiProgramReference), EdFiStudentReference studentReference = default(EdFiStudentReference), DateTime?endDate = default(DateTime?), bool?englishLearnerParticipation = default(bool?), List <EdFiStudentLanguageInstructionProgramAssociationLanguageInstructionProgramServiceReadable> languageInstructionProgramServices = default(List <EdFiStudentLanguageInstructionProgramAssociationLanguageInstructionProgramServiceReadable>), string etag = default(string))
 {
     // to ensure "beginDate" is required (not null)
     if (beginDate == null)
     {
         throw new InvalidDataException("beginDate is a required property for EdFiStudentLanguageInstructionProgramAssociationReadable 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 EdFiStudentLanguageInstructionProgramAssociationReadable 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 EdFiStudentLanguageInstructionProgramAssociationReadable 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 EdFiStudentLanguageInstructionProgramAssociationReadable and cannot be null");
     }
     else
     {
         this.StudentReference = studentReference;
     }
     this.Id      = id;
     this.EndDate = endDate;
     this.EnglishLearnerParticipation        = englishLearnerParticipation;
     this.LanguageInstructionProgramServices = languageInstructionProgramServices;
     this.Etag = etag;
 }
コード例 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiStudentParentAssociationWritable" /> class.
 /// </summary>
 /// <param name="id">id.</param>
 /// <param name="parentReference">parentReference (required).</param>
 /// <param name="studentReference">studentReference (required).</param>
 /// <param name="relationDescriptor">The nature of an individual&#39;s relationship to a student, primarily used to capture family relationships..</param>
 /// <param name="etag">A unique system-generated value that identifies the version of the resource..</param>
 public EdFiStudentParentAssociationWritable(string id = default(string), EdFiParentReference parentReference = default(EdFiParentReference), EdFiStudentReference studentReference = default(EdFiStudentReference), string relationDescriptor = default(string), string etag = default(string))
 {
     // to ensure "parentReference" is required (not null)
     if (parentReference == null)
     {
         throw new InvalidDataException("parentReference is a required property for EdFiStudentParentAssociationWritable and cannot be null");
     }
     else
     {
         this.ParentReference = parentReference;
     }
     // to ensure "studentReference" is required (not null)
     if (studentReference == null)
     {
         throw new InvalidDataException("studentReference is a required property for EdFiStudentParentAssociationWritable and cannot be null");
     }
     else
     {
         this.StudentReference = studentReference;
     }
     this.Id = id;
     this.RelationDescriptor = relationDescriptor;
     this.Etag = etag;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiStudentSpecialEducationProgramAssociationReadable" /> 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&#39;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&#39;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 EdFiStudentSpecialEducationProgramAssociationReadable(string id = default(string), DateTime?beginDate = default(DateTime?), EdFiEducationOrganizationReference educationOrganizationReference = default(EdFiEducationOrganizationReference), EdFiProgramReference programReference = default(EdFiProgramReference), EdFiStudentReference studentReference = default(EdFiStudentReference), List <EdFiStudentSpecialEducationProgramAssociationDisabilityReadable> disabilities = default(List <EdFiStudentSpecialEducationProgramAssociationDisabilityReadable>), DateTime?endDate = default(DateTime?), string specialEducationSettingDescriptor = default(string), string etag = default(string), StudentSpecialEducationProgramAssociationExtensionsReadable ext = default(StudentSpecialEducationProgramAssociationExtensionsReadable))
 {
     // to ensure "beginDate" is required (not null)
     if (beginDate == null)
     {
         throw new InvalidDataException("beginDate is a required property for EdFiStudentSpecialEducationProgramAssociationReadable 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 EdFiStudentSpecialEducationProgramAssociationReadable 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 EdFiStudentSpecialEducationProgramAssociationReadable 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 EdFiStudentSpecialEducationProgramAssociationReadable 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;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiStudentTitleIPartAProgramAssociationReadable" /> 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="endDate">The month, day, and year on which the Student exited the Program or stopped receiving services..</param>
 /// <param name="titleIPartAParticipantDescriptor">An indication of the type of Title I program, if any, in which the student is participating and by which the student is served:         Public Targeted Assistance Program         Public Schoolwide Program         Private School Students Participating         Local Neglected Program. (required).</param>
 /// <param name="etag">A unique system-generated value that identifies the version of the resource..</param>
 public EdFiStudentTitleIPartAProgramAssociationReadable(string id = default(string), DateTime?beginDate = default(DateTime?), EdFiEducationOrganizationReference educationOrganizationReference = default(EdFiEducationOrganizationReference), EdFiProgramReference programReference = default(EdFiProgramReference), EdFiStudentReference studentReference = default(EdFiStudentReference), DateTime?endDate = default(DateTime?), string titleIPartAParticipantDescriptor = default(string), string etag = default(string))
 {
     // to ensure "beginDate" is required (not null)
     if (beginDate == null)
     {
         throw new InvalidDataException("beginDate is a required property for EdFiStudentTitleIPartAProgramAssociationReadable 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 EdFiStudentTitleIPartAProgramAssociationReadable 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 EdFiStudentTitleIPartAProgramAssociationReadable 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 EdFiStudentTitleIPartAProgramAssociationReadable and cannot be null");
     }
     else
     {
         this.StudentReference = studentReference;
     }
     // to ensure "titleIPartAParticipantDescriptor" is required (not null)
     if (titleIPartAParticipantDescriptor == null)
     {
         throw new InvalidDataException("titleIPartAParticipantDescriptor is a required property for EdFiStudentTitleIPartAProgramAssociationReadable and cannot be null");
     }
     else
     {
         this.TitleIPartAParticipantDescriptor = titleIPartAParticipantDescriptor;
     }
     this.Id      = id;
     this.EndDate = endDate;
     this.Etag    = etag;
 }
コード例 #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiStudentSchoolFoodServiceProgramAssociationWritable" /> 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="endDate">The month, day, and year on which the Student exited the Program or stopped receiving services..</param>
 /// <param name="schoolFoodServiceProgramServices">An unordered collection of studentSchoolFoodServiceProgramAssociationSchoolFoodServiceProgramServices. Indicates the service(s) being provided to the Student by the School Food Service Program..</param>
 /// <param name="etag">A unique system-generated value that identifies the version of the resource..</param>
 public EdFiStudentSchoolFoodServiceProgramAssociationWritable(string id = default(string), DateTime?beginDate = default(DateTime?), EdFiEducationOrganizationReference educationOrganizationReference = default(EdFiEducationOrganizationReference), EdFiProgramReference programReference = default(EdFiProgramReference), EdFiStudentReference studentReference = default(EdFiStudentReference), DateTime?endDate = default(DateTime?), List <EdFiStudentSchoolFoodServiceProgramAssociationSchoolFoodServiceProgramServiceWritable> schoolFoodServiceProgramServices = default(List <EdFiStudentSchoolFoodServiceProgramAssociationSchoolFoodServiceProgramServiceWritable>), string etag = default(string))
 {
     // to ensure "beginDate" is required (not null)
     if (beginDate == null)
     {
         throw new InvalidDataException("beginDate is a required property for EdFiStudentSchoolFoodServiceProgramAssociationWritable 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 EdFiStudentSchoolFoodServiceProgramAssociationWritable 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 EdFiStudentSchoolFoodServiceProgramAssociationWritable 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 EdFiStudentSchoolFoodServiceProgramAssociationWritable and cannot be null");
     }
     else
     {
         this.StudentReference = studentReference;
     }
     this.Id      = id;
     this.EndDate = endDate;
     this.SchoolFoodServiceProgramServices = schoolFoodServiceProgramServices;
     this.Etag = etag;
 }