{-# 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.PipelineId
-- 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.PipelineId
  ( PipelineId
      ( ..,
        PipelineId_PIPELINE_0,
        PipelineId_PIPELINE_1
      ),
  )
where

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

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

pattern PipelineId_PIPELINE_0 :: PipelineId
pattern $bPipelineId_PIPELINE_0 :: PipelineId
$mPipelineId_PIPELINE_0 :: forall r. PipelineId -> (Void# -> r) -> (Void# -> r) -> r
PipelineId_PIPELINE_0 = PipelineId' "PIPELINE_0"

pattern PipelineId_PIPELINE_1 :: PipelineId
pattern $bPipelineId_PIPELINE_1 :: PipelineId
$mPipelineId_PIPELINE_1 :: forall r. PipelineId -> (Void# -> r) -> (Void# -> r) -> r
PipelineId_PIPELINE_1 = PipelineId' "PIPELINE_1"

{-# COMPLETE
  PipelineId_PIPELINE_0,
  PipelineId_PIPELINE_1,
  PipelineId'
  #-}