{-# 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.APIGateway.Types.ApiKeysFormat
-- 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.APIGateway.Types.ApiKeysFormat
  ( ApiKeysFormat
      ( ..,
        ApiKeysFormat_Csv
      ),
  )
where

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

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

pattern ApiKeysFormat_Csv :: ApiKeysFormat
pattern $bApiKeysFormat_Csv :: ApiKeysFormat
$mApiKeysFormat_Csv :: forall {r}. ApiKeysFormat -> ((# #) -> r) -> ((# #) -> r) -> r
ApiKeysFormat_Csv = ApiKeysFormat' "csv"

{-# COMPLETE
  ApiKeysFormat_Csv,
  ApiKeysFormat'
  #-}