{-# 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.CloudFront.Types.OriginRequestPolicyQueryStringBehavior
-- 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.CloudFront.Types.OriginRequestPolicyQueryStringBehavior
  ( OriginRequestPolicyQueryStringBehavior
      ( ..,
        OriginRequestPolicyQueryStringBehavior_All,
        OriginRequestPolicyQueryStringBehavior_None,
        OriginRequestPolicyQueryStringBehavior_Whitelist
      ),
  )
where

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

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

pattern OriginRequestPolicyQueryStringBehavior_All :: OriginRequestPolicyQueryStringBehavior
pattern $bOriginRequestPolicyQueryStringBehavior_All :: OriginRequestPolicyQueryStringBehavior
$mOriginRequestPolicyQueryStringBehavior_All :: forall r.
OriginRequestPolicyQueryStringBehavior
-> (Void# -> r) -> (Void# -> r) -> r
OriginRequestPolicyQueryStringBehavior_All = OriginRequestPolicyQueryStringBehavior' "all"

pattern OriginRequestPolicyQueryStringBehavior_None :: OriginRequestPolicyQueryStringBehavior
pattern $bOriginRequestPolicyQueryStringBehavior_None :: OriginRequestPolicyQueryStringBehavior
$mOriginRequestPolicyQueryStringBehavior_None :: forall r.
OriginRequestPolicyQueryStringBehavior
-> (Void# -> r) -> (Void# -> r) -> r
OriginRequestPolicyQueryStringBehavior_None = OriginRequestPolicyQueryStringBehavior' "none"

pattern OriginRequestPolicyQueryStringBehavior_Whitelist :: OriginRequestPolicyQueryStringBehavior
pattern $bOriginRequestPolicyQueryStringBehavior_Whitelist :: OriginRequestPolicyQueryStringBehavior
$mOriginRequestPolicyQueryStringBehavior_Whitelist :: forall r.
OriginRequestPolicyQueryStringBehavior
-> (Void# -> r) -> (Void# -> r) -> r
OriginRequestPolicyQueryStringBehavior_Whitelist = OriginRequestPolicyQueryStringBehavior' "whitelist"

{-# COMPLETE
  OriginRequestPolicyQueryStringBehavior_All,
  OriginRequestPolicyQueryStringBehavior_None,
  OriginRequestPolicyQueryStringBehavior_Whitelist,
  OriginRequestPolicyQueryStringBehavior'
  #-}