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

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

-- | Placeholder documentation for InputState
newtype InputState = InputState'
  { InputState -> Text
fromInputState ::
      Core.Text
  }
  deriving stock
    ( Int -> InputState -> ShowS
[InputState] -> ShowS
InputState -> String
(Int -> InputState -> ShowS)
-> (InputState -> String)
-> ([InputState] -> ShowS)
-> Show InputState
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]
(Int -> ReadS InputState)
-> ReadS [InputState]
-> ReadPrec InputState
-> ReadPrec [InputState]
-> Read 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
(InputState -> InputState -> Bool)
-> (InputState -> InputState -> Bool) -> Eq InputState
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
Eq InputState
-> (InputState -> InputState -> Ordering)
-> (InputState -> InputState -> Bool)
-> (InputState -> InputState -> Bool)
-> (InputState -> InputState -> Bool)
-> (InputState -> InputState -> Bool)
-> (InputState -> InputState -> InputState)
-> (InputState -> InputState -> InputState)
-> Ord 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
$cp1Ord :: Eq InputState
Prelude.Ord,
      (forall x. InputState -> Rep InputState x)
-> (forall x. Rep InputState x -> InputState) -> Generic InputState
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
    ( Int -> InputState -> Int
InputState -> Int
(Int -> InputState -> Int)
-> (InputState -> Int) -> Hashable InputState
forall 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 -> ()
(InputState -> ()) -> NFData InputState
forall a. (a -> ()) -> NFData a
rnf :: InputState -> ()
$crnf :: InputState -> ()
Prelude.NFData,
      Text -> Either String InputState
(Text -> Either String InputState) -> FromText InputState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String InputState
$cfromText :: Text -> Either String InputState
Core.FromText,
      InputState -> Text
(InputState -> Text) -> ToText InputState
forall a. (a -> Text) -> ToText a
toText :: InputState -> Text
$ctoText :: InputState -> Text
Core.ToText,
      InputState -> ByteString
(InputState -> ByteString) -> ToByteString InputState
forall a. (a -> ByteString) -> ToByteString a
toBS :: InputState -> ByteString
$ctoBS :: InputState -> ByteString
Core.ToByteString,
      InputState -> ByteStringBuilder
(InputState -> ByteStringBuilder) -> ToLog InputState
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: InputState -> ByteStringBuilder
$cbuild :: InputState -> ByteStringBuilder
Core.ToLog,
      HeaderName -> InputState -> [Header]
(HeaderName -> InputState -> [Header]) -> ToHeader InputState
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> InputState -> [Header]
$ctoHeader :: HeaderName -> InputState -> [Header]
Core.ToHeader,
      InputState -> QueryString
(InputState -> QueryString) -> ToQuery InputState
forall a. (a -> QueryString) -> ToQuery a
toQuery :: InputState -> QueryString
$ctoQuery :: InputState -> QueryString
Core.ToQuery,
      Value -> Parser [InputState]
Value -> Parser InputState
(Value -> Parser InputState)
-> (Value -> Parser [InputState]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [InputState]
FromJSONKeyFunction InputState
FromJSONKeyFunction InputState
-> FromJSONKeyFunction [InputState] -> FromJSONKey InputState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [InputState]
$cfromJSONKeyList :: FromJSONKeyFunction [InputState]
fromJSONKey :: FromJSONKeyFunction InputState
$cfromJSONKey :: FromJSONKeyFunction InputState
Core.FromJSONKey,
      [InputState] -> Encoding
[InputState] -> Value
InputState -> Encoding
InputState -> Value
(InputState -> Value)
-> (InputState -> Encoding)
-> ([InputState] -> Value)
-> ([InputState] -> Encoding)
-> ToJSON InputState
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
Core.ToJSON,
      ToJSONKeyFunction [InputState]
ToJSONKeyFunction InputState
ToJSONKeyFunction InputState
-> ToJSONKeyFunction [InputState] -> ToJSONKey InputState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [InputState]
$ctoJSONKeyList :: ToJSONKeyFunction [InputState]
toJSONKey :: ToJSONKeyFunction InputState
$ctoJSONKey :: ToJSONKeyFunction InputState
Core.ToJSONKey,
      [Node] -> Either String InputState
([Node] -> Either String InputState) -> FromXML InputState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String InputState
$cparseXML :: [Node] -> Either String InputState
Core.FromXML,
      InputState -> XML
(InputState -> XML) -> ToXML InputState
forall a. (a -> XML) -> ToXML a
toXML :: InputState -> XML
$ctoXML :: InputState -> XML
Core.ToXML
    )

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

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

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

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

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

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