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

/**
 * Recovery plan planned failover input properties.
 *
 */
class RecoveryPlanPlannedFailoverInputProperties {
  /**
   * Create a RecoveryPlanPlannedFailoverInputProperties.
   * @member {string} failoverDirection The failover direction. Possible values
   * include: 'PrimaryToRecovery', 'RecoveryToPrimary'
   * @member {array} [providerSpecificDetails] The provider specific
   * properties.
   */
  constructor() {
  }

  /**
   * Defines the metadata of RecoveryPlanPlannedFailoverInputProperties
   *
   * @returns {object} metadata of RecoveryPlanPlannedFailoverInputProperties
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'RecoveryPlanPlannedFailoverInputProperties',
      type: {
        name: 'Composite',
        className: 'RecoveryPlanPlannedFailoverInputProperties',
        modelProperties: {
          failoverDirection: {
            required: true,
            serializedName: 'failoverDirection',
            type: {
              name: 'String'
            }
          },
          providerSpecificDetails: {
            required: false,
            serializedName: 'providerSpecificDetails',
            type: {
              name: 'Sequence',
              element: {
                  required: false,
                  serializedName: 'RecoveryPlanProviderSpecificFailoverInputElementType',
                  type: {
                    name: 'Composite',
                    polymorphicDiscriminator: {
                      serializedName: 'instanceType',
                      clientName: 'instanceType'
                    },
                    uberParent: 'RecoveryPlanProviderSpecificFailoverInput',
                    className: 'RecoveryPlanProviderSpecificFailoverInput'
                  }
              }
            }
          }
        }
      }
    };
  }
}

module.exports = RecoveryPlanPlannedFailoverInputProperties;
