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

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

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

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

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

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