{-# 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.Kendra.Types.ServiceNowBuildVersionType
-- 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.Kendra.Types.ServiceNowBuildVersionType
  ( ServiceNowBuildVersionType
      ( ..,
        ServiceNowBuildVersionType_LONDON,
        ServiceNowBuildVersionType_OTHERS
      ),
  )
where

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

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

pattern ServiceNowBuildVersionType_LONDON :: ServiceNowBuildVersionType
pattern $bServiceNowBuildVersionType_LONDON :: ServiceNowBuildVersionType
$mServiceNowBuildVersionType_LONDON :: forall {r}.
ServiceNowBuildVersionType -> ((# #) -> r) -> ((# #) -> r) -> r
ServiceNowBuildVersionType_LONDON = ServiceNowBuildVersionType' "LONDON"

pattern ServiceNowBuildVersionType_OTHERS :: ServiceNowBuildVersionType
pattern $bServiceNowBuildVersionType_OTHERS :: ServiceNowBuildVersionType
$mServiceNowBuildVersionType_OTHERS :: forall {r}.
ServiceNowBuildVersionType -> ((# #) -> r) -> ((# #) -> r) -> r
ServiceNowBuildVersionType_OTHERS = ServiceNowBuildVersionType' "OTHERS"

{-# COMPLETE
  ServiceNowBuildVersionType_LONDON,
  ServiceNowBuildVersionType_OTHERS,
  ServiceNowBuildVersionType'
  #-}