{-# 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.IotTwinMaker.Types.GroupType
-- 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.IotTwinMaker.Types.GroupType
  ( GroupType
      ( ..,
        GroupType_TABULAR
      ),
  )
where

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

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

pattern GroupType_TABULAR :: GroupType
pattern $bGroupType_TABULAR :: GroupType
$mGroupType_TABULAR :: forall {r}. GroupType -> ((# #) -> r) -> ((# #) -> r) -> r
GroupType_TABULAR = GroupType' "TABULAR"

{-# COMPLETE
  GroupType_TABULAR,
  GroupType'
  #-}