# 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
    #
    # Information about a stateful Service Fabric service.
    #
    class StatefulServiceInfo < ServiceInfo

      include MsRestAzure


      def initialize
        @ServiceKind = "Stateful"
      end

      attr_accessor :ServiceKind

      # @return [Boolean] Whether the service has persisted state.
      attr_accessor :has_persisted_state


      #
      # Mapper for StatefulServiceInfo class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'Stateful',
          type: {
            name: 'Composite',
            class_name: 'StatefulServiceInfo',
            model_properties: {
              id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'Id',
                type: {
                  name: 'String'
                }
              },
              name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'Name',
                type: {
                  name: 'String'
                }
              },
              type_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'TypeName',
                type: {
                  name: 'String'
                }
              },
              manifest_version: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ManifestVersion',
                type: {
                  name: 'String'
                }
              },
              health_state: {
                client_side_validation: true,
                required: false,
                serialized_name: 'HealthState',
                type: {
                  name: 'String'
                }
              },
              service_status: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ServiceStatus',
                type: {
                  name: 'String'
                }
              },
              is_service_group: {
                client_side_validation: true,
                required: false,
                serialized_name: 'IsServiceGroup',
                type: {
                  name: 'Boolean'
                }
              },
              ServiceKind: {
                client_side_validation: true,
                required: true,
                serialized_name: 'ServiceKind',
                type: {
                  name: 'String'
                }
              },
              has_persisted_state: {
                client_side_validation: true,
                required: false,
                serialized_name: 'HasPersistedState',
                type: {
                  name: 'Boolean'
                }
              }
            }
          }
        }
      end
    end
  end
end
