{-# 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.InputDeviceTransferType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MediaLive.Types.InputDeviceTransferType
  ( InputDeviceTransferType
      ( ..,
        InputDeviceTransferType_INCOMING,
        InputDeviceTransferType_OUTGOING
      ),
  )
where

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

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

pattern InputDeviceTransferType_INCOMING :: InputDeviceTransferType
pattern $bInputDeviceTransferType_INCOMING :: InputDeviceTransferType
$mInputDeviceTransferType_INCOMING :: forall {r}.
InputDeviceTransferType -> ((# #) -> r) -> ((# #) -> r) -> r
InputDeviceTransferType_INCOMING = InputDeviceTransferType' "INCOMING"

pattern InputDeviceTransferType_OUTGOING :: InputDeviceTransferType
pattern $bInputDeviceTransferType_OUTGOING :: InputDeviceTransferType
$mInputDeviceTransferType_OUTGOING :: forall {r}.
InputDeviceTransferType -> ((# #) -> r) -> ((# #) -> r) -> r
InputDeviceTransferType_OUTGOING = InputDeviceTransferType' "OUTGOING"

{-# COMPLETE
  InputDeviceTransferType_INCOMING,
  InputDeviceTransferType_OUTGOING,
  InputDeviceTransferType'
  #-}