{-# 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.IoTRoboRunner.Types.DestinationState
-- 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.IoTRoboRunner.Types.DestinationState
  ( DestinationState
      ( ..,
        DestinationState_DECOMMISSIONED,
        DestinationState_DISABLED,
        DestinationState_ENABLED
      ),
  )
where

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

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

pattern DestinationState_DECOMMISSIONED :: DestinationState
pattern $bDestinationState_DECOMMISSIONED :: DestinationState
$mDestinationState_DECOMMISSIONED :: forall {r}. DestinationState -> ((# #) -> r) -> ((# #) -> r) -> r
DestinationState_DECOMMISSIONED = DestinationState' "DECOMMISSIONED"

pattern DestinationState_DISABLED :: DestinationState
pattern $bDestinationState_DISABLED :: DestinationState
$mDestinationState_DISABLED :: forall {r}. DestinationState -> ((# #) -> r) -> ((# #) -> r) -> r
DestinationState_DISABLED = DestinationState' "DISABLED"

pattern DestinationState_ENABLED :: DestinationState
pattern $bDestinationState_ENABLED :: DestinationState
$mDestinationState_ENABLED :: forall {r}. DestinationState -> ((# #) -> r) -> ((# #) -> r) -> r
DestinationState_ENABLED = DestinationState' "ENABLED"

{-# COMPLETE
  DestinationState_DECOMMISSIONED,
  DestinationState_DISABLED,
  DestinationState_ENABLED,
  DestinationState'
  #-}