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

module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
  module Models
    #
    # This class represents a task which is actually a workflow so that one can
    # navigate to its individual drill down.
    #
    class JobTaskDetails < TaskTypeDetails

      include MsRestAzure


      def initialize
        @instanceType = "JobTaskDetails"
      end

      attr_accessor :instanceType

      # @return [JobEntity] The job entity.
      attr_accessor :job_task


      #
      # Mapper for JobTaskDetails class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'JobTaskDetails',
          type: {
            name: 'Composite',
            class_name: 'JobTaskDetails',
            model_properties: {
              instanceType: {
                client_side_validation: true,
                required: true,
                serialized_name: 'instanceType',
                type: {
                  name: 'String'
                }
              },
              job_task: {
                client_side_validation: true,
                required: false,
                serialized_name: 'jobTask',
                type: {
                  name: 'Composite',
                  class_name: 'JobEntity'
                }
              }
            }
          }
        }
      end
    end
  end
end
