{-# 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.IoTSiteWise.Types.AssetModelState
-- 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.IoTSiteWise.Types.AssetModelState
  ( AssetModelState
      ( ..,
        AssetModelState_ACTIVE,
        AssetModelState_CREATING,
        AssetModelState_DELETING,
        AssetModelState_FAILED,
        AssetModelState_PROPAGATING,
        AssetModelState_UPDATING
      ),
  )
where

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

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

pattern AssetModelState_ACTIVE :: AssetModelState
pattern $bAssetModelState_ACTIVE :: AssetModelState
$mAssetModelState_ACTIVE :: forall r. AssetModelState -> (Void# -> r) -> (Void# -> r) -> r
AssetModelState_ACTIVE = AssetModelState' "ACTIVE"

pattern AssetModelState_CREATING :: AssetModelState
pattern $bAssetModelState_CREATING :: AssetModelState
$mAssetModelState_CREATING :: forall r. AssetModelState -> (Void# -> r) -> (Void# -> r) -> r
AssetModelState_CREATING = AssetModelState' "CREATING"

pattern AssetModelState_DELETING :: AssetModelState
pattern $bAssetModelState_DELETING :: AssetModelState
$mAssetModelState_DELETING :: forall r. AssetModelState -> (Void# -> r) -> (Void# -> r) -> r
AssetModelState_DELETING = AssetModelState' "DELETING"

pattern AssetModelState_FAILED :: AssetModelState
pattern $bAssetModelState_FAILED :: AssetModelState
$mAssetModelState_FAILED :: forall r. AssetModelState -> (Void# -> r) -> (Void# -> r) -> r
AssetModelState_FAILED = AssetModelState' "FAILED"

pattern AssetModelState_PROPAGATING :: AssetModelState
pattern $bAssetModelState_PROPAGATING :: AssetModelState
$mAssetModelState_PROPAGATING :: forall r. AssetModelState -> (Void# -> r) -> (Void# -> r) -> r
AssetModelState_PROPAGATING = AssetModelState' "PROPAGATING"

pattern AssetModelState_UPDATING :: AssetModelState
pattern $bAssetModelState_UPDATING :: AssetModelState
$mAssetModelState_UPDATING :: forall r. AssetModelState -> (Void# -> r) -> (Void# -> r) -> r
AssetModelState_UPDATING = AssetModelState' "UPDATING"

{-# COMPLETE
  AssetModelState_ACTIVE,
  AssetModelState_CREATING,
  AssetModelState_DELETING,
  AssetModelState_FAILED,
  AssetModelState_PROPAGATING,
  AssetModelState_UPDATING,
  AssetModelState'
  #-}