{-# 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 #-}
module Amazonka.Support.Types.TrustedAdvisorCheckDescription where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data TrustedAdvisorCheckDescription = TrustedAdvisorCheckDescription'
{
TrustedAdvisorCheckDescription -> Text
id :: Prelude.Text,
TrustedAdvisorCheckDescription -> Text
name :: Prelude.Text,
TrustedAdvisorCheckDescription -> Text
description :: Prelude.Text,
TrustedAdvisorCheckDescription -> Text
category :: Prelude.Text,
TrustedAdvisorCheckDescription -> [Text]
metadata :: [Prelude.Text]
}
deriving (TrustedAdvisorCheckDescription
-> TrustedAdvisorCheckDescription -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TrustedAdvisorCheckDescription
-> TrustedAdvisorCheckDescription -> Bool
$c/= :: TrustedAdvisorCheckDescription
-> TrustedAdvisorCheckDescription -> Bool
== :: TrustedAdvisorCheckDescription
-> TrustedAdvisorCheckDescription -> Bool
$c== :: TrustedAdvisorCheckDescription
-> TrustedAdvisorCheckDescription -> Bool
Prelude.Eq, ReadPrec [TrustedAdvisorCheckDescription]
ReadPrec TrustedAdvisorCheckDescription
Int -> ReadS TrustedAdvisorCheckDescription
ReadS [TrustedAdvisorCheckDescription]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TrustedAdvisorCheckDescription]
$creadListPrec :: ReadPrec [TrustedAdvisorCheckDescription]
readPrec :: ReadPrec TrustedAdvisorCheckDescription
$creadPrec :: ReadPrec TrustedAdvisorCheckDescription
readList :: ReadS [TrustedAdvisorCheckDescription]
$creadList :: ReadS [TrustedAdvisorCheckDescription]
readsPrec :: Int -> ReadS TrustedAdvisorCheckDescription
$creadsPrec :: Int -> ReadS TrustedAdvisorCheckDescription
Prelude.Read, Int -> TrustedAdvisorCheckDescription -> ShowS
[TrustedAdvisorCheckDescription] -> ShowS
TrustedAdvisorCheckDescription -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TrustedAdvisorCheckDescription] -> ShowS
$cshowList :: [TrustedAdvisorCheckDescription] -> ShowS
show :: TrustedAdvisorCheckDescription -> String
$cshow :: TrustedAdvisorCheckDescription -> String
showsPrec :: Int -> TrustedAdvisorCheckDescription -> ShowS
$cshowsPrec :: Int -> TrustedAdvisorCheckDescription -> ShowS
Prelude.Show, forall x.
Rep TrustedAdvisorCheckDescription x
-> TrustedAdvisorCheckDescription
forall x.
TrustedAdvisorCheckDescription
-> Rep TrustedAdvisorCheckDescription x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep TrustedAdvisorCheckDescription x
-> TrustedAdvisorCheckDescription
$cfrom :: forall x.
TrustedAdvisorCheckDescription
-> Rep TrustedAdvisorCheckDescription x
Prelude.Generic)
newTrustedAdvisorCheckDescription ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
TrustedAdvisorCheckDescription
newTrustedAdvisorCheckDescription :: Text -> Text -> Text -> Text -> TrustedAdvisorCheckDescription
newTrustedAdvisorCheckDescription
Text
pId_
Text
pName_
Text
pDescription_
Text
pCategory_ =
TrustedAdvisorCheckDescription'
{ $sel:id:TrustedAdvisorCheckDescription' :: Text
id = Text
pId_,
$sel:name:TrustedAdvisorCheckDescription' :: Text
name = Text
pName_,
$sel:description:TrustedAdvisorCheckDescription' :: Text
description = Text
pDescription_,
$sel:category:TrustedAdvisorCheckDescription' :: Text
category = Text
pCategory_,
$sel:metadata:TrustedAdvisorCheckDescription' :: [Text]
metadata = forall a. Monoid a => a
Prelude.mempty
}
trustedAdvisorCheckDescription_id :: Lens.Lens' TrustedAdvisorCheckDescription Prelude.Text
trustedAdvisorCheckDescription_id :: Lens' TrustedAdvisorCheckDescription Text
trustedAdvisorCheckDescription_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TrustedAdvisorCheckDescription' {Text
id :: Text
$sel:id:TrustedAdvisorCheckDescription' :: TrustedAdvisorCheckDescription -> Text
id} -> Text
id) (\s :: TrustedAdvisorCheckDescription
s@TrustedAdvisorCheckDescription' {} Text
a -> TrustedAdvisorCheckDescription
s {$sel:id:TrustedAdvisorCheckDescription' :: Text
id = Text
a} :: TrustedAdvisorCheckDescription)
trustedAdvisorCheckDescription_name :: Lens.Lens' TrustedAdvisorCheckDescription Prelude.Text
trustedAdvisorCheckDescription_name :: Lens' TrustedAdvisorCheckDescription Text
trustedAdvisorCheckDescription_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TrustedAdvisorCheckDescription' {Text
name :: Text
$sel:name:TrustedAdvisorCheckDescription' :: TrustedAdvisorCheckDescription -> Text
name} -> Text
name) (\s :: TrustedAdvisorCheckDescription
s@TrustedAdvisorCheckDescription' {} Text
a -> TrustedAdvisorCheckDescription
s {$sel:name:TrustedAdvisorCheckDescription' :: Text
name = Text
a} :: TrustedAdvisorCheckDescription)
trustedAdvisorCheckDescription_description :: Lens.Lens' TrustedAdvisorCheckDescription Prelude.Text
trustedAdvisorCheckDescription_description :: Lens' TrustedAdvisorCheckDescription Text
trustedAdvisorCheckDescription_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TrustedAdvisorCheckDescription' {Text
description :: Text
$sel:description:TrustedAdvisorCheckDescription' :: TrustedAdvisorCheckDescription -> Text
description} -> Text
description) (\s :: TrustedAdvisorCheckDescription
s@TrustedAdvisorCheckDescription' {} Text
a -> TrustedAdvisorCheckDescription
s {$sel:description:TrustedAdvisorCheckDescription' :: Text
description = Text
a} :: TrustedAdvisorCheckDescription)
trustedAdvisorCheckDescription_category :: Lens.Lens' TrustedAdvisorCheckDescription Prelude.Text
trustedAdvisorCheckDescription_category :: Lens' TrustedAdvisorCheckDescription Text
trustedAdvisorCheckDescription_category = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TrustedAdvisorCheckDescription' {Text
category :: Text
$sel:category:TrustedAdvisorCheckDescription' :: TrustedAdvisorCheckDescription -> Text
category} -> Text
category) (\s :: TrustedAdvisorCheckDescription
s@TrustedAdvisorCheckDescription' {} Text
a -> TrustedAdvisorCheckDescription
s {$sel:category:TrustedAdvisorCheckDescription' :: Text
category = Text
a} :: TrustedAdvisorCheckDescription)
trustedAdvisorCheckDescription_metadata :: Lens.Lens' TrustedAdvisorCheckDescription [Prelude.Text]
trustedAdvisorCheckDescription_metadata :: Lens' TrustedAdvisorCheckDescription [Text]
trustedAdvisorCheckDescription_metadata = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TrustedAdvisorCheckDescription' {[Text]
metadata :: [Text]
$sel:metadata:TrustedAdvisorCheckDescription' :: TrustedAdvisorCheckDescription -> [Text]
metadata} -> [Text]
metadata) (\s :: TrustedAdvisorCheckDescription
s@TrustedAdvisorCheckDescription' {} [Text]
a -> TrustedAdvisorCheckDescription
s {$sel:metadata:TrustedAdvisorCheckDescription' :: [Text]
metadata = [Text]
a} :: TrustedAdvisorCheckDescription) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Data.FromJSON TrustedAdvisorCheckDescription where
parseJSON :: Value -> Parser TrustedAdvisorCheckDescription
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"TrustedAdvisorCheckDescription"
( \Object
x ->
Text
-> Text -> Text -> Text -> [Text] -> TrustedAdvisorCheckDescription
TrustedAdvisorCheckDescription'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"id")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"name")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"description")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"category")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"metadata" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
)
instance
Prelude.Hashable
TrustedAdvisorCheckDescription
where
hashWithSalt :: Int -> TrustedAdvisorCheckDescription -> Int
hashWithSalt
Int
_salt
TrustedAdvisorCheckDescription' {[Text]
Text
metadata :: [Text]
category :: Text
description :: Text
name :: Text
id :: Text
$sel:metadata:TrustedAdvisorCheckDescription' :: TrustedAdvisorCheckDescription -> [Text]
$sel:category:TrustedAdvisorCheckDescription' :: TrustedAdvisorCheckDescription -> Text
$sel:description:TrustedAdvisorCheckDescription' :: TrustedAdvisorCheckDescription -> Text
$sel:name:TrustedAdvisorCheckDescription' :: TrustedAdvisorCheckDescription -> Text
$sel:id:TrustedAdvisorCheckDescription' :: TrustedAdvisorCheckDescription -> Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
id
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
name
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
description
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
category
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` [Text]
metadata
instance
Prelude.NFData
TrustedAdvisorCheckDescription
where
rnf :: TrustedAdvisorCheckDescription -> ()
rnf TrustedAdvisorCheckDescription' {[Text]
Text
metadata :: [Text]
category :: Text
description :: Text
name :: Text
id :: Text
$sel:metadata:TrustedAdvisorCheckDescription' :: TrustedAdvisorCheckDescription -> [Text]
$sel:category:TrustedAdvisorCheckDescription' :: TrustedAdvisorCheckDescription -> Text
$sel:description:TrustedAdvisorCheckDescription' :: TrustedAdvisorCheckDescription -> Text
$sel:name:TrustedAdvisorCheckDescription' :: TrustedAdvisorCheckDescription -> Text
$sel:id:TrustedAdvisorCheckDescription' :: TrustedAdvisorCheckDescription -> Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Text
id
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
name
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
description
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
category
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf [Text]
metadata