{-# 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.Glue.Types.Connection where
import qualified Amazonka.Core as Core
import Amazonka.Glue.Types.ConnectionPropertyKey
import Amazonka.Glue.Types.ConnectionType
import Amazonka.Glue.Types.PhysicalConnectionRequirements
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data Connection = Connection'
{
Connection -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
Connection -> Maybe Text
lastUpdatedBy :: Prelude.Maybe Prelude.Text,
Connection -> Maybe (HashMap ConnectionPropertyKey Text)
connectionProperties :: Prelude.Maybe (Prelude.HashMap ConnectionPropertyKey Prelude.Text),
Connection -> Maybe POSIX
lastUpdatedTime :: Prelude.Maybe Core.POSIX,
Connection -> Maybe [Text]
matchCriteria :: Prelude.Maybe [Prelude.Text],
Connection -> Maybe PhysicalConnectionRequirements
physicalConnectionRequirements :: Prelude.Maybe PhysicalConnectionRequirements,
Connection -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
Connection -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
Connection -> Maybe ConnectionType
connectionType :: Prelude.Maybe ConnectionType
}
deriving (Connection -> Connection -> Bool
(Connection -> Connection -> Bool)
-> (Connection -> Connection -> Bool) -> Eq Connection
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Connection -> Connection -> Bool
$c/= :: Connection -> Connection -> Bool
== :: Connection -> Connection -> Bool
$c== :: Connection -> Connection -> Bool
Prelude.Eq, ReadPrec [Connection]
ReadPrec Connection
Int -> ReadS Connection
ReadS [Connection]
(Int -> ReadS Connection)
-> ReadS [Connection]
-> ReadPrec Connection
-> ReadPrec [Connection]
-> Read Connection
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Connection]
$creadListPrec :: ReadPrec [Connection]
readPrec :: ReadPrec Connection
$creadPrec :: ReadPrec Connection
readList :: ReadS [Connection]
$creadList :: ReadS [Connection]
readsPrec :: Int -> ReadS Connection
$creadsPrec :: Int -> ReadS Connection
Prelude.Read, Int -> Connection -> ShowS
[Connection] -> ShowS
Connection -> String
(Int -> Connection -> ShowS)
-> (Connection -> String)
-> ([Connection] -> ShowS)
-> Show Connection
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Connection] -> ShowS
$cshowList :: [Connection] -> ShowS
show :: Connection -> String
$cshow :: Connection -> String
showsPrec :: Int -> Connection -> ShowS
$cshowsPrec :: Int -> Connection -> ShowS
Prelude.Show, (forall x. Connection -> Rep Connection x)
-> (forall x. Rep Connection x -> Connection) -> Generic Connection
forall x. Rep Connection x -> Connection
forall x. Connection -> Rep Connection x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Connection x -> Connection
$cfrom :: forall x. Connection -> Rep Connection x
Prelude.Generic)
newConnection ::
Connection
newConnection :: Connection
newConnection =
Connection' :: Maybe POSIX
-> Maybe Text
-> Maybe (HashMap ConnectionPropertyKey Text)
-> Maybe POSIX
-> Maybe [Text]
-> Maybe PhysicalConnectionRequirements
-> Maybe Text
-> Maybe Text
-> Maybe ConnectionType
-> Connection
Connection'
{ $sel:creationTime:Connection' :: Maybe POSIX
creationTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:lastUpdatedBy:Connection' :: Maybe Text
lastUpdatedBy = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:connectionProperties:Connection' :: Maybe (HashMap ConnectionPropertyKey Text)
connectionProperties = Maybe (HashMap ConnectionPropertyKey Text)
forall a. Maybe a
Prelude.Nothing,
$sel:lastUpdatedTime:Connection' :: Maybe POSIX
lastUpdatedTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:matchCriteria:Connection' :: Maybe [Text]
matchCriteria = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:physicalConnectionRequirements:Connection' :: Maybe PhysicalConnectionRequirements
physicalConnectionRequirements = Maybe PhysicalConnectionRequirements
forall a. Maybe a
Prelude.Nothing,
$sel:name:Connection' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:description:Connection' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:connectionType:Connection' :: Maybe ConnectionType
connectionType = Maybe ConnectionType
forall a. Maybe a
Prelude.Nothing
}
connection_creationTime :: Lens.Lens' Connection (Prelude.Maybe Prelude.UTCTime)
connection_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Connection -> f Connection
connection_creationTime = (Connection -> Maybe POSIX)
-> (Connection -> Maybe POSIX -> Connection)
-> Lens Connection Connection (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Connection' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:Connection' :: Connection -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: Connection
s@Connection' {} Maybe POSIX
a -> Connection
s {$sel:creationTime:Connection' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: Connection) ((Maybe POSIX -> f (Maybe POSIX)) -> Connection -> f Connection)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Connection
-> f Connection
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
connection_lastUpdatedBy :: Lens.Lens' Connection (Prelude.Maybe Prelude.Text)
connection_lastUpdatedBy :: (Maybe Text -> f (Maybe Text)) -> Connection -> f Connection
connection_lastUpdatedBy = (Connection -> Maybe Text)
-> (Connection -> Maybe Text -> Connection)
-> Lens Connection Connection (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Connection' {Maybe Text
lastUpdatedBy :: Maybe Text
$sel:lastUpdatedBy:Connection' :: Connection -> Maybe Text
lastUpdatedBy} -> Maybe Text
lastUpdatedBy) (\s :: Connection
s@Connection' {} Maybe Text
a -> Connection
s {$sel:lastUpdatedBy:Connection' :: Maybe Text
lastUpdatedBy = Maybe Text
a} :: Connection)
connection_connectionProperties :: Lens.Lens' Connection (Prelude.Maybe (Prelude.HashMap ConnectionPropertyKey Prelude.Text))
connection_connectionProperties :: (Maybe (HashMap ConnectionPropertyKey Text)
-> f (Maybe (HashMap ConnectionPropertyKey Text)))
-> Connection -> f Connection
connection_connectionProperties = (Connection -> Maybe (HashMap ConnectionPropertyKey Text))
-> (Connection
-> Maybe (HashMap ConnectionPropertyKey Text) -> Connection)
-> Lens
Connection
Connection
(Maybe (HashMap ConnectionPropertyKey Text))
(Maybe (HashMap ConnectionPropertyKey Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Connection' {Maybe (HashMap ConnectionPropertyKey Text)
connectionProperties :: Maybe (HashMap ConnectionPropertyKey Text)
$sel:connectionProperties:Connection' :: Connection -> Maybe (HashMap ConnectionPropertyKey Text)
connectionProperties} -> Maybe (HashMap ConnectionPropertyKey Text)
connectionProperties) (\s :: Connection
s@Connection' {} Maybe (HashMap ConnectionPropertyKey Text)
a -> Connection
s {$sel:connectionProperties:Connection' :: Maybe (HashMap ConnectionPropertyKey Text)
connectionProperties = Maybe (HashMap ConnectionPropertyKey Text)
a} :: Connection) ((Maybe (HashMap ConnectionPropertyKey Text)
-> f (Maybe (HashMap ConnectionPropertyKey Text)))
-> Connection -> f Connection)
-> ((Maybe (HashMap ConnectionPropertyKey Text)
-> f (Maybe (HashMap ConnectionPropertyKey Text)))
-> Maybe (HashMap ConnectionPropertyKey Text)
-> f (Maybe (HashMap ConnectionPropertyKey Text)))
-> (Maybe (HashMap ConnectionPropertyKey Text)
-> f (Maybe (HashMap ConnectionPropertyKey Text)))
-> Connection
-> f Connection
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap ConnectionPropertyKey Text)
(HashMap ConnectionPropertyKey Text)
(HashMap ConnectionPropertyKey Text)
(HashMap ConnectionPropertyKey Text)
-> Iso
(Maybe (HashMap ConnectionPropertyKey Text))
(Maybe (HashMap ConnectionPropertyKey Text))
(Maybe (HashMap ConnectionPropertyKey Text))
(Maybe (HashMap ConnectionPropertyKey Text))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
(HashMap ConnectionPropertyKey Text)
(HashMap ConnectionPropertyKey Text)
(HashMap ConnectionPropertyKey Text)
(HashMap ConnectionPropertyKey Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
connection_lastUpdatedTime :: Lens.Lens' Connection (Prelude.Maybe Prelude.UTCTime)
connection_lastUpdatedTime :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Connection -> f Connection
connection_lastUpdatedTime = (Connection -> Maybe POSIX)
-> (Connection -> Maybe POSIX -> Connection)
-> Lens Connection Connection (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Connection' {Maybe POSIX
lastUpdatedTime :: Maybe POSIX
$sel:lastUpdatedTime:Connection' :: Connection -> Maybe POSIX
lastUpdatedTime} -> Maybe POSIX
lastUpdatedTime) (\s :: Connection
s@Connection' {} Maybe POSIX
a -> Connection
s {$sel:lastUpdatedTime:Connection' :: Maybe POSIX
lastUpdatedTime = Maybe POSIX
a} :: Connection) ((Maybe POSIX -> f (Maybe POSIX)) -> Connection -> f Connection)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Connection
-> f Connection
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
connection_matchCriteria :: Lens.Lens' Connection (Prelude.Maybe [Prelude.Text])
connection_matchCriteria :: (Maybe [Text] -> f (Maybe [Text])) -> Connection -> f Connection
connection_matchCriteria = (Connection -> Maybe [Text])
-> (Connection -> Maybe [Text] -> Connection)
-> Lens Connection Connection (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Connection' {Maybe [Text]
matchCriteria :: Maybe [Text]
$sel:matchCriteria:Connection' :: Connection -> Maybe [Text]
matchCriteria} -> Maybe [Text]
matchCriteria) (\s :: Connection
s@Connection' {} Maybe [Text]
a -> Connection
s {$sel:matchCriteria:Connection' :: Maybe [Text]
matchCriteria = Maybe [Text]
a} :: Connection) ((Maybe [Text] -> f (Maybe [Text])) -> Connection -> f Connection)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> Connection
-> f Connection
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
connection_physicalConnectionRequirements :: Lens.Lens' Connection (Prelude.Maybe PhysicalConnectionRequirements)
connection_physicalConnectionRequirements :: (Maybe PhysicalConnectionRequirements
-> f (Maybe PhysicalConnectionRequirements))
-> Connection -> f Connection
connection_physicalConnectionRequirements = (Connection -> Maybe PhysicalConnectionRequirements)
-> (Connection
-> Maybe PhysicalConnectionRequirements -> Connection)
-> Lens
Connection
Connection
(Maybe PhysicalConnectionRequirements)
(Maybe PhysicalConnectionRequirements)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Connection' {Maybe PhysicalConnectionRequirements
physicalConnectionRequirements :: Maybe PhysicalConnectionRequirements
$sel:physicalConnectionRequirements:Connection' :: Connection -> Maybe PhysicalConnectionRequirements
physicalConnectionRequirements} -> Maybe PhysicalConnectionRequirements
physicalConnectionRequirements) (\s :: Connection
s@Connection' {} Maybe PhysicalConnectionRequirements
a -> Connection
s {$sel:physicalConnectionRequirements:Connection' :: Maybe PhysicalConnectionRequirements
physicalConnectionRequirements = Maybe PhysicalConnectionRequirements
a} :: Connection)
connection_name :: Lens.Lens' Connection (Prelude.Maybe Prelude.Text)
connection_name :: (Maybe Text -> f (Maybe Text)) -> Connection -> f Connection
connection_name = (Connection -> Maybe Text)
-> (Connection -> Maybe Text -> Connection)
-> Lens Connection Connection (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Connection' {Maybe Text
name :: Maybe Text
$sel:name:Connection' :: Connection -> Maybe Text
name} -> Maybe Text
name) (\s :: Connection
s@Connection' {} Maybe Text
a -> Connection
s {$sel:name:Connection' :: Maybe Text
name = Maybe Text
a} :: Connection)
connection_description :: Lens.Lens' Connection (Prelude.Maybe Prelude.Text)
connection_description :: (Maybe Text -> f (Maybe Text)) -> Connection -> f Connection
connection_description = (Connection -> Maybe Text)
-> (Connection -> Maybe Text -> Connection)
-> Lens Connection Connection (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Connection' {Maybe Text
description :: Maybe Text
$sel:description:Connection' :: Connection -> Maybe Text
description} -> Maybe Text
description) (\s :: Connection
s@Connection' {} Maybe Text
a -> Connection
s {$sel:description:Connection' :: Maybe Text
description = Maybe Text
a} :: Connection)
connection_connectionType :: Lens.Lens' Connection (Prelude.Maybe ConnectionType)
connection_connectionType :: (Maybe ConnectionType -> f (Maybe ConnectionType))
-> Connection -> f Connection
connection_connectionType = (Connection -> Maybe ConnectionType)
-> (Connection -> Maybe ConnectionType -> Connection)
-> Lens
Connection Connection (Maybe ConnectionType) (Maybe ConnectionType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Connection' {Maybe ConnectionType
connectionType :: Maybe ConnectionType
$sel:connectionType:Connection' :: Connection -> Maybe ConnectionType
connectionType} -> Maybe ConnectionType
connectionType) (\s :: Connection
s@Connection' {} Maybe ConnectionType
a -> Connection
s {$sel:connectionType:Connection' :: Maybe ConnectionType
connectionType = Maybe ConnectionType
a} :: Connection)
instance Core.FromJSON Connection where
parseJSON :: Value -> Parser Connection
parseJSON =
String
-> (Object -> Parser Connection) -> Value -> Parser Connection
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"Connection"
( \Object
x ->
Maybe POSIX
-> Maybe Text
-> Maybe (HashMap ConnectionPropertyKey Text)
-> Maybe POSIX
-> Maybe [Text]
-> Maybe PhysicalConnectionRequirements
-> Maybe Text
-> Maybe Text
-> Maybe ConnectionType
-> Connection
Connection'
(Maybe POSIX
-> Maybe Text
-> Maybe (HashMap ConnectionPropertyKey Text)
-> Maybe POSIX
-> Maybe [Text]
-> Maybe PhysicalConnectionRequirements
-> Maybe Text
-> Maybe Text
-> Maybe ConnectionType
-> Connection)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Maybe (HashMap ConnectionPropertyKey Text)
-> Maybe POSIX
-> Maybe [Text]
-> Maybe PhysicalConnectionRequirements
-> Maybe Text
-> Maybe Text
-> Maybe ConnectionType
-> Connection)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CreationTime")
Parser
(Maybe Text
-> Maybe (HashMap ConnectionPropertyKey Text)
-> Maybe POSIX
-> Maybe [Text]
-> Maybe PhysicalConnectionRequirements
-> Maybe Text
-> Maybe Text
-> Maybe ConnectionType
-> Connection)
-> Parser (Maybe Text)
-> Parser
(Maybe (HashMap ConnectionPropertyKey Text)
-> Maybe POSIX
-> Maybe [Text]
-> Maybe PhysicalConnectionRequirements
-> Maybe Text
-> Maybe Text
-> Maybe ConnectionType
-> Connection)
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
"LastUpdatedBy")
Parser
(Maybe (HashMap ConnectionPropertyKey Text)
-> Maybe POSIX
-> Maybe [Text]
-> Maybe PhysicalConnectionRequirements
-> Maybe Text
-> Maybe Text
-> Maybe ConnectionType
-> Connection)
-> Parser (Maybe (HashMap ConnectionPropertyKey Text))
-> Parser
(Maybe POSIX
-> Maybe [Text]
-> Maybe PhysicalConnectionRequirements
-> Maybe Text
-> Maybe Text
-> Maybe ConnectionType
-> Connection)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text
-> Parser (Maybe (Maybe (HashMap ConnectionPropertyKey Text)))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ConnectionProperties"
Parser (Maybe (Maybe (HashMap ConnectionPropertyKey Text)))
-> Maybe (HashMap ConnectionPropertyKey Text)
-> Parser (Maybe (HashMap ConnectionPropertyKey Text))
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe (HashMap ConnectionPropertyKey Text)
forall a. Monoid a => a
Prelude.mempty
)
Parser
(Maybe POSIX
-> Maybe [Text]
-> Maybe PhysicalConnectionRequirements
-> Maybe Text
-> Maybe Text
-> Maybe ConnectionType
-> Connection)
-> Parser (Maybe POSIX)
-> Parser
(Maybe [Text]
-> Maybe PhysicalConnectionRequirements
-> Maybe Text
-> Maybe Text
-> Maybe ConnectionType
-> Connection)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LastUpdatedTime")
Parser
(Maybe [Text]
-> Maybe PhysicalConnectionRequirements
-> Maybe Text
-> Maybe Text
-> Maybe ConnectionType
-> Connection)
-> Parser (Maybe [Text])
-> Parser
(Maybe PhysicalConnectionRequirements
-> Maybe Text -> Maybe Text -> Maybe ConnectionType -> Connection)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"MatchCriteria" Parser (Maybe (Maybe [Text]))
-> Maybe [Text] -> Parser (Maybe [Text])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Text]
forall a. Monoid a => a
Prelude.mempty)
Parser
(Maybe PhysicalConnectionRequirements
-> Maybe Text -> Maybe Text -> Maybe ConnectionType -> Connection)
-> Parser (Maybe PhysicalConnectionRequirements)
-> Parser
(Maybe Text -> Maybe Text -> Maybe ConnectionType -> Connection)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe PhysicalConnectionRequirements)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"PhysicalConnectionRequirements")
Parser
(Maybe Text -> Maybe Text -> Maybe ConnectionType -> Connection)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe ConnectionType -> Connection)
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
"Name")
Parser (Maybe Text -> Maybe ConnectionType -> Connection)
-> Parser (Maybe Text)
-> Parser (Maybe ConnectionType -> Connection)
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
"Description")
Parser (Maybe ConnectionType -> Connection)
-> Parser (Maybe ConnectionType) -> Parser Connection
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ConnectionType)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ConnectionType")
)
instance Prelude.Hashable Connection
instance Prelude.NFData Connection