{-# 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.MediaPackage.Types.UtcTiming
-- 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.MediaPackage.Types.UtcTiming
  ( UtcTiming
      ( ..,
        UtcTiming_HTTP_HEAD,
        UtcTiming_HTTP_ISO,
        UtcTiming_NONE
      ),
  )
where

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

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

pattern UtcTiming_HTTP_HEAD :: UtcTiming
pattern $bUtcTiming_HTTP_HEAD :: UtcTiming
$mUtcTiming_HTTP_HEAD :: forall r. UtcTiming -> (Void# -> r) -> (Void# -> r) -> r
UtcTiming_HTTP_HEAD = UtcTiming' "HTTP-HEAD"

pattern UtcTiming_HTTP_ISO :: UtcTiming
pattern $bUtcTiming_HTTP_ISO :: UtcTiming
$mUtcTiming_HTTP_ISO :: forall r. UtcTiming -> (Void# -> r) -> (Void# -> r) -> r
UtcTiming_HTTP_ISO = UtcTiming' "HTTP-ISO"

pattern UtcTiming_NONE :: UtcTiming
pattern $bUtcTiming_NONE :: UtcTiming
$mUtcTiming_NONE :: forall r. UtcTiming -> (Void# -> r) -> (Void# -> r) -> r
UtcTiming_NONE = UtcTiming' "NONE"

{-# COMPLETE
  UtcTiming_HTTP_HEAD,
  UtcTiming_HTTP_ISO,
  UtcTiming_NONE,
  UtcTiming'
  #-}