{-# 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.Chime.Types.MediaPipelineSinkType
-- 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.Chime.Types.MediaPipelineSinkType
  ( MediaPipelineSinkType
      ( ..,
        MediaPipelineSinkType_S3Bucket
      ),
  )
where

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

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

pattern MediaPipelineSinkType_S3Bucket :: MediaPipelineSinkType
pattern $bMediaPipelineSinkType_S3Bucket :: MediaPipelineSinkType
$mMediaPipelineSinkType_S3Bucket :: forall r.
MediaPipelineSinkType -> (Void# -> r) -> (Void# -> r) -> r
MediaPipelineSinkType_S3Bucket = MediaPipelineSinkType' "S3Bucket"

{-# COMPLETE
  MediaPipelineSinkType_S3Bucket,
  MediaPipelineSinkType'
  #-}