{-# 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.LaunchProfilePersona
-- 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.LaunchProfilePersona
  ( LaunchProfilePersona
      ( ..,
        LaunchProfilePersona_USER
      ),
  )
where

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

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

pattern LaunchProfilePersona_USER :: LaunchProfilePersona
pattern $bLaunchProfilePersona_USER :: LaunchProfilePersona
$mLaunchProfilePersona_USER :: forall r. LaunchProfilePersona -> (Void# -> r) -> (Void# -> r) -> r
LaunchProfilePersona_USER = LaunchProfilePersona' "USER"

{-# COMPLETE
  LaunchProfilePersona_USER,
  LaunchProfilePersona'
  #-}