{-# 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.MediaLive.Types.InputFilter
-- 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.MediaLive.Types.InputFilter
  ( InputFilter
      ( ..,
        InputFilter_AUTO,
        InputFilter_DISABLED,
        InputFilter_FORCED
      ),
  )
where

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

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

pattern InputFilter_AUTO :: InputFilter
pattern $bInputFilter_AUTO :: InputFilter
$mInputFilter_AUTO :: forall r. InputFilter -> (Void# -> r) -> (Void# -> r) -> r
InputFilter_AUTO = InputFilter' "AUTO"

pattern InputFilter_DISABLED :: InputFilter
pattern $bInputFilter_DISABLED :: InputFilter
$mInputFilter_DISABLED :: forall r. InputFilter -> (Void# -> r) -> (Void# -> r) -> r
InputFilter_DISABLED = InputFilter' "DISABLED"

pattern InputFilter_FORCED :: InputFilter
pattern $bInputFilter_FORCED :: InputFilter
$mInputFilter_FORCED :: forall r. InputFilter -> (Void# -> r) -> (Void# -> r) -> r
InputFilter_FORCED = InputFilter' "FORCED"

{-# COMPLETE
  InputFilter_AUTO,
  InputFilter_DISABLED,
  InputFilter_FORCED,
  InputFilter'
  #-}