{-# 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.IoT.Types.DynamicGroupStatus
-- 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.IoT.Types.DynamicGroupStatus
  ( DynamicGroupStatus
      ( ..,
        DynamicGroupStatus_ACTIVE,
        DynamicGroupStatus_BUILDING,
        DynamicGroupStatus_REBUILDING
      ),
  )
where

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

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

pattern DynamicGroupStatus_ACTIVE :: DynamicGroupStatus
pattern $bDynamicGroupStatus_ACTIVE :: DynamicGroupStatus
$mDynamicGroupStatus_ACTIVE :: forall {r}. DynamicGroupStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DynamicGroupStatus_ACTIVE = DynamicGroupStatus' "ACTIVE"

pattern DynamicGroupStatus_BUILDING :: DynamicGroupStatus
pattern $bDynamicGroupStatus_BUILDING :: DynamicGroupStatus
$mDynamicGroupStatus_BUILDING :: forall {r}. DynamicGroupStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DynamicGroupStatus_BUILDING = DynamicGroupStatus' "BUILDING"

pattern DynamicGroupStatus_REBUILDING :: DynamicGroupStatus
pattern $bDynamicGroupStatus_REBUILDING :: DynamicGroupStatus
$mDynamicGroupStatus_REBUILDING :: forall {r}. DynamicGroupStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DynamicGroupStatus_REBUILDING = DynamicGroupStatus' "REBUILDING"

{-# COMPLETE
  DynamicGroupStatus_ACTIVE,
  DynamicGroupStatus_BUILDING,
  DynamicGroupStatus_REBUILDING,
  DynamicGroupStatus'
  #-}