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