{-# 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.Pinpoint.Types.Layout
-- 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.Pinpoint.Types.Layout
  ( Layout
      ( ..,
        Layout_BOTTOM_BANNER,
        Layout_CAROUSEL,
        Layout_MIDDLE_BANNER,
        Layout_MOBILE_FEED,
        Layout_OVERLAYS,
        Layout_TOP_BANNER
      ),
  )
where

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

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

pattern Layout_BOTTOM_BANNER :: Layout
pattern $bLayout_BOTTOM_BANNER :: Layout
$mLayout_BOTTOM_BANNER :: forall r. Layout -> (Void# -> r) -> (Void# -> r) -> r
Layout_BOTTOM_BANNER = Layout' "BOTTOM_BANNER"

pattern Layout_CAROUSEL :: Layout
pattern $bLayout_CAROUSEL :: Layout
$mLayout_CAROUSEL :: forall r. Layout -> (Void# -> r) -> (Void# -> r) -> r
Layout_CAROUSEL = Layout' "CAROUSEL"

pattern Layout_MIDDLE_BANNER :: Layout
pattern $bLayout_MIDDLE_BANNER :: Layout
$mLayout_MIDDLE_BANNER :: forall r. Layout -> (Void# -> r) -> (Void# -> r) -> r
Layout_MIDDLE_BANNER = Layout' "MIDDLE_BANNER"

pattern Layout_MOBILE_FEED :: Layout
pattern $bLayout_MOBILE_FEED :: Layout
$mLayout_MOBILE_FEED :: forall r. Layout -> (Void# -> r) -> (Void# -> r) -> r
Layout_MOBILE_FEED = Layout' "MOBILE_FEED"

pattern Layout_OVERLAYS :: Layout
pattern $bLayout_OVERLAYS :: Layout
$mLayout_OVERLAYS :: forall r. Layout -> (Void# -> r) -> (Void# -> r) -> r
Layout_OVERLAYS = Layout' "OVERLAYS"

pattern Layout_TOP_BANNER :: Layout
pattern $bLayout_TOP_BANNER :: Layout
$mLayout_TOP_BANNER :: forall r. Layout -> (Void# -> r) -> (Void# -> r) -> r
Layout_TOP_BANNER = Layout' "TOP_BANNER"

{-# COMPLETE
  Layout_BOTTOM_BANNER,
  Layout_CAROUSEL,
  Layout_MIDDLE_BANNER,
  Layout_MOBILE_FEED,
  Layout_OVERLAYS,
  Layout_TOP_BANNER,
  Layout'
  #-}