/*
 * 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';

/**
 * Encoder disconnected event data.
 *
 */
class MediaLiveEventEncoderDisconnectedEventData {
  /**
   * Create a MediaLiveEventEncoderDisconnectedEventData.
   * @member {string} [ingestUrl] Gets the ingest URL provided by the live
   * event.
   * @member {string} [streamId] Gets the stream Id.
   * @member {string} [encoderIp] Gets the remote IP.
   * @member {string} [encoderPort] Gets the remote port.
   * @member {string} [resultCode] Gets the result code.
   */
  constructor() {
  }

  /**
   * Defines the metadata of MediaLiveEventEncoderDisconnectedEventData
   *
   * @returns {object} metadata of MediaLiveEventEncoderDisconnectedEventData
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'MediaLiveEventEncoderDisconnectedEventData',
      type: {
        name: 'Composite',
        className: 'MediaLiveEventEncoderDisconnectedEventData',
        modelProperties: {
          ingestUrl: {
            required: false,
            readOnly: true,
            serializedName: 'ingestUrl',
            type: {
              name: 'String'
            }
          },
          streamId: {
            required: false,
            readOnly: true,
            serializedName: 'streamId',
            type: {
              name: 'String'
            }
          },
          encoderIp: {
            required: false,
            readOnly: true,
            serializedName: 'encoderIp',
            type: {
              name: 'String'
            }
          },
          encoderPort: {
            required: false,
            readOnly: true,
            serializedName: 'encoderPort',
            type: {
              name: 'String'
            }
          },
          resultCode: {
            required: false,
            readOnly: true,
            serializedName: 'resultCode',
            type: {
              name: 'String'
            }
          }
        }
      }
    };
  }
}

module.exports = MediaLiveEventEncoderDisconnectedEventData;
