{-# 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.ServiceCatalogAppRegistry.Types.ResourceIntegrations 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
import Amazonka.ServiceCatalogAppRegistry.Types.ResourceGroup
data ResourceIntegrations = ResourceIntegrations'
{
ResourceIntegrations -> Maybe ResourceGroup
resourceGroup :: Prelude.Maybe ResourceGroup
}
deriving (ResourceIntegrations -> ResourceIntegrations -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ResourceIntegrations -> ResourceIntegrations -> Bool
$c/= :: ResourceIntegrations -> ResourceIntegrations -> Bool
== :: ResourceIntegrations -> ResourceIntegrations -> Bool
$c== :: ResourceIntegrations -> ResourceIntegrations -> Bool
Prelude.Eq, ReadPrec [ResourceIntegrations]
ReadPrec ResourceIntegrations
Int -> ReadS ResourceIntegrations
ReadS [ResourceIntegrations]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ResourceIntegrations]
$creadListPrec :: ReadPrec [ResourceIntegrations]
readPrec :: ReadPrec ResourceIntegrations
$creadPrec :: ReadPrec ResourceIntegrations
readList :: ReadS [ResourceIntegrations]
$creadList :: ReadS [ResourceIntegrations]
readsPrec :: Int -> ReadS ResourceIntegrations
$creadsPrec :: Int -> ReadS ResourceIntegrations
Prelude.Read, Int -> ResourceIntegrations -> ShowS
[ResourceIntegrations] -> ShowS
ResourceIntegrations -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ResourceIntegrations] -> ShowS
$cshowList :: [ResourceIntegrations] -> ShowS
show :: ResourceIntegrations -> String
$cshow :: ResourceIntegrations -> String
showsPrec :: Int -> ResourceIntegrations -> ShowS
$cshowsPrec :: Int -> ResourceIntegrations -> ShowS
Prelude.Show, forall x. Rep ResourceIntegrations x -> ResourceIntegrations
forall x. ResourceIntegrations -> Rep ResourceIntegrations x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ResourceIntegrations x -> ResourceIntegrations
$cfrom :: forall x. ResourceIntegrations -> Rep ResourceIntegrations x
Prelude.Generic)
newResourceIntegrations ::
ResourceIntegrations
newResourceIntegrations :: ResourceIntegrations
newResourceIntegrations =
ResourceIntegrations'
{ $sel:resourceGroup:ResourceIntegrations' :: Maybe ResourceGroup
resourceGroup =
forall a. Maybe a
Prelude.Nothing
}
resourceIntegrations_resourceGroup :: Lens.Lens' ResourceIntegrations (Prelude.Maybe ResourceGroup)
resourceIntegrations_resourceGroup :: Lens' ResourceIntegrations (Maybe ResourceGroup)
resourceIntegrations_resourceGroup = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceIntegrations' {Maybe ResourceGroup
resourceGroup :: Maybe ResourceGroup
$sel:resourceGroup:ResourceIntegrations' :: ResourceIntegrations -> Maybe ResourceGroup
resourceGroup} -> Maybe ResourceGroup
resourceGroup) (\s :: ResourceIntegrations
s@ResourceIntegrations' {} Maybe ResourceGroup
a -> ResourceIntegrations
s {$sel:resourceGroup:ResourceIntegrations' :: Maybe ResourceGroup
resourceGroup = Maybe ResourceGroup
a} :: ResourceIntegrations)
instance Data.FromJSON ResourceIntegrations where
parseJSON :: Value -> Parser ResourceIntegrations
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"ResourceIntegrations"
( \Object
x ->
Maybe ResourceGroup -> ResourceIntegrations
ResourceIntegrations'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"resourceGroup")
)
instance Prelude.Hashable ResourceIntegrations where
hashWithSalt :: Int -> ResourceIntegrations -> Int
hashWithSalt Int
_salt ResourceIntegrations' {Maybe ResourceGroup
resourceGroup :: Maybe ResourceGroup
$sel:resourceGroup:ResourceIntegrations' :: ResourceIntegrations -> Maybe ResourceGroup
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ResourceGroup
resourceGroup
instance Prelude.NFData ResourceIntegrations where
rnf :: ResourceIntegrations -> ()
rnf ResourceIntegrations' {Maybe ResourceGroup
resourceGroup :: Maybe ResourceGroup
$sel:resourceGroup:ResourceIntegrations' :: ResourceIntegrations -> Maybe ResourceGroup
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe ResourceGroup
resourceGroup