{-# 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.ForwardingConfigState
-- 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.ForwardingConfigState
  ( ForwardingConfigState
      ( ..,
        ForwardingConfigState_DISABLED,
        ForwardingConfigState_ENABLED
      ),
  )
where

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

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

pattern ForwardingConfigState_DISABLED :: ForwardingConfigState
pattern $bForwardingConfigState_DISABLED :: ForwardingConfigState
$mForwardingConfigState_DISABLED :: forall r.
ForwardingConfigState -> (Void# -> r) -> (Void# -> r) -> r
ForwardingConfigState_DISABLED = ForwardingConfigState' "DISABLED"

pattern ForwardingConfigState_ENABLED :: ForwardingConfigState
pattern $bForwardingConfigState_ENABLED :: ForwardingConfigState
$mForwardingConfigState_ENABLED :: forall r.
ForwardingConfigState -> (Void# -> r) -> (Void# -> r) -> r
ForwardingConfigState_ENABLED = ForwardingConfigState' "ENABLED"

{-# COMPLETE
  ForwardingConfigState_DISABLED,
  ForwardingConfigState_ENABLED,
  ForwardingConfigState'
  #-}