{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.WellArchitected.Types.LensReviewReport
-- 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.LensReviewReport where

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

-- | A report of a lens review.
--
-- /See:/ 'newLensReviewReport' smart constructor.
data LensReviewReport = LensReviewReport'
  { LensReviewReport -> Maybe Text
lensAlias :: Prelude.Maybe Prelude.Text,
    LensReviewReport -> Maybe Text
base64String :: Prelude.Maybe Prelude.Text
  }
  deriving (LensReviewReport -> LensReviewReport -> Bool
(LensReviewReport -> LensReviewReport -> Bool)
-> (LensReviewReport -> LensReviewReport -> Bool)
-> Eq LensReviewReport
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LensReviewReport -> LensReviewReport -> Bool
$c/= :: LensReviewReport -> LensReviewReport -> Bool
== :: LensReviewReport -> LensReviewReport -> Bool
$c== :: LensReviewReport -> LensReviewReport -> Bool
Prelude.Eq, ReadPrec [LensReviewReport]
ReadPrec LensReviewReport
Int -> ReadS LensReviewReport
ReadS [LensReviewReport]
(Int -> ReadS LensReviewReport)
-> ReadS [LensReviewReport]
-> ReadPrec LensReviewReport
-> ReadPrec [LensReviewReport]
-> Read LensReviewReport
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [LensReviewReport]
$creadListPrec :: ReadPrec [LensReviewReport]
readPrec :: ReadPrec LensReviewReport
$creadPrec :: ReadPrec LensReviewReport
readList :: ReadS [LensReviewReport]
$creadList :: ReadS [LensReviewReport]
readsPrec :: Int -> ReadS LensReviewReport
$creadsPrec :: Int -> ReadS LensReviewReport
Prelude.Read, Int -> LensReviewReport -> ShowS
[LensReviewReport] -> ShowS
LensReviewReport -> String
(Int -> LensReviewReport -> ShowS)
-> (LensReviewReport -> String)
-> ([LensReviewReport] -> ShowS)
-> Show LensReviewReport
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LensReviewReport] -> ShowS
$cshowList :: [LensReviewReport] -> ShowS
show :: LensReviewReport -> String
$cshow :: LensReviewReport -> String
showsPrec :: Int -> LensReviewReport -> ShowS
$cshowsPrec :: Int -> LensReviewReport -> ShowS
Prelude.Show, (forall x. LensReviewReport -> Rep LensReviewReport x)
-> (forall x. Rep LensReviewReport x -> LensReviewReport)
-> Generic LensReviewReport
forall x. Rep LensReviewReport x -> LensReviewReport
forall x. LensReviewReport -> Rep LensReviewReport x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep LensReviewReport x -> LensReviewReport
$cfrom :: forall x. LensReviewReport -> Rep LensReviewReport x
Prelude.Generic)

-- |
-- Create a value of 'LensReviewReport' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'lensAlias', 'lensReviewReport_lensAlias' - Undocumented member.
--
-- 'base64String', 'lensReviewReport_base64String' - Undocumented member.
newLensReviewReport ::
  LensReviewReport
newLensReviewReport :: LensReviewReport
newLensReviewReport =
  LensReviewReport' :: Maybe Text -> Maybe Text -> LensReviewReport
LensReviewReport'
    { $sel:lensAlias:LensReviewReport' :: Maybe Text
lensAlias = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:base64String:LensReviewReport' :: Maybe Text
base64String = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | Undocumented member.
lensReviewReport_lensAlias :: Lens.Lens' LensReviewReport (Prelude.Maybe Prelude.Text)
lensReviewReport_lensAlias :: (Maybe Text -> f (Maybe Text))
-> LensReviewReport -> f LensReviewReport
lensReviewReport_lensAlias = (LensReviewReport -> Maybe Text)
-> (LensReviewReport -> Maybe Text -> LensReviewReport)
-> Lens LensReviewReport LensReviewReport (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LensReviewReport' {Maybe Text
lensAlias :: Maybe Text
$sel:lensAlias:LensReviewReport' :: LensReviewReport -> Maybe Text
lensAlias} -> Maybe Text
lensAlias) (\s :: LensReviewReport
s@LensReviewReport' {} Maybe Text
a -> LensReviewReport
s {$sel:lensAlias:LensReviewReport' :: Maybe Text
lensAlias = Maybe Text
a} :: LensReviewReport)

-- | Undocumented member.
lensReviewReport_base64String :: Lens.Lens' LensReviewReport (Prelude.Maybe Prelude.Text)
lensReviewReport_base64String :: (Maybe Text -> f (Maybe Text))
-> LensReviewReport -> f LensReviewReport
lensReviewReport_base64String = (LensReviewReport -> Maybe Text)
-> (LensReviewReport -> Maybe Text -> LensReviewReport)
-> Lens LensReviewReport LensReviewReport (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LensReviewReport' {Maybe Text
base64String :: Maybe Text
$sel:base64String:LensReviewReport' :: LensReviewReport -> Maybe Text
base64String} -> Maybe Text
base64String) (\s :: LensReviewReport
s@LensReviewReport' {} Maybe Text
a -> LensReviewReport
s {$sel:base64String:LensReviewReport' :: Maybe Text
base64String = Maybe Text
a} :: LensReviewReport)

instance Core.FromJSON LensReviewReport where
  parseJSON :: Value -> Parser LensReviewReport
parseJSON =
    String
-> (Object -> Parser LensReviewReport)
-> Value
-> Parser LensReviewReport
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"LensReviewReport"
      ( \Object
x ->
          Maybe Text -> Maybe Text -> LensReviewReport
LensReviewReport'
            (Maybe Text -> Maybe Text -> LensReviewReport)
-> Parser (Maybe Text) -> Parser (Maybe Text -> LensReviewReport)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LensAlias")
            Parser (Maybe Text -> LensReviewReport)
-> Parser (Maybe Text) -> Parser LensReviewReport
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Base64String")
      )

instance Prelude.Hashable LensReviewReport

instance Prelude.NFData LensReviewReport