{-# 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.Transcribe.Types.OutputLocationType
-- 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.Transcribe.Types.OutputLocationType
  ( OutputLocationType
      ( ..,
        OutputLocationType_CUSTOMER_BUCKET,
        OutputLocationType_SERVICE_BUCKET
      ),
  )
where

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

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

pattern OutputLocationType_CUSTOMER_BUCKET :: OutputLocationType
pattern $bOutputLocationType_CUSTOMER_BUCKET :: OutputLocationType
$mOutputLocationType_CUSTOMER_BUCKET :: forall r. OutputLocationType -> (Void# -> r) -> (Void# -> r) -> r
OutputLocationType_CUSTOMER_BUCKET = OutputLocationType' "CUSTOMER_BUCKET"

pattern OutputLocationType_SERVICE_BUCKET :: OutputLocationType
pattern $bOutputLocationType_SERVICE_BUCKET :: OutputLocationType
$mOutputLocationType_SERVICE_BUCKET :: forall r. OutputLocationType -> (Void# -> r) -> (Void# -> r) -> r
OutputLocationType_SERVICE_BUCKET = OutputLocationType' "SERVICE_BUCKET"

{-# COMPLETE
  OutputLocationType_CUSTOMER_BUCKET,
  OutputLocationType_SERVICE_BUCKET,
  OutputLocationType'
  #-}