{-# 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.Lightsail.Types.RecordState
-- 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.Lightsail.Types.RecordState
  ( RecordState
      ( ..,
        RecordState_Failed,
        RecordState_Started,
        RecordState_Succeeded
      ),
  )
where

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

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

pattern RecordState_Failed :: RecordState
pattern $bRecordState_Failed :: RecordState
$mRecordState_Failed :: forall {r}. RecordState -> ((# #) -> r) -> ((# #) -> r) -> r
RecordState_Failed = RecordState' "Failed"

pattern RecordState_Started :: RecordState
pattern $bRecordState_Started :: RecordState
$mRecordState_Started :: forall {r}. RecordState -> ((# #) -> r) -> ((# #) -> r) -> r
RecordState_Started = RecordState' "Started"

pattern RecordState_Succeeded :: RecordState
pattern $bRecordState_Succeeded :: RecordState
$mRecordState_Succeeded :: forall {r}. RecordState -> ((# #) -> r) -> ((# #) -> r) -> r
RecordState_Succeeded = RecordState' "Succeeded"

{-# COMPLETE
  RecordState_Failed,
  RecordState_Started,
  RecordState_Succeeded,
  RecordState'
  #-}