{-# 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.MediaConvert.Types.SimulateReservedQueue
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MediaConvert.Types.SimulateReservedQueue
  ( SimulateReservedQueue
      ( ..,
        SimulateReservedQueue_DISABLED,
        SimulateReservedQueue_ENABLED
      ),
  )
where

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

-- | Enable this setting when you run a test job to estimate how many
-- reserved transcoding slots (RTS) you need. When this is enabled,
-- MediaConvert runs your job from an on-demand queue with similar
-- performance to what you will see with one RTS in a reserved queue. This
-- setting is disabled by default.
newtype SimulateReservedQueue = SimulateReservedQueue'
  { SimulateReservedQueue -> Text
fromSimulateReservedQueue ::
      Data.Text
  }
  deriving stock
    ( Int -> SimulateReservedQueue -> ShowS
[SimulateReservedQueue] -> ShowS
SimulateReservedQueue -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SimulateReservedQueue] -> ShowS
$cshowList :: [SimulateReservedQueue] -> ShowS
show :: SimulateReservedQueue -> String
$cshow :: SimulateReservedQueue -> String
showsPrec :: Int -> SimulateReservedQueue -> ShowS
$cshowsPrec :: Int -> SimulateReservedQueue -> ShowS
Prelude.Show,
      ReadPrec [SimulateReservedQueue]
ReadPrec SimulateReservedQueue
Int -> ReadS SimulateReservedQueue
ReadS [SimulateReservedQueue]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SimulateReservedQueue]
$creadListPrec :: ReadPrec [SimulateReservedQueue]
readPrec :: ReadPrec SimulateReservedQueue
$creadPrec :: ReadPrec SimulateReservedQueue
readList :: ReadS [SimulateReservedQueue]
$creadList :: ReadS [SimulateReservedQueue]
readsPrec :: Int -> ReadS SimulateReservedQueue
$creadsPrec :: Int -> ReadS SimulateReservedQueue
Prelude.Read,
      SimulateReservedQueue -> SimulateReservedQueue -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SimulateReservedQueue -> SimulateReservedQueue -> Bool
$c/= :: SimulateReservedQueue -> SimulateReservedQueue -> Bool
== :: SimulateReservedQueue -> SimulateReservedQueue -> Bool
$c== :: SimulateReservedQueue -> SimulateReservedQueue -> Bool
Prelude.Eq,
      Eq SimulateReservedQueue
SimulateReservedQueue -> SimulateReservedQueue -> Bool
SimulateReservedQueue -> SimulateReservedQueue -> Ordering
SimulateReservedQueue
-> SimulateReservedQueue -> SimulateReservedQueue
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 :: SimulateReservedQueue
-> SimulateReservedQueue -> SimulateReservedQueue
$cmin :: SimulateReservedQueue
-> SimulateReservedQueue -> SimulateReservedQueue
max :: SimulateReservedQueue
-> SimulateReservedQueue -> SimulateReservedQueue
$cmax :: SimulateReservedQueue
-> SimulateReservedQueue -> SimulateReservedQueue
>= :: SimulateReservedQueue -> SimulateReservedQueue -> Bool
$c>= :: SimulateReservedQueue -> SimulateReservedQueue -> Bool
> :: SimulateReservedQueue -> SimulateReservedQueue -> Bool
$c> :: SimulateReservedQueue -> SimulateReservedQueue -> Bool
<= :: SimulateReservedQueue -> SimulateReservedQueue -> Bool
$c<= :: SimulateReservedQueue -> SimulateReservedQueue -> Bool
< :: SimulateReservedQueue -> SimulateReservedQueue -> Bool
$c< :: SimulateReservedQueue -> SimulateReservedQueue -> Bool
compare :: SimulateReservedQueue -> SimulateReservedQueue -> Ordering
$ccompare :: SimulateReservedQueue -> SimulateReservedQueue -> Ordering
Prelude.Ord,
      forall x. Rep SimulateReservedQueue x -> SimulateReservedQueue
forall x. SimulateReservedQueue -> Rep SimulateReservedQueue x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep SimulateReservedQueue x -> SimulateReservedQueue
$cfrom :: forall x. SimulateReservedQueue -> Rep SimulateReservedQueue x
Prelude.Generic
    )
  deriving newtype
    ( Eq SimulateReservedQueue
Int -> SimulateReservedQueue -> Int
SimulateReservedQueue -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: SimulateReservedQueue -> Int
$chash :: SimulateReservedQueue -> Int
hashWithSalt :: Int -> SimulateReservedQueue -> Int
$chashWithSalt :: Int -> SimulateReservedQueue -> Int
Prelude.Hashable,
      SimulateReservedQueue -> ()
forall a. (a -> ()) -> NFData a
rnf :: SimulateReservedQueue -> ()
$crnf :: SimulateReservedQueue -> ()
Prelude.NFData,
      Text -> Either String SimulateReservedQueue
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String SimulateReservedQueue
$cfromText :: Text -> Either String SimulateReservedQueue
Data.FromText,
      SimulateReservedQueue -> Text
forall a. (a -> Text) -> ToText a
toText :: SimulateReservedQueue -> Text
$ctoText :: SimulateReservedQueue -> Text
Data.ToText,
      SimulateReservedQueue -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: SimulateReservedQueue -> ByteString
$ctoBS :: SimulateReservedQueue -> ByteString
Data.ToByteString,
      SimulateReservedQueue -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: SimulateReservedQueue -> ByteStringBuilder
$cbuild :: SimulateReservedQueue -> ByteStringBuilder
Data.ToLog,
      HeaderName -> SimulateReservedQueue -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> SimulateReservedQueue -> [Header]
$ctoHeader :: HeaderName -> SimulateReservedQueue -> [Header]
Data.ToHeader,
      SimulateReservedQueue -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: SimulateReservedQueue -> QueryString
$ctoQuery :: SimulateReservedQueue -> QueryString
Data.ToQuery,
      Value -> Parser [SimulateReservedQueue]
Value -> Parser SimulateReservedQueue
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [SimulateReservedQueue]
$cparseJSONList :: Value -> Parser [SimulateReservedQueue]
parseJSON :: Value -> Parser SimulateReservedQueue
$cparseJSON :: Value -> Parser SimulateReservedQueue
Data.FromJSON,
      FromJSONKeyFunction [SimulateReservedQueue]
FromJSONKeyFunction SimulateReservedQueue
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [SimulateReservedQueue]
$cfromJSONKeyList :: FromJSONKeyFunction [SimulateReservedQueue]
fromJSONKey :: FromJSONKeyFunction SimulateReservedQueue
$cfromJSONKey :: FromJSONKeyFunction SimulateReservedQueue
Data.FromJSONKey,
      [SimulateReservedQueue] -> Encoding
[SimulateReservedQueue] -> Value
SimulateReservedQueue -> Encoding
SimulateReservedQueue -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [SimulateReservedQueue] -> Encoding
$ctoEncodingList :: [SimulateReservedQueue] -> Encoding
toJSONList :: [SimulateReservedQueue] -> Value
$ctoJSONList :: [SimulateReservedQueue] -> Value
toEncoding :: SimulateReservedQueue -> Encoding
$ctoEncoding :: SimulateReservedQueue -> Encoding
toJSON :: SimulateReservedQueue -> Value
$ctoJSON :: SimulateReservedQueue -> Value
Data.ToJSON,
      ToJSONKeyFunction [SimulateReservedQueue]
ToJSONKeyFunction SimulateReservedQueue
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [SimulateReservedQueue]
$ctoJSONKeyList :: ToJSONKeyFunction [SimulateReservedQueue]
toJSONKey :: ToJSONKeyFunction SimulateReservedQueue
$ctoJSONKey :: ToJSONKeyFunction SimulateReservedQueue
Data.ToJSONKey,
      [Node] -> Either String SimulateReservedQueue
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String SimulateReservedQueue
$cparseXML :: [Node] -> Either String SimulateReservedQueue
Data.FromXML,
      SimulateReservedQueue -> XML
forall a. (a -> XML) -> ToXML a
toXML :: SimulateReservedQueue -> XML
$ctoXML :: SimulateReservedQueue -> XML
Data.ToXML
    )

pattern SimulateReservedQueue_DISABLED :: SimulateReservedQueue
pattern $bSimulateReservedQueue_DISABLED :: SimulateReservedQueue
$mSimulateReservedQueue_DISABLED :: forall {r}.
SimulateReservedQueue -> ((# #) -> r) -> ((# #) -> r) -> r
SimulateReservedQueue_DISABLED = SimulateReservedQueue' "DISABLED"

pattern SimulateReservedQueue_ENABLED :: SimulateReservedQueue
pattern $bSimulateReservedQueue_ENABLED :: SimulateReservedQueue
$mSimulateReservedQueue_ENABLED :: forall {r}.
SimulateReservedQueue -> ((# #) -> r) -> ((# #) -> r) -> r
SimulateReservedQueue_ENABLED = SimulateReservedQueue' "ENABLED"

{-# COMPLETE
  SimulateReservedQueue_DISABLED,
  SimulateReservedQueue_ENABLED,
  SimulateReservedQueue'
  #-}