{-# 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.Chime.Types.AppInstanceDataType
-- 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.Chime.Types.AppInstanceDataType
  ( AppInstanceDataType
      ( ..,
        AppInstanceDataType_Channel,
        AppInstanceDataType_ChannelMessage
      ),
  )
where

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

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

pattern AppInstanceDataType_Channel :: AppInstanceDataType
pattern $bAppInstanceDataType_Channel :: AppInstanceDataType
$mAppInstanceDataType_Channel :: forall {r}.
AppInstanceDataType -> ((# #) -> r) -> ((# #) -> r) -> r
AppInstanceDataType_Channel = AppInstanceDataType' "Channel"

pattern AppInstanceDataType_ChannelMessage :: AppInstanceDataType
pattern $bAppInstanceDataType_ChannelMessage :: AppInstanceDataType
$mAppInstanceDataType_ChannelMessage :: forall {r}.
AppInstanceDataType -> ((# #) -> r) -> ((# #) -> r) -> r
AppInstanceDataType_ChannelMessage = AppInstanceDataType' "ChannelMessage"

{-# COMPLETE
  AppInstanceDataType_Channel,
  AppInstanceDataType_ChannelMessage,
  AppInstanceDataType'
  #-}