{-# 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.LensType
-- 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.LensType
  ( LensType
      ( ..,
        LensType_AWS_OFFICIAL,
        LensType_CUSTOM_SELF,
        LensType_CUSTOM_SHARED
      ),
  )
where

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

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

pattern LensType_AWS_OFFICIAL :: LensType
pattern $bLensType_AWS_OFFICIAL :: LensType
$mLensType_AWS_OFFICIAL :: forall {r}. LensType -> ((# #) -> r) -> ((# #) -> r) -> r
LensType_AWS_OFFICIAL = LensType' "AWS_OFFICIAL"

pattern LensType_CUSTOM_SELF :: LensType
pattern $bLensType_CUSTOM_SELF :: LensType
$mLensType_CUSTOM_SELF :: forall {r}. LensType -> ((# #) -> r) -> ((# #) -> r) -> r
LensType_CUSTOM_SELF = LensType' "CUSTOM_SELF"

pattern LensType_CUSTOM_SHARED :: LensType
pattern $bLensType_CUSTOM_SHARED :: LensType
$mLensType_CUSTOM_SHARED :: forall {r}. LensType -> ((# #) -> r) -> ((# #) -> r) -> r
LensType_CUSTOM_SHARED = LensType' "CUSTOM_SHARED"

{-# COMPLETE
  LensType_AWS_OFFICIAL,
  LensType_CUSTOM_SELF,
  LensType_CUSTOM_SHARED,
  LensType'
  #-}