{-# 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.AlexaBusiness.Types.SkillType
-- 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.AlexaBusiness.Types.SkillType
  ( SkillType
      ( ..,
        SkillType_PRIVATE,
        SkillType_PUBLIC
      ),
  )
where

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

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

pattern SkillType_PRIVATE :: SkillType
pattern $bSkillType_PRIVATE :: SkillType
$mSkillType_PRIVATE :: forall r. SkillType -> (Void# -> r) -> (Void# -> r) -> r
SkillType_PRIVATE = SkillType' "PRIVATE"

pattern SkillType_PUBLIC :: SkillType
pattern $bSkillType_PUBLIC :: SkillType
$mSkillType_PUBLIC :: forall r. SkillType -> (Void# -> r) -> (Void# -> r) -> r
SkillType_PUBLIC = SkillType' "PUBLIC"

{-# COMPLETE
  SkillType_PRIVATE,
  SkillType_PUBLIC,
  SkillType'
  #-}