{-# 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-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.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.Prelude as Prelude

-- |
newtype StudioComponentType = StudioComponentType'
  { StudioComponentType -> Text
fromStudioComponentType ::
      Core.Text
  }
  deriving stock
    ( Int -> StudioComponentType -> ShowS
[StudioComponentType] -> ShowS
StudioComponentType -> String
(Int -> StudioComponentType -> ShowS)
-> (StudioComponentType -> String)
-> ([StudioComponentType] -> ShowS)
-> Show StudioComponentType
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]
(Int -> ReadS StudioComponentType)
-> ReadS [StudioComponentType]
-> ReadPrec StudioComponentType
-> ReadPrec [StudioComponentType]
-> Read 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
(StudioComponentType -> StudioComponentType -> Bool)
-> (StudioComponentType -> StudioComponentType -> Bool)
-> Eq StudioComponentType
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
Eq StudioComponentType
-> (StudioComponentType -> StudioComponentType -> Ordering)
-> (StudioComponentType -> StudioComponentType -> Bool)
-> (StudioComponentType -> StudioComponentType -> Bool)
-> (StudioComponentType -> StudioComponentType -> Bool)
-> (StudioComponentType -> StudioComponentType -> Bool)
-> (StudioComponentType
    -> StudioComponentType -> StudioComponentType)
-> (StudioComponentType
    -> StudioComponentType -> StudioComponentType)
-> Ord 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
$cp1Ord :: Eq StudioComponentType
Prelude.Ord,
      (forall x. StudioComponentType -> Rep StudioComponentType x)
-> (forall x. Rep StudioComponentType x -> StudioComponentType)
-> Generic StudioComponentType
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
    ( Int -> StudioComponentType -> Int
StudioComponentType -> Int
(Int -> StudioComponentType -> Int)
-> (StudioComponentType -> Int) -> Hashable StudioComponentType
forall 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 -> ()
(StudioComponentType -> ()) -> NFData StudioComponentType
forall a. (a -> ()) -> NFData a
rnf :: StudioComponentType -> ()
$crnf :: StudioComponentType -> ()
Prelude.NFData,
      Text -> Either String StudioComponentType
(Text -> Either String StudioComponentType)
-> FromText StudioComponentType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String StudioComponentType
$cfromText :: Text -> Either String StudioComponentType
Core.FromText,
      StudioComponentType -> Text
(StudioComponentType -> Text) -> ToText StudioComponentType
forall a. (a -> Text) -> ToText a
toText :: StudioComponentType -> Text
$ctoText :: StudioComponentType -> Text
Core.ToText,
      StudioComponentType -> ByteString
(StudioComponentType -> ByteString)
-> ToByteString StudioComponentType
forall a. (a -> ByteString) -> ToByteString a
toBS :: StudioComponentType -> ByteString
$ctoBS :: StudioComponentType -> ByteString
Core.ToByteString,
      StudioComponentType -> ByteStringBuilder
(StudioComponentType -> ByteStringBuilder)
-> ToLog StudioComponentType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: StudioComponentType -> ByteStringBuilder
$cbuild :: StudioComponentType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> StudioComponentType -> [Header]
(HeaderName -> StudioComponentType -> [Header])
-> ToHeader StudioComponentType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> StudioComponentType -> [Header]
$ctoHeader :: HeaderName -> StudioComponentType -> [Header]
Core.ToHeader,
      StudioComponentType -> QueryString
(StudioComponentType -> QueryString) -> ToQuery StudioComponentType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: StudioComponentType -> QueryString
$ctoQuery :: StudioComponentType -> QueryString
Core.ToQuery,
      Value -> Parser [StudioComponentType]
Value -> Parser StudioComponentType
(Value -> Parser StudioComponentType)
-> (Value -> Parser [StudioComponentType])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [StudioComponentType]
FromJSONKeyFunction StudioComponentType
FromJSONKeyFunction StudioComponentType
-> FromJSONKeyFunction [StudioComponentType]
-> FromJSONKey StudioComponentType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [StudioComponentType]
$cfromJSONKeyList :: FromJSONKeyFunction [StudioComponentType]
fromJSONKey :: FromJSONKeyFunction StudioComponentType
$cfromJSONKey :: FromJSONKeyFunction StudioComponentType
Core.FromJSONKey,
      [StudioComponentType] -> Encoding
[StudioComponentType] -> Value
StudioComponentType -> Encoding
StudioComponentType -> Value
(StudioComponentType -> Value)
-> (StudioComponentType -> Encoding)
-> ([StudioComponentType] -> Value)
-> ([StudioComponentType] -> Encoding)
-> ToJSON StudioComponentType
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
Core.ToJSON,
      ToJSONKeyFunction [StudioComponentType]
ToJSONKeyFunction StudioComponentType
ToJSONKeyFunction StudioComponentType
-> ToJSONKeyFunction [StudioComponentType]
-> ToJSONKey StudioComponentType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [StudioComponentType]
$ctoJSONKeyList :: ToJSONKeyFunction [StudioComponentType]
toJSONKey :: ToJSONKeyFunction StudioComponentType
$ctoJSONKey :: ToJSONKeyFunction StudioComponentType
Core.ToJSONKey,
      [Node] -> Either String StudioComponentType
([Node] -> Either String StudioComponentType)
-> FromXML StudioComponentType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String StudioComponentType
$cparseXML :: [Node] -> Either String StudioComponentType
Core.FromXML,
      StudioComponentType -> XML
(StudioComponentType -> XML) -> ToXML StudioComponentType
forall a. (a -> XML) -> ToXML a
toXML :: StudioComponentType -> XML
$ctoXML :: StudioComponentType -> XML
Core.ToXML
    )

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

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

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

pattern StudioComponentType_LICENSE_SERVICE :: StudioComponentType
pattern $bStudioComponentType_LICENSE_SERVICE :: StudioComponentType
$mStudioComponentType_LICENSE_SERVICE :: forall r. StudioComponentType -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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'
  #-}