{-# 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.WellArchitected.Types.LensStatus
-- 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.WellArchitected.Types.LensStatus
  ( LensStatus
      ( ..,
        LensStatus_CURRENT,
        LensStatus_DEPRECATED,
        LensStatus_NOT_CURRENT
      ),
  )
where

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

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

pattern LensStatus_CURRENT :: LensStatus
pattern $bLensStatus_CURRENT :: LensStatus
$mLensStatus_CURRENT :: forall r. LensStatus -> (Void# -> r) -> (Void# -> r) -> r
LensStatus_CURRENT = LensStatus' "CURRENT"

pattern LensStatus_DEPRECATED :: LensStatus
pattern $bLensStatus_DEPRECATED :: LensStatus
$mLensStatus_DEPRECATED :: forall r. LensStatus -> (Void# -> r) -> (Void# -> r) -> r
LensStatus_DEPRECATED = LensStatus' "DEPRECATED"

pattern LensStatus_NOT_CURRENT :: LensStatus
pattern $bLensStatus_NOT_CURRENT :: LensStatus
$mLensStatus_NOT_CURRENT :: forall r. LensStatus -> (Void# -> r) -> (Void# -> r) -> r
LensStatus_NOT_CURRENT = LensStatus' "NOT_CURRENT"

{-# COMPLETE
  LensStatus_CURRENT,
  LensStatus_DEPRECATED,
  LensStatus_NOT_CURRENT,
  LensStatus'
  #-}