# 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::ServiceFabric::V6_4_0_36
  module Models
    #
    # Defines an hour and minute of the day specified in 24 hour time.
    #
    class TimeOfDay

      include MsRestAzure

      # @return [Integer] Represents the hour of the day. Value must be between
      # 0 and 23 inclusive.
      attr_accessor :hour

      # @return [Integer] Represents the minute of the hour. Value must be
      # between 0 to 59 inclusive.
      attr_accessor :minute


      #
      # Mapper for TimeOfDay class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'TimeOfDay',
          type: {
            name: 'Composite',
            class_name: 'TimeOfDay',
            model_properties: {
              hour: {
                client_side_validation: true,
                required: false,
                serialized_name: 'Hour',
                constraints: {
                  InclusiveMaximum: 23,
                  InclusiveMinimum: 0
                },
                type: {
                  name: 'Number'
                }
              },
              minute: {
                client_side_validation: true,
                required: false,
                serialized_name: 'Minute',
                constraints: {
                  InclusiveMaximum: 59,
                  InclusiveMinimum: 0
                },
                type: {
                  name: 'Number'
                }
              }
            }
          }
        }
      end
    end
  end
end
