{-# 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.LensStatusType
-- 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.WellArchitected.Types.LensStatusType
  ( LensStatusType
      ( ..,
        LensStatusType_ALL,
        LensStatusType_DRAFT,
        LensStatusType_PUBLISHED
      ),
  )
where

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

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

pattern LensStatusType_ALL :: LensStatusType
pattern $bLensStatusType_ALL :: LensStatusType
$mLensStatusType_ALL :: forall {r}. LensStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
LensStatusType_ALL = LensStatusType' "ALL"

pattern LensStatusType_DRAFT :: LensStatusType
pattern $bLensStatusType_DRAFT :: LensStatusType
$mLensStatusType_DRAFT :: forall {r}. LensStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
LensStatusType_DRAFT = LensStatusType' "DRAFT"

pattern LensStatusType_PUBLISHED :: LensStatusType
pattern $bLensStatusType_PUBLISHED :: LensStatusType
$mLensStatusType_PUBLISHED :: forall {r}. LensStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
LensStatusType_PUBLISHED = LensStatusType' "PUBLISHED"

{-# COMPLETE
  LensStatusType_ALL,
  LensStatusType_DRAFT,
  LensStatusType_PUBLISHED,
  LensStatusType'
  #-}