{-# 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.MigrationHubOrchestrator.Types.RunEnvironment
-- 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.MigrationHubOrchestrator.Types.RunEnvironment
  ( RunEnvironment
      ( ..,
        RunEnvironment_AWS,
        RunEnvironment_ONPREMISE
      ),
  )
where

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

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

pattern RunEnvironment_AWS :: RunEnvironment
pattern $bRunEnvironment_AWS :: RunEnvironment
$mRunEnvironment_AWS :: forall {r}. RunEnvironment -> ((# #) -> r) -> ((# #) -> r) -> r
RunEnvironment_AWS = RunEnvironment' "AWS"

pattern RunEnvironment_ONPREMISE :: RunEnvironment
pattern $bRunEnvironment_ONPREMISE :: RunEnvironment
$mRunEnvironment_ONPREMISE :: forall {r}. RunEnvironment -> ((# #) -> r) -> ((# #) -> r) -> r
RunEnvironment_ONPREMISE = RunEnvironment' "ONPREMISE"

{-# COMPLETE
  RunEnvironment_AWS,
  RunEnvironment_ONPREMISE,
  RunEnvironment'
  #-}