{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.SMS.Types.ServerType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.SMS.Types.ServerType
  ( ServerType
      ( ..,
        ServerType_VIRTUAL_MACHINE
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype ServerType = ServerType'
  { ServerType -> Text
fromServerType ::
      Data.Text
  }
  deriving stock
    ( Int -> ServerType -> ShowS
[ServerType] -> ShowS
ServerType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ServerType] -> ShowS
$cshowList :: [ServerType] -> ShowS
show :: ServerType -> String
$cshow :: ServerType -> String
showsPrec :: Int -> ServerType -> ShowS
$cshowsPrec :: Int -> ServerType -> ShowS
Prelude.Show,
      ReadPrec [ServerType]
ReadPrec ServerType
Int -> ReadS ServerType
ReadS [ServerType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ServerType]
$creadListPrec :: ReadPrec [ServerType]
readPrec :: ReadPrec ServerType
$creadPrec :: ReadPrec ServerType
readList :: ReadS [ServerType]
$creadList :: ReadS [ServerType]
readsPrec :: Int -> ReadS ServerType
$creadsPrec :: Int -> ReadS ServerType
Prelude.Read,
      ServerType -> ServerType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ServerType -> ServerType -> Bool
$c/= :: ServerType -> ServerType -> Bool
== :: ServerType -> ServerType -> Bool
$c== :: ServerType -> ServerType -> Bool
Prelude.Eq,
      Eq ServerType
ServerType -> ServerType -> Bool
ServerType -> ServerType -> Ordering
ServerType -> ServerType -> ServerType
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ServerType -> ServerType -> ServerType
$cmin :: ServerType -> ServerType -> ServerType
max :: ServerType -> ServerType -> ServerType
$cmax :: ServerType -> ServerType -> ServerType
>= :: ServerType -> ServerType -> Bool
$c>= :: ServerType -> ServerType -> Bool
> :: ServerType -> ServerType -> Bool
$c> :: ServerType -> ServerType -> Bool
<= :: ServerType -> ServerType -> Bool
$c<= :: ServerType -> ServerType -> Bool
< :: ServerType -> ServerType -> Bool
$c< :: ServerType -> ServerType -> Bool
compare :: ServerType -> ServerType -> Ordering
$ccompare :: ServerType -> ServerType -> Ordering
Prelude.Ord,
      forall x. Rep ServerType x -> ServerType
forall x. ServerType -> Rep ServerType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ServerType x -> ServerType
$cfrom :: forall x. ServerType -> Rep ServerType x
Prelude.Generic
    )
  deriving newtype
    ( Eq ServerType
Int -> ServerType -> Int
ServerType -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ServerType -> Int
$chash :: ServerType -> Int
hashWithSalt :: Int -> ServerType -> Int
$chashWithSalt :: Int -> ServerType -> Int
Prelude.Hashable,
      ServerType -> ()
forall a. (a -> ()) -> NFData a
rnf :: ServerType -> ()
$crnf :: ServerType -> ()
Prelude.NFData,
      Text -> Either String ServerType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ServerType
$cfromText :: Text -> Either String ServerType
Data.FromText,
      ServerType -> Text
forall a. (a -> Text) -> ToText a
toText :: ServerType -> Text
$ctoText :: ServerType -> Text
Data.ToText,
      ServerType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: ServerType -> ByteString
$ctoBS :: ServerType -> ByteString
Data.ToByteString,
      ServerType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ServerType -> ByteStringBuilder
$cbuild :: ServerType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> ServerType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ServerType -> [Header]
$ctoHeader :: HeaderName -> ServerType -> [Header]
Data.ToHeader,
      ServerType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ServerType -> QueryString
$ctoQuery :: ServerType -> QueryString
Data.ToQuery,
      Value -> Parser [ServerType]
Value -> Parser ServerType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ServerType]
$cparseJSONList :: Value -> Parser [ServerType]
parseJSON :: Value -> Parser ServerType
$cparseJSON :: Value -> Parser ServerType
Data.FromJSON,
      FromJSONKeyFunction [ServerType]
FromJSONKeyFunction ServerType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ServerType]
$cfromJSONKeyList :: FromJSONKeyFunction [ServerType]
fromJSONKey :: FromJSONKeyFunction ServerType
$cfromJSONKey :: FromJSONKeyFunction ServerType
Data.FromJSONKey,
      [ServerType] -> Encoding
[ServerType] -> Value
ServerType -> Encoding
ServerType -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ServerType] -> Encoding
$ctoEncodingList :: [ServerType] -> Encoding
toJSONList :: [ServerType] -> Value
$ctoJSONList :: [ServerType] -> Value
toEncoding :: ServerType -> Encoding
$ctoEncoding :: ServerType -> Encoding
toJSON :: ServerType -> Value
$ctoJSON :: ServerType -> Value
Data.ToJSON,
      ToJSONKeyFunction [ServerType]
ToJSONKeyFunction ServerType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ServerType]
$ctoJSONKeyList :: ToJSONKeyFunction [ServerType]
toJSONKey :: ToJSONKeyFunction ServerType
$ctoJSONKey :: ToJSONKeyFunction ServerType
Data.ToJSONKey,
      [Node] -> Either String ServerType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ServerType
$cparseXML :: [Node] -> Either String ServerType
Data.FromXML,
      ServerType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: ServerType -> XML
$ctoXML :: ServerType -> XML
Data.ToXML
    )

pattern ServerType_VIRTUAL_MACHINE :: ServerType
pattern $bServerType_VIRTUAL_MACHINE :: ServerType
$mServerType_VIRTUAL_MACHINE :: forall {r}. ServerType -> ((# #) -> r) -> ((# #) -> r) -> r
ServerType_VIRTUAL_MACHINE = ServerType' "VIRTUAL_MACHINE"

{-# COMPLETE
  ServerType_VIRTUAL_MACHINE,
  ServerType'
  #-}