{-# 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.Include
-- 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.Include
  ( Include
      ( ..,
        Include_ALL,
        Include_ANY,
        Include_NONE
      ),
  )
where

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

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

pattern Include_ALL :: Include
pattern $bInclude_ALL :: Include
$mInclude_ALL :: forall r. Include -> (Void# -> r) -> (Void# -> r) -> r
Include_ALL = Include' "ALL"

pattern Include_ANY :: Include
pattern $bInclude_ANY :: Include
$mInclude_ANY :: forall r. Include -> (Void# -> r) -> (Void# -> r) -> r
Include_ANY = Include' "ANY"

pattern Include_NONE :: Include
pattern $bInclude_NONE :: Include
$mInclude_NONE :: forall r. Include -> (Void# -> r) -> (Void# -> r) -> r
Include_NONE = Include' "NONE"

{-# COMPLETE
  Include_ALL,
  Include_ANY,
  Include_NONE,
  Include'
  #-}