{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Organizations.ListHandshakesForOrganization
(
ListHandshakesForOrganization (..),
newListHandshakesForOrganization,
listHandshakesForOrganization_nextToken,
listHandshakesForOrganization_filter,
listHandshakesForOrganization_maxResults,
ListHandshakesForOrganizationResponse (..),
newListHandshakesForOrganizationResponse,
listHandshakesForOrganizationResponse_handshakes,
listHandshakesForOrganizationResponse_nextToken,
listHandshakesForOrganizationResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Organizations.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListHandshakesForOrganization = ListHandshakesForOrganization'
{
ListHandshakesForOrganization -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListHandshakesForOrganization -> Maybe HandshakeFilter
filter' :: Prelude.Maybe HandshakeFilter,
ListHandshakesForOrganization -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListHandshakesForOrganization
-> ListHandshakesForOrganization -> Bool
(ListHandshakesForOrganization
-> ListHandshakesForOrganization -> Bool)
-> (ListHandshakesForOrganization
-> ListHandshakesForOrganization -> Bool)
-> Eq ListHandshakesForOrganization
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListHandshakesForOrganization
-> ListHandshakesForOrganization -> Bool
$c/= :: ListHandshakesForOrganization
-> ListHandshakesForOrganization -> Bool
== :: ListHandshakesForOrganization
-> ListHandshakesForOrganization -> Bool
$c== :: ListHandshakesForOrganization
-> ListHandshakesForOrganization -> Bool
Prelude.Eq, ReadPrec [ListHandshakesForOrganization]
ReadPrec ListHandshakesForOrganization
Int -> ReadS ListHandshakesForOrganization
ReadS [ListHandshakesForOrganization]
(Int -> ReadS ListHandshakesForOrganization)
-> ReadS [ListHandshakesForOrganization]
-> ReadPrec ListHandshakesForOrganization
-> ReadPrec [ListHandshakesForOrganization]
-> Read ListHandshakesForOrganization
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListHandshakesForOrganization]
$creadListPrec :: ReadPrec [ListHandshakesForOrganization]
readPrec :: ReadPrec ListHandshakesForOrganization
$creadPrec :: ReadPrec ListHandshakesForOrganization
readList :: ReadS [ListHandshakesForOrganization]
$creadList :: ReadS [ListHandshakesForOrganization]
readsPrec :: Int -> ReadS ListHandshakesForOrganization
$creadsPrec :: Int -> ReadS ListHandshakesForOrganization
Prelude.Read, Int -> ListHandshakesForOrganization -> ShowS
[ListHandshakesForOrganization] -> ShowS
ListHandshakesForOrganization -> String
(Int -> ListHandshakesForOrganization -> ShowS)
-> (ListHandshakesForOrganization -> String)
-> ([ListHandshakesForOrganization] -> ShowS)
-> Show ListHandshakesForOrganization
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListHandshakesForOrganization] -> ShowS
$cshowList :: [ListHandshakesForOrganization] -> ShowS
show :: ListHandshakesForOrganization -> String
$cshow :: ListHandshakesForOrganization -> String
showsPrec :: Int -> ListHandshakesForOrganization -> ShowS
$cshowsPrec :: Int -> ListHandshakesForOrganization -> ShowS
Prelude.Show, (forall x.
ListHandshakesForOrganization
-> Rep ListHandshakesForOrganization x)
-> (forall x.
Rep ListHandshakesForOrganization x
-> ListHandshakesForOrganization)
-> Generic ListHandshakesForOrganization
forall x.
Rep ListHandshakesForOrganization x
-> ListHandshakesForOrganization
forall x.
ListHandshakesForOrganization
-> Rep ListHandshakesForOrganization x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListHandshakesForOrganization x
-> ListHandshakesForOrganization
$cfrom :: forall x.
ListHandshakesForOrganization
-> Rep ListHandshakesForOrganization x
Prelude.Generic)
newListHandshakesForOrganization ::
ListHandshakesForOrganization
newListHandshakesForOrganization :: ListHandshakesForOrganization
newListHandshakesForOrganization =
ListHandshakesForOrganization' :: Maybe Text
-> Maybe HandshakeFilter
-> Maybe Natural
-> ListHandshakesForOrganization
ListHandshakesForOrganization'
{ $sel:nextToken:ListHandshakesForOrganization' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:filter':ListHandshakesForOrganization' :: Maybe HandshakeFilter
filter' = Maybe HandshakeFilter
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListHandshakesForOrganization' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listHandshakesForOrganization_nextToken :: Lens.Lens' ListHandshakesForOrganization (Prelude.Maybe Prelude.Text)
listHandshakesForOrganization_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListHandshakesForOrganization -> f ListHandshakesForOrganization
listHandshakesForOrganization_nextToken = (ListHandshakesForOrganization -> Maybe Text)
-> (ListHandshakesForOrganization
-> Maybe Text -> ListHandshakesForOrganization)
-> Lens
ListHandshakesForOrganization
ListHandshakesForOrganization
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHandshakesForOrganization' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListHandshakesForOrganization' :: ListHandshakesForOrganization -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListHandshakesForOrganization
s@ListHandshakesForOrganization' {} Maybe Text
a -> ListHandshakesForOrganization
s {$sel:nextToken:ListHandshakesForOrganization' :: Maybe Text
nextToken = Maybe Text
a} :: ListHandshakesForOrganization)
listHandshakesForOrganization_filter :: Lens.Lens' ListHandshakesForOrganization (Prelude.Maybe HandshakeFilter)
listHandshakesForOrganization_filter :: (Maybe HandshakeFilter -> f (Maybe HandshakeFilter))
-> ListHandshakesForOrganization -> f ListHandshakesForOrganization
listHandshakesForOrganization_filter = (ListHandshakesForOrganization -> Maybe HandshakeFilter)
-> (ListHandshakesForOrganization
-> Maybe HandshakeFilter -> ListHandshakesForOrganization)
-> Lens
ListHandshakesForOrganization
ListHandshakesForOrganization
(Maybe HandshakeFilter)
(Maybe HandshakeFilter)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHandshakesForOrganization' {Maybe HandshakeFilter
filter' :: Maybe HandshakeFilter
$sel:filter':ListHandshakesForOrganization' :: ListHandshakesForOrganization -> Maybe HandshakeFilter
filter'} -> Maybe HandshakeFilter
filter') (\s :: ListHandshakesForOrganization
s@ListHandshakesForOrganization' {} Maybe HandshakeFilter
a -> ListHandshakesForOrganization
s {$sel:filter':ListHandshakesForOrganization' :: Maybe HandshakeFilter
filter' = Maybe HandshakeFilter
a} :: ListHandshakesForOrganization)
listHandshakesForOrganization_maxResults :: Lens.Lens' ListHandshakesForOrganization (Prelude.Maybe Prelude.Natural)
listHandshakesForOrganization_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListHandshakesForOrganization -> f ListHandshakesForOrganization
listHandshakesForOrganization_maxResults = (ListHandshakesForOrganization -> Maybe Natural)
-> (ListHandshakesForOrganization
-> Maybe Natural -> ListHandshakesForOrganization)
-> Lens
ListHandshakesForOrganization
ListHandshakesForOrganization
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHandshakesForOrganization' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListHandshakesForOrganization' :: ListHandshakesForOrganization -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListHandshakesForOrganization
s@ListHandshakesForOrganization' {} Maybe Natural
a -> ListHandshakesForOrganization
s {$sel:maxResults:ListHandshakesForOrganization' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListHandshakesForOrganization)
instance Core.AWSPager ListHandshakesForOrganization where
page :: ListHandshakesForOrganization
-> AWSResponse ListHandshakesForOrganization
-> Maybe ListHandshakesForOrganization
page ListHandshakesForOrganization
rq AWSResponse ListHandshakesForOrganization
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListHandshakesForOrganization
ListHandshakesForOrganizationResponse
rs
ListHandshakesForOrganizationResponse
-> Getting (First Text) ListHandshakesForOrganizationResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListHandshakesForOrganizationResponse
-> Const (First Text) ListHandshakesForOrganizationResponse
Lens' ListHandshakesForOrganizationResponse (Maybe Text)
listHandshakesForOrganizationResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListHandshakesForOrganizationResponse
-> Const (First Text) ListHandshakesForOrganizationResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListHandshakesForOrganizationResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListHandshakesForOrganization
forall a. Maybe a
Prelude.Nothing
| Maybe [Handshake] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListHandshakesForOrganization
ListHandshakesForOrganizationResponse
rs
ListHandshakesForOrganizationResponse
-> Getting
(First [Handshake])
ListHandshakesForOrganizationResponse
[Handshake]
-> Maybe [Handshake]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Handshake]
-> Const (First [Handshake]) (Maybe [Handshake]))
-> ListHandshakesForOrganizationResponse
-> Const (First [Handshake]) ListHandshakesForOrganizationResponse
Lens' ListHandshakesForOrganizationResponse (Maybe [Handshake])
listHandshakesForOrganizationResponse_handshakes
((Maybe [Handshake]
-> Const (First [Handshake]) (Maybe [Handshake]))
-> ListHandshakesForOrganizationResponse
-> Const (First [Handshake]) ListHandshakesForOrganizationResponse)
-> (([Handshake] -> Const (First [Handshake]) [Handshake])
-> Maybe [Handshake]
-> Const (First [Handshake]) (Maybe [Handshake]))
-> Getting
(First [Handshake])
ListHandshakesForOrganizationResponse
[Handshake]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Handshake] -> Const (First [Handshake]) [Handshake])
-> Maybe [Handshake]
-> Const (First [Handshake]) (Maybe [Handshake])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListHandshakesForOrganization
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListHandshakesForOrganization
-> Maybe ListHandshakesForOrganization
forall a. a -> Maybe a
Prelude.Just (ListHandshakesForOrganization
-> Maybe ListHandshakesForOrganization)
-> ListHandshakesForOrganization
-> Maybe ListHandshakesForOrganization
forall a b. (a -> b) -> a -> b
Prelude.$
ListHandshakesForOrganization
rq
ListHandshakesForOrganization
-> (ListHandshakesForOrganization -> ListHandshakesForOrganization)
-> ListHandshakesForOrganization
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListHandshakesForOrganization
-> Identity ListHandshakesForOrganization
Lens
ListHandshakesForOrganization
ListHandshakesForOrganization
(Maybe Text)
(Maybe Text)
listHandshakesForOrganization_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListHandshakesForOrganization
-> Identity ListHandshakesForOrganization)
-> Maybe Text
-> ListHandshakesForOrganization
-> ListHandshakesForOrganization
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListHandshakesForOrganization
ListHandshakesForOrganizationResponse
rs
ListHandshakesForOrganizationResponse
-> Getting (First Text) ListHandshakesForOrganizationResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListHandshakesForOrganizationResponse
-> Const (First Text) ListHandshakesForOrganizationResponse
Lens' ListHandshakesForOrganizationResponse (Maybe Text)
listHandshakesForOrganizationResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListHandshakesForOrganizationResponse
-> Const (First Text) ListHandshakesForOrganizationResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListHandshakesForOrganizationResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance
Core.AWSRequest
ListHandshakesForOrganization
where
type
AWSResponse ListHandshakesForOrganization =
ListHandshakesForOrganizationResponse
request :: ListHandshakesForOrganization
-> Request ListHandshakesForOrganization
request = Service
-> ListHandshakesForOrganization
-> Request ListHandshakesForOrganization
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListHandshakesForOrganization
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListHandshakesForOrganization)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListHandshakesForOrganization))
-> Logger
-> Service
-> Proxy ListHandshakesForOrganization
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListHandshakesForOrganization)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe [Handshake]
-> Maybe Text -> Int -> ListHandshakesForOrganizationResponse
ListHandshakesForOrganizationResponse'
(Maybe [Handshake]
-> Maybe Text -> Int -> ListHandshakesForOrganizationResponse)
-> Either String (Maybe [Handshake])
-> Either
String (Maybe Text -> Int -> ListHandshakesForOrganizationResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [Handshake]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Handshakes" Either String (Maybe (Maybe [Handshake]))
-> Maybe [Handshake] -> Either String (Maybe [Handshake])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Handshake]
forall a. Monoid a => a
Prelude.mempty)
Either
String (Maybe Text -> Int -> ListHandshakesForOrganizationResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListHandshakesForOrganizationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NextToken")
Either String (Int -> ListHandshakesForOrganizationResponse)
-> Either String Int
-> Either String ListHandshakesForOrganizationResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance
Prelude.Hashable
ListHandshakesForOrganization
instance Prelude.NFData ListHandshakesForOrganization
instance Core.ToHeaders ListHandshakesForOrganization where
toHeaders :: ListHandshakesForOrganization -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListHandshakesForOrganization -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AWSOrganizationsV20161128.ListHandshakesForOrganization" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON ListHandshakesForOrganization where
toJSON :: ListHandshakesForOrganization -> Value
toJSON ListHandshakesForOrganization' {Maybe Natural
Maybe Text
Maybe HandshakeFilter
maxResults :: Maybe Natural
filter' :: Maybe HandshakeFilter
nextToken :: Maybe Text
$sel:maxResults:ListHandshakesForOrganization' :: ListHandshakesForOrganization -> Maybe Natural
$sel:filter':ListHandshakesForOrganization' :: ListHandshakesForOrganization -> Maybe HandshakeFilter
$sel:nextToken:ListHandshakesForOrganization' :: ListHandshakesForOrganization -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"NextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
(Text
"Filter" Text -> HandshakeFilter -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HandshakeFilter -> Pair) -> Maybe HandshakeFilter -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe HandshakeFilter
filter',
(Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults
]
)
instance Core.ToPath ListHandshakesForOrganization where
toPath :: ListHandshakesForOrganization -> ByteString
toPath = ByteString -> ListHandshakesForOrganization -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListHandshakesForOrganization where
toQuery :: ListHandshakesForOrganization -> QueryString
toQuery = QueryString -> ListHandshakesForOrganization -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListHandshakesForOrganizationResponse = ListHandshakesForOrganizationResponse'
{
ListHandshakesForOrganizationResponse -> Maybe [Handshake]
handshakes :: Prelude.Maybe [Handshake],
ListHandshakesForOrganizationResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListHandshakesForOrganizationResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListHandshakesForOrganizationResponse
-> ListHandshakesForOrganizationResponse -> Bool
(ListHandshakesForOrganizationResponse
-> ListHandshakesForOrganizationResponse -> Bool)
-> (ListHandshakesForOrganizationResponse
-> ListHandshakesForOrganizationResponse -> Bool)
-> Eq ListHandshakesForOrganizationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListHandshakesForOrganizationResponse
-> ListHandshakesForOrganizationResponse -> Bool
$c/= :: ListHandshakesForOrganizationResponse
-> ListHandshakesForOrganizationResponse -> Bool
== :: ListHandshakesForOrganizationResponse
-> ListHandshakesForOrganizationResponse -> Bool
$c== :: ListHandshakesForOrganizationResponse
-> ListHandshakesForOrganizationResponse -> Bool
Prelude.Eq, Int -> ListHandshakesForOrganizationResponse -> ShowS
[ListHandshakesForOrganizationResponse] -> ShowS
ListHandshakesForOrganizationResponse -> String
(Int -> ListHandshakesForOrganizationResponse -> ShowS)
-> (ListHandshakesForOrganizationResponse -> String)
-> ([ListHandshakesForOrganizationResponse] -> ShowS)
-> Show ListHandshakesForOrganizationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListHandshakesForOrganizationResponse] -> ShowS
$cshowList :: [ListHandshakesForOrganizationResponse] -> ShowS
show :: ListHandshakesForOrganizationResponse -> String
$cshow :: ListHandshakesForOrganizationResponse -> String
showsPrec :: Int -> ListHandshakesForOrganizationResponse -> ShowS
$cshowsPrec :: Int -> ListHandshakesForOrganizationResponse -> ShowS
Prelude.Show, (forall x.
ListHandshakesForOrganizationResponse
-> Rep ListHandshakesForOrganizationResponse x)
-> (forall x.
Rep ListHandshakesForOrganizationResponse x
-> ListHandshakesForOrganizationResponse)
-> Generic ListHandshakesForOrganizationResponse
forall x.
Rep ListHandshakesForOrganizationResponse x
-> ListHandshakesForOrganizationResponse
forall x.
ListHandshakesForOrganizationResponse
-> Rep ListHandshakesForOrganizationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListHandshakesForOrganizationResponse x
-> ListHandshakesForOrganizationResponse
$cfrom :: forall x.
ListHandshakesForOrganizationResponse
-> Rep ListHandshakesForOrganizationResponse x
Prelude.Generic)
newListHandshakesForOrganizationResponse ::
Prelude.Int ->
ListHandshakesForOrganizationResponse
newListHandshakesForOrganizationResponse :: Int -> ListHandshakesForOrganizationResponse
newListHandshakesForOrganizationResponse Int
pHttpStatus_ =
ListHandshakesForOrganizationResponse' :: Maybe [Handshake]
-> Maybe Text -> Int -> ListHandshakesForOrganizationResponse
ListHandshakesForOrganizationResponse'
{ $sel:handshakes:ListHandshakesForOrganizationResponse' :: Maybe [Handshake]
handshakes =
Maybe [Handshake]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListHandshakesForOrganizationResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListHandshakesForOrganizationResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listHandshakesForOrganizationResponse_handshakes :: Lens.Lens' ListHandshakesForOrganizationResponse (Prelude.Maybe [Handshake])
listHandshakesForOrganizationResponse_handshakes :: (Maybe [Handshake] -> f (Maybe [Handshake]))
-> ListHandshakesForOrganizationResponse
-> f ListHandshakesForOrganizationResponse
listHandshakesForOrganizationResponse_handshakes = (ListHandshakesForOrganizationResponse -> Maybe [Handshake])
-> (ListHandshakesForOrganizationResponse
-> Maybe [Handshake] -> ListHandshakesForOrganizationResponse)
-> Lens' ListHandshakesForOrganizationResponse (Maybe [Handshake])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHandshakesForOrganizationResponse' {Maybe [Handshake]
handshakes :: Maybe [Handshake]
$sel:handshakes:ListHandshakesForOrganizationResponse' :: ListHandshakesForOrganizationResponse -> Maybe [Handshake]
handshakes} -> Maybe [Handshake]
handshakes) (\s :: ListHandshakesForOrganizationResponse
s@ListHandshakesForOrganizationResponse' {} Maybe [Handshake]
a -> ListHandshakesForOrganizationResponse
s {$sel:handshakes:ListHandshakesForOrganizationResponse' :: Maybe [Handshake]
handshakes = Maybe [Handshake]
a} :: ListHandshakesForOrganizationResponse) ((Maybe [Handshake] -> f (Maybe [Handshake]))
-> ListHandshakesForOrganizationResponse
-> f ListHandshakesForOrganizationResponse)
-> ((Maybe [Handshake] -> f (Maybe [Handshake]))
-> Maybe [Handshake] -> f (Maybe [Handshake]))
-> (Maybe [Handshake] -> f (Maybe [Handshake]))
-> ListHandshakesForOrganizationResponse
-> f ListHandshakesForOrganizationResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Handshake] [Handshake] [Handshake] [Handshake]
-> Iso
(Maybe [Handshake])
(Maybe [Handshake])
(Maybe [Handshake])
(Maybe [Handshake])
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 [Handshake] [Handshake] [Handshake] [Handshake]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listHandshakesForOrganizationResponse_nextToken :: Lens.Lens' ListHandshakesForOrganizationResponse (Prelude.Maybe Prelude.Text)
listHandshakesForOrganizationResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListHandshakesForOrganizationResponse
-> f ListHandshakesForOrganizationResponse
listHandshakesForOrganizationResponse_nextToken = (ListHandshakesForOrganizationResponse -> Maybe Text)
-> (ListHandshakesForOrganizationResponse
-> Maybe Text -> ListHandshakesForOrganizationResponse)
-> Lens' ListHandshakesForOrganizationResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHandshakesForOrganizationResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListHandshakesForOrganizationResponse' :: ListHandshakesForOrganizationResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListHandshakesForOrganizationResponse
s@ListHandshakesForOrganizationResponse' {} Maybe Text
a -> ListHandshakesForOrganizationResponse
s {$sel:nextToken:ListHandshakesForOrganizationResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListHandshakesForOrganizationResponse)
listHandshakesForOrganizationResponse_httpStatus :: Lens.Lens' ListHandshakesForOrganizationResponse Prelude.Int
listHandshakesForOrganizationResponse_httpStatus :: (Int -> f Int)
-> ListHandshakesForOrganizationResponse
-> f ListHandshakesForOrganizationResponse
listHandshakesForOrganizationResponse_httpStatus = (ListHandshakesForOrganizationResponse -> Int)
-> (ListHandshakesForOrganizationResponse
-> Int -> ListHandshakesForOrganizationResponse)
-> Lens
ListHandshakesForOrganizationResponse
ListHandshakesForOrganizationResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHandshakesForOrganizationResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListHandshakesForOrganizationResponse' :: ListHandshakesForOrganizationResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListHandshakesForOrganizationResponse
s@ListHandshakesForOrganizationResponse' {} Int
a -> ListHandshakesForOrganizationResponse
s {$sel:httpStatus:ListHandshakesForOrganizationResponse' :: Int
httpStatus = Int
a} :: ListHandshakesForOrganizationResponse)
instance
Prelude.NFData
ListHandshakesForOrganizationResponse