# 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::Scheduler::Mgmt::V2016_03_01
  module Models
    #
    # Model object.
    #
    #
    class JobProperties

      include MsRestAzure

      # @return [DateTime] Gets or sets the job start time.
      attr_accessor :start_time

      # @return [JobAction] Gets or sets the job action.
      attr_accessor :action

      # @return [JobRecurrence] Gets or sets the job recurrence.
      attr_accessor :recurrence

      # @return [JobState] Gets or set the job state. Possible values include:
      # 'Enabled', 'Disabled', 'Faulted', 'Completed'
      attr_accessor :state

      # @return [JobStatus] Gets the job status.
      attr_accessor :status


      #
      # Mapper for JobProperties class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'JobProperties',
          type: {
            name: 'Composite',
            class_name: 'JobProperties',
            model_properties: {
              start_time: {
                client_side_validation: true,
                required: false,
                serialized_name: 'startTime',
                type: {
                  name: 'DateTime'
                }
              },
              action: {
                client_side_validation: true,
                required: false,
                serialized_name: 'action',
                type: {
                  name: 'Composite',
                  class_name: 'JobAction'
                }
              },
              recurrence: {
                client_side_validation: true,
                required: false,
                serialized_name: 'recurrence',
                type: {
                  name: 'Composite',
                  class_name: 'JobRecurrence'
                }
              },
              state: {
                client_side_validation: true,
                required: false,
                serialized_name: 'state',
                type: {
                  name: 'Enum',
                  module: 'JobState'
                }
              },
              status: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'status',
                type: {
                  name: 'Composite',
                  class_name: 'JobStatus'
                }
              }
            }
          }
        }
      end
    end
  end
end
