{-# 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.StudioPersona
-- 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.StudioPersona
  ( StudioPersona
      ( ..,
        StudioPersona_ADMINISTRATOR
      ),
  )
where

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

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

pattern StudioPersona_ADMINISTRATOR :: StudioPersona
pattern $bStudioPersona_ADMINISTRATOR :: StudioPersona
$mStudioPersona_ADMINISTRATOR :: forall r. StudioPersona -> (Void# -> r) -> (Void# -> r) -> r
StudioPersona_ADMINISTRATOR = StudioPersona' "ADMINISTRATOR"

{-# COMPLETE
  StudioPersona_ADMINISTRATOR,
  StudioPersona'
  #-}