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