{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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.Prelude as Prelude

newtype CertificateType = CertificateType'
  { CertificateType -> Text
fromCertificateType ::
      Core.Text
  }
  deriving stock
    ( Int -> CertificateType -> ShowS
[CertificateType] -> ShowS
CertificateType -> String
(Int -> CertificateType -> ShowS)
-> (CertificateType -> String)
-> ([CertificateType] -> ShowS)
-> Show CertificateType
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]
(Int -> ReadS CertificateType)
-> ReadS [CertificateType]
-> ReadPrec CertificateType
-> ReadPrec [CertificateType]
-> Read 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
(CertificateType -> CertificateType -> Bool)
-> (CertificateType -> CertificateType -> Bool)
-> Eq CertificateType
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
Eq CertificateType
-> (CertificateType -> CertificateType -> Ordering)
-> (CertificateType -> CertificateType -> Bool)
-> (CertificateType -> CertificateType -> Bool)
-> (CertificateType -> CertificateType -> Bool)
-> (CertificateType -> CertificateType -> Bool)
-> (CertificateType -> CertificateType -> CertificateType)
-> (CertificateType -> CertificateType -> CertificateType)
-> Ord 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
$cp1Ord :: Eq CertificateType
Prelude.Ord,
      (forall x. CertificateType -> Rep CertificateType x)
-> (forall x. Rep CertificateType x -> CertificateType)
-> Generic CertificateType
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
    ( Int -> CertificateType -> Int
CertificateType -> Int
(Int -> CertificateType -> Int)
-> (CertificateType -> Int) -> Hashable CertificateType
forall 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 -> ()
(CertificateType -> ()) -> NFData CertificateType
forall a. (a -> ()) -> NFData a
rnf :: CertificateType -> ()
$crnf :: CertificateType -> ()
Prelude.NFData,
      Text -> Either String CertificateType
(Text -> Either String CertificateType) -> FromText CertificateType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String CertificateType
$cfromText :: Text -> Either String CertificateType
Core.FromText,
      CertificateType -> Text
(CertificateType -> Text) -> ToText CertificateType
forall a. (a -> Text) -> ToText a
toText :: CertificateType -> Text
$ctoText :: CertificateType -> Text
Core.ToText,
      CertificateType -> ByteString
(CertificateType -> ByteString) -> ToByteString CertificateType
forall a. (a -> ByteString) -> ToByteString a
toBS :: CertificateType -> ByteString
$ctoBS :: CertificateType -> ByteString
Core.ToByteString,
      CertificateType -> ByteStringBuilder
(CertificateType -> ByteStringBuilder) -> ToLog CertificateType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: CertificateType -> ByteStringBuilder
$cbuild :: CertificateType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> CertificateType -> [Header]
(HeaderName -> CertificateType -> [Header])
-> ToHeader CertificateType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> CertificateType -> [Header]
$ctoHeader :: HeaderName -> CertificateType -> [Header]
Core.ToHeader,
      CertificateType -> QueryString
(CertificateType -> QueryString) -> ToQuery CertificateType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: CertificateType -> QueryString
$ctoQuery :: CertificateType -> QueryString
Core.ToQuery,
      Value -> Parser [CertificateType]
Value -> Parser CertificateType
(Value -> Parser CertificateType)
-> (Value -> Parser [CertificateType]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [CertificateType]
FromJSONKeyFunction CertificateType
FromJSONKeyFunction CertificateType
-> FromJSONKeyFunction [CertificateType]
-> FromJSONKey CertificateType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [CertificateType]
$cfromJSONKeyList :: FromJSONKeyFunction [CertificateType]
fromJSONKey :: FromJSONKeyFunction CertificateType
$cfromJSONKey :: FromJSONKeyFunction CertificateType
Core.FromJSONKey,
      [CertificateType] -> Encoding
[CertificateType] -> Value
CertificateType -> Encoding
CertificateType -> Value
(CertificateType -> Value)
-> (CertificateType -> Encoding)
-> ([CertificateType] -> Value)
-> ([CertificateType] -> Encoding)
-> ToJSON CertificateType
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
Core.ToJSON,
      ToJSONKeyFunction [CertificateType]
ToJSONKeyFunction CertificateType
ToJSONKeyFunction CertificateType
-> ToJSONKeyFunction [CertificateType] -> ToJSONKey CertificateType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [CertificateType]
$ctoJSONKeyList :: ToJSONKeyFunction [CertificateType]
toJSONKey :: ToJSONKeyFunction CertificateType
$ctoJSONKey :: ToJSONKeyFunction CertificateType
Core.ToJSONKey,
      [Node] -> Either String CertificateType
([Node] -> Either String CertificateType)
-> FromXML CertificateType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String CertificateType
$cparseXML :: [Node] -> Either String CertificateType
Core.FromXML,
      CertificateType -> XML
(CertificateType -> XML) -> ToXML CertificateType
forall a. (a -> XML) -> ToXML a
toXML :: CertificateType -> XML
$ctoXML :: CertificateType -> XML
Core.ToXML
    )

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

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

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