# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::CognitiveServices::ContentModerator::V1_0
  module Models
    #
    # Detected SSN details.
    #
    class SSN

      include MsRestAzure

      # @return [String] Detected SSN in the input text content.
      attr_accessor :text

      # @return [Integer] Index(Location) of the SSN in the input text content.
      attr_accessor :index


      #
      # Mapper for SSN class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'SSN',
          type: {
            name: 'Composite',
            class_name: 'SSN',
            model_properties: {
              text: {
                client_side_validation: true,
                required: false,
                serialized_name: 'Text',
                type: {
                  name: 'String'
                }
              },
              index: {
                client_side_validation: true,
                required: false,
                serialized_name: 'Index',
                type: {
                  name: 'Number'
                }
              }
            }
          }
        }
      end
    end
  end
end
