{-# 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.FollowPoint
-- 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.FollowPoint
  ( FollowPoint
      ( ..,
        FollowPoint_END,
        FollowPoint_START
      ),
  )
where

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

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

pattern FollowPoint_END :: FollowPoint
pattern $bFollowPoint_END :: FollowPoint
$mFollowPoint_END :: forall {r}. FollowPoint -> ((# #) -> r) -> ((# #) -> r) -> r
FollowPoint_END = FollowPoint' "END"

pattern FollowPoint_START :: FollowPoint
pattern $bFollowPoint_START :: FollowPoint
$mFollowPoint_START :: forall {r}. FollowPoint -> ((# #) -> r) -> ((# #) -> r) -> r
FollowPoint_START = FollowPoint' "START"

{-# COMPLETE
  FollowPoint_END,
  FollowPoint_START,
  FollowPoint'
  #-}