# 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_5_0_36
  module Models
    #
    # Chaos Restart Node Fault Scheduled event.
    #
    class ChaosNodeRestartScheduledEvent < NodeEvent

      include MsRestAzure


      def initialize
        @Kind = "ChaosNodeRestartScheduled"
      end

      attr_accessor :Kind

      # @return [Integer] Id of Node instance.
      attr_accessor :node_instance_id

      # @return Id of fault group.
      attr_accessor :fault_group_id

      # @return Id of fault.
      attr_accessor :fault_id


      #
      # Mapper for ChaosNodeRestartScheduledEvent class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ChaosNodeRestartScheduled',
          type: {
            name: 'Composite',
            class_name: 'ChaosNodeRestartScheduledEvent',
            model_properties: {
              event_instance_id: {
                client_side_validation: true,
                required: true,
                serialized_name: 'EventInstanceId',
                type: {
                  name: 'String'
                }
              },
              category: {
                client_side_validation: true,
                required: false,
                serialized_name: 'Category',
                type: {
                  name: 'String'
                }
              },
              time_stamp: {
                client_side_validation: true,
                required: true,
                serialized_name: 'TimeStamp',
                type: {
                  name: 'DateTime'
                }
              },
              has_correlated_events: {
                client_side_validation: true,
                required: false,
                serialized_name: 'HasCorrelatedEvents',
                type: {
                  name: 'Boolean'
                }
              },
              Kind: {
                client_side_validation: true,
                required: true,
                serialized_name: 'Kind',
                type: {
                  name: 'String'
                }
              },
              node_name: {
                client_side_validation: true,
                required: true,
                serialized_name: 'NodeName',
                type: {
                  name: 'String'
                }
              },
              node_instance_id: {
                client_side_validation: true,
                required: true,
                serialized_name: 'NodeInstanceId',
                type: {
                  name: 'Number'
                }
              },
              fault_group_id: {
                client_side_validation: true,
                required: true,
                serialized_name: 'FaultGroupId',
                type: {
                  name: 'String'
                }
              },
              fault_id: {
                client_side_validation: true,
                required: true,
                serialized_name: 'FaultId',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
