{-# 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.InputLossActionForUdpOut
-- 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.InputLossActionForUdpOut
  ( InputLossActionForUdpOut
      ( ..,
        InputLossActionForUdpOut_DROP_PROGRAM,
        InputLossActionForUdpOut_DROP_TS,
        InputLossActionForUdpOut_EMIT_PROGRAM
      ),
  )
where

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

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

pattern InputLossActionForUdpOut_DROP_PROGRAM :: InputLossActionForUdpOut
pattern $bInputLossActionForUdpOut_DROP_PROGRAM :: InputLossActionForUdpOut
$mInputLossActionForUdpOut_DROP_PROGRAM :: forall r.
InputLossActionForUdpOut -> (Void# -> r) -> (Void# -> r) -> r
InputLossActionForUdpOut_DROP_PROGRAM = InputLossActionForUdpOut' "DROP_PROGRAM"

pattern InputLossActionForUdpOut_DROP_TS :: InputLossActionForUdpOut
pattern $bInputLossActionForUdpOut_DROP_TS :: InputLossActionForUdpOut
$mInputLossActionForUdpOut_DROP_TS :: forall r.
InputLossActionForUdpOut -> (Void# -> r) -> (Void# -> r) -> r
InputLossActionForUdpOut_DROP_TS = InputLossActionForUdpOut' "DROP_TS"

pattern InputLossActionForUdpOut_EMIT_PROGRAM :: InputLossActionForUdpOut
pattern $bInputLossActionForUdpOut_EMIT_PROGRAM :: InputLossActionForUdpOut
$mInputLossActionForUdpOut_EMIT_PROGRAM :: forall r.
InputLossActionForUdpOut -> (Void# -> r) -> (Void# -> r) -> r
InputLossActionForUdpOut_EMIT_PROGRAM = InputLossActionForUdpOut' "EMIT_PROGRAM"

{-# COMPLETE
  InputLossActionForUdpOut_DROP_PROGRAM,
  InputLossActionForUdpOut_DROP_TS,
  InputLossActionForUdpOut_EMIT_PROGRAM,
  InputLossActionForUdpOut'
  #-}