/*
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 * Changes may cause incorrect behavior and will be lost if the code is
 * regenerated.
 */

'use strict';

/**
 * The recurrence schedule occurrence.
 *
 */
class RecurrenceScheduleOccurrence {
  /**
   * Create a RecurrenceScheduleOccurrence.
   * @property {string} [day] The day of the week. Possible values include:
   * 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday',
   * 'Saturday'
   * @property {number} [occurrence] The occurrence.
   */
  constructor() {
  }

  /**
   * Defines the metadata of RecurrenceScheduleOccurrence
   *
   * @returns {object} metadata of RecurrenceScheduleOccurrence
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'RecurrenceScheduleOccurrence',
      type: {
        name: 'Composite',
        className: 'RecurrenceScheduleOccurrence',
        modelProperties: {
          day: {
            required: false,
            serializedName: 'day',
            type: {
              name: 'Enum',
              allowedValues: [ 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ]
            }
          },
          occurrence: {
            required: false,
            serializedName: 'occurrence',
            type: {
              name: 'Number'
            }
          }
        }
      }
    };
  }
}

module.exports = RecurrenceScheduleOccurrence;
