{-# 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.CodeDeploy.Types.TagFilterType
-- 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.CodeDeploy.Types.TagFilterType
  ( TagFilterType
      ( ..,
        TagFilterType_KEY_AND_VALUE,
        TagFilterType_KEY_ONLY,
        TagFilterType_VALUE_ONLY
      ),
  )
where

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

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

pattern TagFilterType_KEY_AND_VALUE :: TagFilterType
pattern $bTagFilterType_KEY_AND_VALUE :: TagFilterType
$mTagFilterType_KEY_AND_VALUE :: forall r. TagFilterType -> (Void# -> r) -> (Void# -> r) -> r
TagFilterType_KEY_AND_VALUE = TagFilterType' "KEY_AND_VALUE"

pattern TagFilterType_KEY_ONLY :: TagFilterType
pattern $bTagFilterType_KEY_ONLY :: TagFilterType
$mTagFilterType_KEY_ONLY :: forall r. TagFilterType -> (Void# -> r) -> (Void# -> r) -> r
TagFilterType_KEY_ONLY = TagFilterType' "KEY_ONLY"

pattern TagFilterType_VALUE_ONLY :: TagFilterType
pattern $bTagFilterType_VALUE_ONLY :: TagFilterType
$mTagFilterType_VALUE_ONLY :: forall r. TagFilterType -> (Void# -> r) -> (Void# -> r) -> r
TagFilterType_VALUE_ONLY = TagFilterType' "VALUE_ONLY"

{-# COMPLETE
  TagFilterType_KEY_AND_VALUE,
  TagFilterType_KEY_ONLY,
  TagFilterType_VALUE_ONLY,
  TagFilterType'
  #-}