{-# 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.DisassociatedDataStorageState
-- 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.IoTSiteWise.Types.DisassociatedDataStorageState
  ( DisassociatedDataStorageState
      ( ..,
        DisassociatedDataStorageState_DISABLED,
        DisassociatedDataStorageState_ENABLED
      ),
  )
where

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

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

pattern DisassociatedDataStorageState_DISABLED :: DisassociatedDataStorageState
pattern $bDisassociatedDataStorageState_DISABLED :: DisassociatedDataStorageState
$mDisassociatedDataStorageState_DISABLED :: forall {r}.
DisassociatedDataStorageState -> ((# #) -> r) -> ((# #) -> r) -> r
DisassociatedDataStorageState_DISABLED = DisassociatedDataStorageState' "DISABLED"

pattern DisassociatedDataStorageState_ENABLED :: DisassociatedDataStorageState
pattern $bDisassociatedDataStorageState_ENABLED :: DisassociatedDataStorageState
$mDisassociatedDataStorageState_ENABLED :: forall {r}.
DisassociatedDataStorageState -> ((# #) -> r) -> ((# #) -> r) -> r
DisassociatedDataStorageState_ENABLED = DisassociatedDataStorageState' "ENABLED"

{-# COMPLETE
  DisassociatedDataStorageState_DISABLED,
  DisassociatedDataStorageState_ENABLED,
  DisassociatedDataStorageState'
  #-}