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

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

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

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

{-# COMPLETE
  ApiKeysFormat_Csv,
  ApiKeysFormat'
  #-}