{-# 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.PrivateNetworks.Types.DeviceIdentifierStatus
-- 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.PrivateNetworks.Types.DeviceIdentifierStatus
  ( DeviceIdentifierStatus
      ( ..,
        DeviceIdentifierStatus_ACTIVE,
        DeviceIdentifierStatus_INACTIVE
      ),
  )
where

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

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

pattern DeviceIdentifierStatus_ACTIVE :: DeviceIdentifierStatus
pattern $bDeviceIdentifierStatus_ACTIVE :: DeviceIdentifierStatus
$mDeviceIdentifierStatus_ACTIVE :: forall {r}.
DeviceIdentifierStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DeviceIdentifierStatus_ACTIVE = DeviceIdentifierStatus' "ACTIVE"

pattern DeviceIdentifierStatus_INACTIVE :: DeviceIdentifierStatus
pattern $bDeviceIdentifierStatus_INACTIVE :: DeviceIdentifierStatus
$mDeviceIdentifierStatus_INACTIVE :: forall {r}.
DeviceIdentifierStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DeviceIdentifierStatus_INACTIVE = DeviceIdentifierStatus' "INACTIVE"

{-# COMPLETE
  DeviceIdentifierStatus_ACTIVE,
  DeviceIdentifierStatus_INACTIVE,
  DeviceIdentifierStatus'
  #-}