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

/**
 * Creates a particular correlation between services.
 *
 */
class ServiceCorrelationDescription {
  /**
   * Create a ServiceCorrelationDescription.
   * @property {string} scheme The ServiceCorrelationScheme which describes the
   * relationship between this service and the service specified via
   * ServiceName. Possible values include: 'Invalid', 'Affinity',
   * 'AlignedAffinity', 'NonAlignedAffinity'
   * @property {string} serviceName The name of the service that the
   * correlation relationship is established with.
   */
  constructor() {
  }

  /**
   * Defines the metadata of ServiceCorrelationDescription
   *
   * @returns {object} metadata of ServiceCorrelationDescription
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'ServiceCorrelationDescription',
      type: {
        name: 'Composite',
        className: 'ServiceCorrelationDescription',
        modelProperties: {
          scheme: {
            required: true,
            serializedName: 'Scheme',
            type: {
              name: 'String'
            }
          },
          serviceName: {
            required: true,
            serializedName: 'ServiceName',
            type: {
              name: 'String'
            }
          }
        }
      }
    };
  }
}

module.exports = ServiceCorrelationDescription;
