{-# 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.Nimble.Types.StudioComponentType
-- 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.Nimble.Types.StudioComponentType
  ( StudioComponentType
      ( ..,
        StudioComponentType_ACTIVE_DIRECTORY,
        StudioComponentType_COMPUTE_FARM,
        StudioComponentType_CUSTOM,
        StudioComponentType_LICENSE_SERVICE,
        StudioComponentType_SHARED_FILE_SYSTEM
      ),
  )
where

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

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

pattern StudioComponentType_ACTIVE_DIRECTORY :: StudioComponentType
pattern $bStudioComponentType_ACTIVE_DIRECTORY :: StudioComponentType
$mStudioComponentType_ACTIVE_DIRECTORY :: forall {r}.
StudioComponentType -> ((# #) -> r) -> ((# #) -> r) -> r
StudioComponentType_ACTIVE_DIRECTORY = StudioComponentType' "ACTIVE_DIRECTORY"

pattern StudioComponentType_COMPUTE_FARM :: StudioComponentType
pattern $bStudioComponentType_COMPUTE_FARM :: StudioComponentType
$mStudioComponentType_COMPUTE_FARM :: forall {r}.
StudioComponentType -> ((# #) -> r) -> ((# #) -> r) -> r
StudioComponentType_COMPUTE_FARM = StudioComponentType' "COMPUTE_FARM"

pattern StudioComponentType_CUSTOM :: StudioComponentType
pattern $bStudioComponentType_CUSTOM :: StudioComponentType
$mStudioComponentType_CUSTOM :: forall {r}.
StudioComponentType -> ((# #) -> r) -> ((# #) -> r) -> r
StudioComponentType_CUSTOM = StudioComponentType' "CUSTOM"

pattern StudioComponentType_LICENSE_SERVICE :: StudioComponentType
pattern $bStudioComponentType_LICENSE_SERVICE :: StudioComponentType
$mStudioComponentType_LICENSE_SERVICE :: forall {r}.
StudioComponentType -> ((# #) -> r) -> ((# #) -> r) -> r
StudioComponentType_LICENSE_SERVICE = StudioComponentType' "LICENSE_SERVICE"

pattern StudioComponentType_SHARED_FILE_SYSTEM :: StudioComponentType
pattern $bStudioComponentType_SHARED_FILE_SYSTEM :: StudioComponentType
$mStudioComponentType_SHARED_FILE_SYSTEM :: forall {r}.
StudioComponentType -> ((# #) -> r) -> ((# #) -> r) -> r
StudioComponentType_SHARED_FILE_SYSTEM = StudioComponentType' "SHARED_FILE_SYSTEM"

{-# COMPLETE
  StudioComponentType_ACTIVE_DIRECTORY,
  StudioComponentType_COMPUTE_FARM,
  StudioComponentType_CUSTOM,
  StudioComponentType_LICENSE_SERVICE,
  StudioComponentType_SHARED_FILE_SYSTEM,
  StudioComponentType'
  #-}