{-# 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.MigrationHubStrategy.Types.ResourceSubType
-- 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.MigrationHubStrategy.Types.ResourceSubType
  ( ResourceSubType
      ( ..,
        ResourceSubType_Database,
        ResourceSubType_DatabaseProcess,
        ResourceSubType_Process
      ),
  )
where

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

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

pattern ResourceSubType_Database :: ResourceSubType
pattern $bResourceSubType_Database :: ResourceSubType
$mResourceSubType_Database :: forall {r}. ResourceSubType -> ((# #) -> r) -> ((# #) -> r) -> r
ResourceSubType_Database = ResourceSubType' "Database"

pattern ResourceSubType_DatabaseProcess :: ResourceSubType
pattern $bResourceSubType_DatabaseProcess :: ResourceSubType
$mResourceSubType_DatabaseProcess :: forall {r}. ResourceSubType -> ((# #) -> r) -> ((# #) -> r) -> r
ResourceSubType_DatabaseProcess = ResourceSubType' "DatabaseProcess"

pattern ResourceSubType_Process :: ResourceSubType
pattern $bResourceSubType_Process :: ResourceSubType
$mResourceSubType_Process :: forall {r}. ResourceSubType -> ((# #) -> r) -> ((# #) -> r) -> r
ResourceSubType_Process = ResourceSubType' "Process"

{-# COMPLETE
  ResourceSubType_Database,
  ResourceSubType_DatabaseProcess,
  ResourceSubType_Process,
  ResourceSubType'
  #-}