{-# 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.ResourceGroups.Types.QueryType
-- 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.ResourceGroups.Types.QueryType
  ( QueryType
      ( ..,
        QueryType_CLOUDFORMATION_STACK_1_0,
        QueryType_TAG_FILTERS_1_0
      ),
  )
where

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

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

pattern QueryType_CLOUDFORMATION_STACK_1_0 :: QueryType
pattern $bQueryType_CLOUDFORMATION_STACK_1_0 :: QueryType
$mQueryType_CLOUDFORMATION_STACK_1_0 :: forall r. QueryType -> (Void# -> r) -> (Void# -> r) -> r
QueryType_CLOUDFORMATION_STACK_1_0 = QueryType' "CLOUDFORMATION_STACK_1_0"

pattern QueryType_TAG_FILTERS_1_0 :: QueryType
pattern $bQueryType_TAG_FILTERS_1_0 :: QueryType
$mQueryType_TAG_FILTERS_1_0 :: forall r. QueryType -> (Void# -> r) -> (Void# -> r) -> r
QueryType_TAG_FILTERS_1_0 = QueryType' "TAG_FILTERS_1_0"

{-# COMPLETE
  QueryType_CLOUDFORMATION_STACK_1_0,
  QueryType_TAG_FILTERS_1_0,
  QueryType'
  #-}