{-# 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.InputLossImageType
-- 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.InputLossImageType
  ( InputLossImageType
      ( ..,
        InputLossImageType_COLOR,
        InputLossImageType_SLATE
      ),
  )
where

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

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

pattern InputLossImageType_COLOR :: InputLossImageType
pattern $bInputLossImageType_COLOR :: InputLossImageType
$mInputLossImageType_COLOR :: forall r. InputLossImageType -> (Void# -> r) -> (Void# -> r) -> r
InputLossImageType_COLOR = InputLossImageType' "COLOR"

pattern InputLossImageType_SLATE :: InputLossImageType
pattern $bInputLossImageType_SLATE :: InputLossImageType
$mInputLossImageType_SLATE :: forall r. InputLossImageType -> (Void# -> r) -> (Void# -> r) -> r
InputLossImageType_SLATE = InputLossImageType' "SLATE"

{-# COMPLETE
  InputLossImageType_COLOR,
  InputLossImageType_SLATE,
  InputLossImageType'
  #-}