{-# 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.CloudDirectory.Types.BatchListOutgoingTypedLinksResponse where
import Amazonka.CloudDirectory.Types.TypedLinkSpecifier
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 BatchListOutgoingTypedLinksResponse = BatchListOutgoingTypedLinksResponse'
{
BatchListOutgoingTypedLinksResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
BatchListOutgoingTypedLinksResponse -> Maybe [TypedLinkSpecifier]
typedLinkSpecifiers :: Prelude.Maybe [TypedLinkSpecifier]
}
deriving (BatchListOutgoingTypedLinksResponse
-> BatchListOutgoingTypedLinksResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchListOutgoingTypedLinksResponse
-> BatchListOutgoingTypedLinksResponse -> Bool
$c/= :: BatchListOutgoingTypedLinksResponse
-> BatchListOutgoingTypedLinksResponse -> Bool
== :: BatchListOutgoingTypedLinksResponse
-> BatchListOutgoingTypedLinksResponse -> Bool
$c== :: BatchListOutgoingTypedLinksResponse
-> BatchListOutgoingTypedLinksResponse -> Bool
Prelude.Eq, ReadPrec [BatchListOutgoingTypedLinksResponse]
ReadPrec BatchListOutgoingTypedLinksResponse
Int -> ReadS BatchListOutgoingTypedLinksResponse
ReadS [BatchListOutgoingTypedLinksResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchListOutgoingTypedLinksResponse]
$creadListPrec :: ReadPrec [BatchListOutgoingTypedLinksResponse]
readPrec :: ReadPrec BatchListOutgoingTypedLinksResponse
$creadPrec :: ReadPrec BatchListOutgoingTypedLinksResponse
readList :: ReadS [BatchListOutgoingTypedLinksResponse]
$creadList :: ReadS [BatchListOutgoingTypedLinksResponse]
readsPrec :: Int -> ReadS BatchListOutgoingTypedLinksResponse
$creadsPrec :: Int -> ReadS BatchListOutgoingTypedLinksResponse
Prelude.Read, Int -> BatchListOutgoingTypedLinksResponse -> ShowS
[BatchListOutgoingTypedLinksResponse] -> ShowS
BatchListOutgoingTypedLinksResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchListOutgoingTypedLinksResponse] -> ShowS
$cshowList :: [BatchListOutgoingTypedLinksResponse] -> ShowS
show :: BatchListOutgoingTypedLinksResponse -> String
$cshow :: BatchListOutgoingTypedLinksResponse -> String
showsPrec :: Int -> BatchListOutgoingTypedLinksResponse -> ShowS
$cshowsPrec :: Int -> BatchListOutgoingTypedLinksResponse -> ShowS
Prelude.Show, forall x.
Rep BatchListOutgoingTypedLinksResponse x
-> BatchListOutgoingTypedLinksResponse
forall x.
BatchListOutgoingTypedLinksResponse
-> Rep BatchListOutgoingTypedLinksResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchListOutgoingTypedLinksResponse x
-> BatchListOutgoingTypedLinksResponse
$cfrom :: forall x.
BatchListOutgoingTypedLinksResponse
-> Rep BatchListOutgoingTypedLinksResponse x
Prelude.Generic)
newBatchListOutgoingTypedLinksResponse ::
BatchListOutgoingTypedLinksResponse
newBatchListOutgoingTypedLinksResponse :: BatchListOutgoingTypedLinksResponse
newBatchListOutgoingTypedLinksResponse =
BatchListOutgoingTypedLinksResponse'
{ $sel:nextToken:BatchListOutgoingTypedLinksResponse' :: Maybe Text
nextToken =
forall a. Maybe a
Prelude.Nothing,
$sel:typedLinkSpecifiers:BatchListOutgoingTypedLinksResponse' :: Maybe [TypedLinkSpecifier]
typedLinkSpecifiers = forall a. Maybe a
Prelude.Nothing
}
batchListOutgoingTypedLinksResponse_nextToken :: Lens.Lens' BatchListOutgoingTypedLinksResponse (Prelude.Maybe Prelude.Text)
batchListOutgoingTypedLinksResponse_nextToken :: Lens' BatchListOutgoingTypedLinksResponse (Maybe Text)
batchListOutgoingTypedLinksResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchListOutgoingTypedLinksResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:BatchListOutgoingTypedLinksResponse' :: BatchListOutgoingTypedLinksResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: BatchListOutgoingTypedLinksResponse
s@BatchListOutgoingTypedLinksResponse' {} Maybe Text
a -> BatchListOutgoingTypedLinksResponse
s {$sel:nextToken:BatchListOutgoingTypedLinksResponse' :: Maybe Text
nextToken = Maybe Text
a} :: BatchListOutgoingTypedLinksResponse)
batchListOutgoingTypedLinksResponse_typedLinkSpecifiers :: Lens.Lens' BatchListOutgoingTypedLinksResponse (Prelude.Maybe [TypedLinkSpecifier])
batchListOutgoingTypedLinksResponse_typedLinkSpecifiers :: Lens'
BatchListOutgoingTypedLinksResponse (Maybe [TypedLinkSpecifier])
batchListOutgoingTypedLinksResponse_typedLinkSpecifiers = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchListOutgoingTypedLinksResponse' {Maybe [TypedLinkSpecifier]
typedLinkSpecifiers :: Maybe [TypedLinkSpecifier]
$sel:typedLinkSpecifiers:BatchListOutgoingTypedLinksResponse' :: BatchListOutgoingTypedLinksResponse -> Maybe [TypedLinkSpecifier]
typedLinkSpecifiers} -> Maybe [TypedLinkSpecifier]
typedLinkSpecifiers) (\s :: BatchListOutgoingTypedLinksResponse
s@BatchListOutgoingTypedLinksResponse' {} Maybe [TypedLinkSpecifier]
a -> BatchListOutgoingTypedLinksResponse
s {$sel:typedLinkSpecifiers:BatchListOutgoingTypedLinksResponse' :: Maybe [TypedLinkSpecifier]
typedLinkSpecifiers = Maybe [TypedLinkSpecifier]
a} :: BatchListOutgoingTypedLinksResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance
Data.FromJSON
BatchListOutgoingTypedLinksResponse
where
parseJSON :: Value -> Parser BatchListOutgoingTypedLinksResponse
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"BatchListOutgoingTypedLinksResponse"
( \Object
x ->
Maybe Text
-> Maybe [TypedLinkSpecifier]
-> BatchListOutgoingTypedLinksResponse
BatchListOutgoingTypedLinksResponse'
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
"NextToken")
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
"TypedLinkSpecifiers"
forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
)
)
instance
Prelude.Hashable
BatchListOutgoingTypedLinksResponse
where
hashWithSalt :: Int -> BatchListOutgoingTypedLinksResponse -> Int
hashWithSalt
Int
_salt
BatchListOutgoingTypedLinksResponse' {Maybe [TypedLinkSpecifier]
Maybe Text
typedLinkSpecifiers :: Maybe [TypedLinkSpecifier]
nextToken :: Maybe Text
$sel:typedLinkSpecifiers:BatchListOutgoingTypedLinksResponse' :: BatchListOutgoingTypedLinksResponse -> Maybe [TypedLinkSpecifier]
$sel:nextToken:BatchListOutgoingTypedLinksResponse' :: BatchListOutgoingTypedLinksResponse -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [TypedLinkSpecifier]
typedLinkSpecifiers
instance
Prelude.NFData
BatchListOutgoingTypedLinksResponse
where
rnf :: BatchListOutgoingTypedLinksResponse -> ()
rnf BatchListOutgoingTypedLinksResponse' {Maybe [TypedLinkSpecifier]
Maybe Text
typedLinkSpecifiers :: Maybe [TypedLinkSpecifier]
nextToken :: Maybe Text
$sel:typedLinkSpecifiers:BatchListOutgoingTypedLinksResponse' :: BatchListOutgoingTypedLinksResponse -> Maybe [TypedLinkSpecifier]
$sel:nextToken:BatchListOutgoingTypedLinksResponse' :: BatchListOutgoingTypedLinksResponse -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [TypedLinkSpecifier]
typedLinkSpecifiers