{-# 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.InputState
-- 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.InputState
  ( InputState
      ( ..,
        InputState_ATTACHED,
        InputState_CREATING,
        InputState_DELETED,
        InputState_DELETING,
        InputState_DETACHED
      ),
  )
where

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

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

pattern InputState_ATTACHED :: InputState
pattern $bInputState_ATTACHED :: InputState
$mInputState_ATTACHED :: forall {r}. InputState -> ((# #) -> r) -> ((# #) -> r) -> r
InputState_ATTACHED = InputState' "ATTACHED"

pattern InputState_CREATING :: InputState
pattern $bInputState_CREATING :: InputState
$mInputState_CREATING :: forall {r}. InputState -> ((# #) -> r) -> ((# #) -> r) -> r
InputState_CREATING = InputState' "CREATING"

pattern InputState_DELETED :: InputState
pattern $bInputState_DELETED :: InputState
$mInputState_DELETED :: forall {r}. InputState -> ((# #) -> r) -> ((# #) -> r) -> r
InputState_DELETED = InputState' "DELETED"

pattern InputState_DELETING :: InputState
pattern $bInputState_DELETING :: InputState
$mInputState_DELETING :: forall {r}. InputState -> ((# #) -> r) -> ((# #) -> r) -> r
InputState_DELETING = InputState' "DELETING"

pattern InputState_DETACHED :: InputState
pattern $bInputState_DETACHED :: InputState
$mInputState_DETACHED :: forall {r}. InputState -> ((# #) -> r) -> ((# #) -> r) -> r
InputState_DETACHED = InputState' "DETACHED"

{-# COMPLETE
  InputState_ATTACHED,
  InputState_CREATING,
  InputState_DELETED,
  InputState_DELETING,
  InputState_DETACHED,
  InputState'
  #-}