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

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

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

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

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

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