{-# 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.InstanceSnapshotState
-- 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.InstanceSnapshotState
  ( InstanceSnapshotState
      ( ..,
        InstanceSnapshotState_Available,
        InstanceSnapshotState_Error,
        InstanceSnapshotState_Pending
      ),
  )
where

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

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

pattern InstanceSnapshotState_Available :: InstanceSnapshotState
pattern $bInstanceSnapshotState_Available :: InstanceSnapshotState
$mInstanceSnapshotState_Available :: forall {r}.
InstanceSnapshotState -> ((# #) -> r) -> ((# #) -> r) -> r
InstanceSnapshotState_Available = InstanceSnapshotState' "available"

pattern InstanceSnapshotState_Error :: InstanceSnapshotState
pattern $bInstanceSnapshotState_Error :: InstanceSnapshotState
$mInstanceSnapshotState_Error :: forall {r}.
InstanceSnapshotState -> ((# #) -> r) -> ((# #) -> r) -> r
InstanceSnapshotState_Error = InstanceSnapshotState' "error"

pattern InstanceSnapshotState_Pending :: InstanceSnapshotState
pattern $bInstanceSnapshotState_Pending :: InstanceSnapshotState
$mInstanceSnapshotState_Pending :: forall {r}.
InstanceSnapshotState -> ((# #) -> r) -> ((# #) -> r) -> r
InstanceSnapshotState_Pending = InstanceSnapshotState' "pending"

{-# COMPLETE
  InstanceSnapshotState_Available,
  InstanceSnapshotState_Error,
  InstanceSnapshotState_Pending,
  InstanceSnapshotState'
  #-}