{-# 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.DvbSubDestinationAlignment
-- 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.DvbSubDestinationAlignment
  ( DvbSubDestinationAlignment
      ( ..,
        DvbSubDestinationAlignment_CENTERED,
        DvbSubDestinationAlignment_LEFT,
        DvbSubDestinationAlignment_SMART
      ),
  )
where

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

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

pattern DvbSubDestinationAlignment_CENTERED :: DvbSubDestinationAlignment
pattern $bDvbSubDestinationAlignment_CENTERED :: DvbSubDestinationAlignment
$mDvbSubDestinationAlignment_CENTERED :: forall r.
DvbSubDestinationAlignment -> (Void# -> r) -> (Void# -> r) -> r
DvbSubDestinationAlignment_CENTERED = DvbSubDestinationAlignment' "CENTERED"

pattern DvbSubDestinationAlignment_LEFT :: DvbSubDestinationAlignment
pattern $bDvbSubDestinationAlignment_LEFT :: DvbSubDestinationAlignment
$mDvbSubDestinationAlignment_LEFT :: forall r.
DvbSubDestinationAlignment -> (Void# -> r) -> (Void# -> r) -> r
DvbSubDestinationAlignment_LEFT = DvbSubDestinationAlignment' "LEFT"

pattern DvbSubDestinationAlignment_SMART :: DvbSubDestinationAlignment
pattern $bDvbSubDestinationAlignment_SMART :: DvbSubDestinationAlignment
$mDvbSubDestinationAlignment_SMART :: forall r.
DvbSubDestinationAlignment -> (Void# -> r) -> (Void# -> r) -> r
DvbSubDestinationAlignment_SMART = DvbSubDestinationAlignment' "SMART"

{-# COMPLETE
  DvbSubDestinationAlignment_CENTERED,
  DvbSubDestinationAlignment_LEFT,
  DvbSubDestinationAlignment_SMART,
  DvbSubDestinationAlignment'
  #-}