{-# 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.DirectConnect.Types.LoaContentType
-- 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.DirectConnect.Types.LoaContentType
  ( LoaContentType
      ( ..,
        LoaContentType_Application_pdf
      ),
  )
where

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

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

pattern LoaContentType_Application_pdf :: LoaContentType
pattern $bLoaContentType_Application_pdf :: LoaContentType
$mLoaContentType_Application_pdf :: forall r. LoaContentType -> (Void# -> r) -> (Void# -> r) -> r
LoaContentType_Application_pdf = LoaContentType' "application/pdf"

{-# COMPLETE
  LoaContentType_Application_pdf,
  LoaContentType'
  #-}