{-# 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.IoTThingsGraph.Types.FlowTemplateFilterName
-- 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.IoTThingsGraph.Types.FlowTemplateFilterName
  ( FlowTemplateFilterName
      ( ..,
        FlowTemplateFilterName_DEVICE_MODEL_ID
      ),
  )
where

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

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

pattern FlowTemplateFilterName_DEVICE_MODEL_ID :: FlowTemplateFilterName
pattern $bFlowTemplateFilterName_DEVICE_MODEL_ID :: FlowTemplateFilterName
$mFlowTemplateFilterName_DEVICE_MODEL_ID :: forall r.
FlowTemplateFilterName -> (Void# -> r) -> (Void# -> r) -> r
FlowTemplateFilterName_DEVICE_MODEL_ID = FlowTemplateFilterName' "DEVICE_MODEL_ID"

{-# COMPLETE
  FlowTemplateFilterName_DEVICE_MODEL_ID,
  FlowTemplateFilterName'
  #-}