{-# 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.MediaStoreData.Types.UploadAvailability
-- 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.MediaStoreData.Types.UploadAvailability
  ( UploadAvailability
      ( ..,
        UploadAvailability_STANDARD,
        UploadAvailability_STREAMING
      ),
  )
where

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

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

pattern UploadAvailability_STANDARD :: UploadAvailability
pattern $bUploadAvailability_STANDARD :: UploadAvailability
$mUploadAvailability_STANDARD :: forall r. UploadAvailability -> (Void# -> r) -> (Void# -> r) -> r
UploadAvailability_STANDARD = UploadAvailability' "STANDARD"

pattern UploadAvailability_STREAMING :: UploadAvailability
pattern $bUploadAvailability_STREAMING :: UploadAvailability
$mUploadAvailability_STREAMING :: forall r. UploadAvailability -> (Void# -> r) -> (Void# -> r) -> r
UploadAvailability_STREAMING = UploadAvailability' "STREAMING"

{-# COMPLETE
  UploadAvailability_STANDARD,
  UploadAvailability_STREAMING,
  UploadAvailability'
  #-}