{-# 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.GameLift.Types.CertificateType
-- 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.GameLift.Types.CertificateType
  ( CertificateType
      ( ..,
        CertificateType_DISABLED,
        CertificateType_GENERATED
      ),
  )
where

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

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

pattern CertificateType_DISABLED :: CertificateType
pattern $bCertificateType_DISABLED :: CertificateType
$mCertificateType_DISABLED :: forall {r}. CertificateType -> ((# #) -> r) -> ((# #) -> r) -> r
CertificateType_DISABLED = CertificateType' "DISABLED"

pattern CertificateType_GENERATED :: CertificateType
pattern $bCertificateType_GENERATED :: CertificateType
$mCertificateType_GENERATED :: forall {r}. CertificateType -> ((# #) -> r) -> ((# #) -> r) -> r
CertificateType_GENERATED = CertificateType' "GENERATED"

{-# COMPLETE
  CertificateType_DISABLED,
  CertificateType_GENERATED,
  CertificateType'
  #-}