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

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

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

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

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

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

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