{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.MediaTailor.Types.RelativePosition
( RelativePosition
( ..,
RelativePosition_AFTER_PROGRAM,
RelativePosition_BEFORE_PROGRAM
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype RelativePosition = RelativePosition'
{ RelativePosition -> Text
fromRelativePosition ::
Core.Text
}
deriving stock
( Int -> RelativePosition -> ShowS
[RelativePosition] -> ShowS
RelativePosition -> String
(Int -> RelativePosition -> ShowS)
-> (RelativePosition -> String)
-> ([RelativePosition] -> ShowS)
-> Show RelativePosition
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RelativePosition] -> ShowS
$cshowList :: [RelativePosition] -> ShowS
show :: RelativePosition -> String
$cshow :: RelativePosition -> String
showsPrec :: Int -> RelativePosition -> ShowS
$cshowsPrec :: Int -> RelativePosition -> ShowS
Prelude.Show,
ReadPrec [RelativePosition]
ReadPrec RelativePosition
Int -> ReadS RelativePosition
ReadS [RelativePosition]
(Int -> ReadS RelativePosition)
-> ReadS [RelativePosition]
-> ReadPrec RelativePosition
-> ReadPrec [RelativePosition]
-> Read RelativePosition
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RelativePosition]
$creadListPrec :: ReadPrec [RelativePosition]
readPrec :: ReadPrec RelativePosition
$creadPrec :: ReadPrec RelativePosition
readList :: ReadS [RelativePosition]
$creadList :: ReadS [RelativePosition]
readsPrec :: Int -> ReadS RelativePosition
$creadsPrec :: Int -> ReadS RelativePosition
Prelude.Read,
RelativePosition -> RelativePosition -> Bool
(RelativePosition -> RelativePosition -> Bool)
-> (RelativePosition -> RelativePosition -> Bool)
-> Eq RelativePosition
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RelativePosition -> RelativePosition -> Bool
$c/= :: RelativePosition -> RelativePosition -> Bool
== :: RelativePosition -> RelativePosition -> Bool
$c== :: RelativePosition -> RelativePosition -> Bool
Prelude.Eq,
Eq RelativePosition
Eq RelativePosition
-> (RelativePosition -> RelativePosition -> Ordering)
-> (RelativePosition -> RelativePosition -> Bool)
-> (RelativePosition -> RelativePosition -> Bool)
-> (RelativePosition -> RelativePosition -> Bool)
-> (RelativePosition -> RelativePosition -> Bool)
-> (RelativePosition -> RelativePosition -> RelativePosition)
-> (RelativePosition -> RelativePosition -> RelativePosition)
-> Ord RelativePosition
RelativePosition -> RelativePosition -> Bool
RelativePosition -> RelativePosition -> Ordering
RelativePosition -> RelativePosition -> RelativePosition
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 :: RelativePosition -> RelativePosition -> RelativePosition
$cmin :: RelativePosition -> RelativePosition -> RelativePosition
max :: RelativePosition -> RelativePosition -> RelativePosition
$cmax :: RelativePosition -> RelativePosition -> RelativePosition
>= :: RelativePosition -> RelativePosition -> Bool
$c>= :: RelativePosition -> RelativePosition -> Bool
> :: RelativePosition -> RelativePosition -> Bool
$c> :: RelativePosition -> RelativePosition -> Bool
<= :: RelativePosition -> RelativePosition -> Bool
$c<= :: RelativePosition -> RelativePosition -> Bool
< :: RelativePosition -> RelativePosition -> Bool
$c< :: RelativePosition -> RelativePosition -> Bool
compare :: RelativePosition -> RelativePosition -> Ordering
$ccompare :: RelativePosition -> RelativePosition -> Ordering
$cp1Ord :: Eq RelativePosition
Prelude.Ord,
(forall x. RelativePosition -> Rep RelativePosition x)
-> (forall x. Rep RelativePosition x -> RelativePosition)
-> Generic RelativePosition
forall x. Rep RelativePosition x -> RelativePosition
forall x. RelativePosition -> Rep RelativePosition x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep RelativePosition x -> RelativePosition
$cfrom :: forall x. RelativePosition -> Rep RelativePosition x
Prelude.Generic
)
deriving newtype
( Int -> RelativePosition -> Int
RelativePosition -> Int
(Int -> RelativePosition -> Int)
-> (RelativePosition -> Int) -> Hashable RelativePosition
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: RelativePosition -> Int
$chash :: RelativePosition -> Int
hashWithSalt :: Int -> RelativePosition -> Int
$chashWithSalt :: Int -> RelativePosition -> Int
Prelude.Hashable,
RelativePosition -> ()
(RelativePosition -> ()) -> NFData RelativePosition
forall a. (a -> ()) -> NFData a
rnf :: RelativePosition -> ()
$crnf :: RelativePosition -> ()
Prelude.NFData,
Text -> Either String RelativePosition
(Text -> Either String RelativePosition)
-> FromText RelativePosition
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String RelativePosition
$cfromText :: Text -> Either String RelativePosition
Core.FromText,
RelativePosition -> Text
(RelativePosition -> Text) -> ToText RelativePosition
forall a. (a -> Text) -> ToText a
toText :: RelativePosition -> Text
$ctoText :: RelativePosition -> Text
Core.ToText,
RelativePosition -> ByteString
(RelativePosition -> ByteString) -> ToByteString RelativePosition
forall a. (a -> ByteString) -> ToByteString a
toBS :: RelativePosition -> ByteString
$ctoBS :: RelativePosition -> ByteString
Core.ToByteString,
RelativePosition -> ByteStringBuilder
(RelativePosition -> ByteStringBuilder) -> ToLog RelativePosition
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: RelativePosition -> ByteStringBuilder
$cbuild :: RelativePosition -> ByteStringBuilder
Core.ToLog,
HeaderName -> RelativePosition -> [Header]
(HeaderName -> RelativePosition -> [Header])
-> ToHeader RelativePosition
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> RelativePosition -> [Header]
$ctoHeader :: HeaderName -> RelativePosition -> [Header]
Core.ToHeader,
RelativePosition -> QueryString
(RelativePosition -> QueryString) -> ToQuery RelativePosition
forall a. (a -> QueryString) -> ToQuery a
toQuery :: RelativePosition -> QueryString
$ctoQuery :: RelativePosition -> QueryString
Core.ToQuery,
Value -> Parser [RelativePosition]
Value -> Parser RelativePosition
(Value -> Parser RelativePosition)
-> (Value -> Parser [RelativePosition])
-> FromJSON RelativePosition
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [RelativePosition]
$cparseJSONList :: Value -> Parser [RelativePosition]
parseJSON :: Value -> Parser RelativePosition
$cparseJSON :: Value -> Parser RelativePosition
Core.FromJSON,
FromJSONKeyFunction [RelativePosition]
FromJSONKeyFunction RelativePosition
FromJSONKeyFunction RelativePosition
-> FromJSONKeyFunction [RelativePosition]
-> FromJSONKey RelativePosition
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [RelativePosition]
$cfromJSONKeyList :: FromJSONKeyFunction [RelativePosition]
fromJSONKey :: FromJSONKeyFunction RelativePosition
$cfromJSONKey :: FromJSONKeyFunction RelativePosition
Core.FromJSONKey,
[RelativePosition] -> Encoding
[RelativePosition] -> Value
RelativePosition -> Encoding
RelativePosition -> Value
(RelativePosition -> Value)
-> (RelativePosition -> Encoding)
-> ([RelativePosition] -> Value)
-> ([RelativePosition] -> Encoding)
-> ToJSON RelativePosition
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [RelativePosition] -> Encoding
$ctoEncodingList :: [RelativePosition] -> Encoding
toJSONList :: [RelativePosition] -> Value
$ctoJSONList :: [RelativePosition] -> Value
toEncoding :: RelativePosition -> Encoding
$ctoEncoding :: RelativePosition -> Encoding
toJSON :: RelativePosition -> Value
$ctoJSON :: RelativePosition -> Value
Core.ToJSON,
ToJSONKeyFunction [RelativePosition]
ToJSONKeyFunction RelativePosition
ToJSONKeyFunction RelativePosition
-> ToJSONKeyFunction [RelativePosition]
-> ToJSONKey RelativePosition
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [RelativePosition]
$ctoJSONKeyList :: ToJSONKeyFunction [RelativePosition]
toJSONKey :: ToJSONKeyFunction RelativePosition
$ctoJSONKey :: ToJSONKeyFunction RelativePosition
Core.ToJSONKey,
[Node] -> Either String RelativePosition
([Node] -> Either String RelativePosition)
-> FromXML RelativePosition
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String RelativePosition
$cparseXML :: [Node] -> Either String RelativePosition
Core.FromXML,
RelativePosition -> XML
(RelativePosition -> XML) -> ToXML RelativePosition
forall a. (a -> XML) -> ToXML a
toXML :: RelativePosition -> XML
$ctoXML :: RelativePosition -> XML
Core.ToXML
)
pattern RelativePosition_AFTER_PROGRAM :: RelativePosition
pattern $bRelativePosition_AFTER_PROGRAM :: RelativePosition
$mRelativePosition_AFTER_PROGRAM :: forall r. RelativePosition -> (Void# -> r) -> (Void# -> r) -> r
RelativePosition_AFTER_PROGRAM = RelativePosition' "AFTER_PROGRAM"
pattern RelativePosition_BEFORE_PROGRAM :: RelativePosition
pattern $bRelativePosition_BEFORE_PROGRAM :: RelativePosition
$mRelativePosition_BEFORE_PROGRAM :: forall r. RelativePosition -> (Void# -> r) -> (Void# -> r) -> r
RelativePosition_BEFORE_PROGRAM = RelativePosition' "BEFORE_PROGRAM"
{-# COMPLETE
RelativePosition_AFTER_PROGRAM,
RelativePosition_BEFORE_PROGRAM,
RelativePosition'
#-}