{-# 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.CodeBuild.ListSharedReportGroups
(
ListSharedReportGroups (..),
newListSharedReportGroups,
listSharedReportGroups_maxResults,
listSharedReportGroups_nextToken,
listSharedReportGroups_sortBy,
listSharedReportGroups_sortOrder,
ListSharedReportGroupsResponse (..),
newListSharedReportGroupsResponse,
listSharedReportGroupsResponse_nextToken,
listSharedReportGroupsResponse_reportGroups,
listSharedReportGroupsResponse_httpStatus,
)
where
import Amazonka.CodeBuild.Types
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
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListSharedReportGroups = ListSharedReportGroups'
{
ListSharedReportGroups -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListSharedReportGroups -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListSharedReportGroups -> Maybe SharedResourceSortByType
sortBy :: Prelude.Maybe SharedResourceSortByType,
ListSharedReportGroups -> Maybe SortOrderType
sortOrder :: Prelude.Maybe SortOrderType
}
deriving (ListSharedReportGroups -> ListSharedReportGroups -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSharedReportGroups -> ListSharedReportGroups -> Bool
$c/= :: ListSharedReportGroups -> ListSharedReportGroups -> Bool
== :: ListSharedReportGroups -> ListSharedReportGroups -> Bool
$c== :: ListSharedReportGroups -> ListSharedReportGroups -> Bool
Prelude.Eq, ReadPrec [ListSharedReportGroups]
ReadPrec ListSharedReportGroups
Int -> ReadS ListSharedReportGroups
ReadS [ListSharedReportGroups]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSharedReportGroups]
$creadListPrec :: ReadPrec [ListSharedReportGroups]
readPrec :: ReadPrec ListSharedReportGroups
$creadPrec :: ReadPrec ListSharedReportGroups
readList :: ReadS [ListSharedReportGroups]
$creadList :: ReadS [ListSharedReportGroups]
readsPrec :: Int -> ReadS ListSharedReportGroups
$creadsPrec :: Int -> ReadS ListSharedReportGroups
Prelude.Read, Int -> ListSharedReportGroups -> ShowS
[ListSharedReportGroups] -> ShowS
ListSharedReportGroups -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSharedReportGroups] -> ShowS
$cshowList :: [ListSharedReportGroups] -> ShowS
show :: ListSharedReportGroups -> String
$cshow :: ListSharedReportGroups -> String
showsPrec :: Int -> ListSharedReportGroups -> ShowS
$cshowsPrec :: Int -> ListSharedReportGroups -> ShowS
Prelude.Show, forall x. Rep ListSharedReportGroups x -> ListSharedReportGroups
forall x. ListSharedReportGroups -> Rep ListSharedReportGroups x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListSharedReportGroups x -> ListSharedReportGroups
$cfrom :: forall x. ListSharedReportGroups -> Rep ListSharedReportGroups x
Prelude.Generic)
newListSharedReportGroups ::
ListSharedReportGroups
newListSharedReportGroups :: ListSharedReportGroups
newListSharedReportGroups =
ListSharedReportGroups'
{ $sel:maxResults:ListSharedReportGroups' :: Maybe Natural
maxResults =
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListSharedReportGroups' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:sortBy:ListSharedReportGroups' :: Maybe SharedResourceSortByType
sortBy = forall a. Maybe a
Prelude.Nothing,
$sel:sortOrder:ListSharedReportGroups' :: Maybe SortOrderType
sortOrder = forall a. Maybe a
Prelude.Nothing
}
listSharedReportGroups_maxResults :: Lens.Lens' ListSharedReportGroups (Prelude.Maybe Prelude.Natural)
listSharedReportGroups_maxResults :: Lens' ListSharedReportGroups (Maybe Natural)
listSharedReportGroups_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSharedReportGroups' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListSharedReportGroups' :: ListSharedReportGroups -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListSharedReportGroups
s@ListSharedReportGroups' {} Maybe Natural
a -> ListSharedReportGroups
s {$sel:maxResults:ListSharedReportGroups' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListSharedReportGroups)
listSharedReportGroups_nextToken :: Lens.Lens' ListSharedReportGroups (Prelude.Maybe Prelude.Text)
listSharedReportGroups_nextToken :: Lens' ListSharedReportGroups (Maybe Text)
listSharedReportGroups_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSharedReportGroups' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListSharedReportGroups' :: ListSharedReportGroups -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListSharedReportGroups
s@ListSharedReportGroups' {} Maybe Text
a -> ListSharedReportGroups
s {$sel:nextToken:ListSharedReportGroups' :: Maybe Text
nextToken = Maybe Text
a} :: ListSharedReportGroups)
listSharedReportGroups_sortBy :: Lens.Lens' ListSharedReportGroups (Prelude.Maybe SharedResourceSortByType)
listSharedReportGroups_sortBy :: Lens' ListSharedReportGroups (Maybe SharedResourceSortByType)
listSharedReportGroups_sortBy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSharedReportGroups' {Maybe SharedResourceSortByType
sortBy :: Maybe SharedResourceSortByType
$sel:sortBy:ListSharedReportGroups' :: ListSharedReportGroups -> Maybe SharedResourceSortByType
sortBy} -> Maybe SharedResourceSortByType
sortBy) (\s :: ListSharedReportGroups
s@ListSharedReportGroups' {} Maybe SharedResourceSortByType
a -> ListSharedReportGroups
s {$sel:sortBy:ListSharedReportGroups' :: Maybe SharedResourceSortByType
sortBy = Maybe SharedResourceSortByType
a} :: ListSharedReportGroups)
listSharedReportGroups_sortOrder :: Lens.Lens' ListSharedReportGroups (Prelude.Maybe SortOrderType)
listSharedReportGroups_sortOrder :: Lens' ListSharedReportGroups (Maybe SortOrderType)
listSharedReportGroups_sortOrder = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSharedReportGroups' {Maybe SortOrderType
sortOrder :: Maybe SortOrderType
$sel:sortOrder:ListSharedReportGroups' :: ListSharedReportGroups -> Maybe SortOrderType
sortOrder} -> Maybe SortOrderType
sortOrder) (\s :: ListSharedReportGroups
s@ListSharedReportGroups' {} Maybe SortOrderType
a -> ListSharedReportGroups
s {$sel:sortOrder:ListSharedReportGroups' :: Maybe SortOrderType
sortOrder = Maybe SortOrderType
a} :: ListSharedReportGroups)
instance Core.AWSPager ListSharedReportGroups where
page :: ListSharedReportGroups
-> AWSResponse ListSharedReportGroups
-> Maybe ListSharedReportGroups
page ListSharedReportGroups
rq AWSResponse ListSharedReportGroups
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListSharedReportGroups
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListSharedReportGroupsResponse (Maybe Text)
listSharedReportGroupsResponse_nextToken
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
forall a. Maybe a
Prelude.Nothing
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListSharedReportGroups
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListSharedReportGroupsResponse (Maybe (NonEmpty Text))
listSharedReportGroupsResponse_reportGroups
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (p :: * -> * -> *) (f :: * -> *) s a.
(Profunctor p, Contravariant f) =>
(s -> a) -> Optic' p f s a
Lens.to forall l. IsList l => l -> [Item l]
Prelude.toList
) =
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
forall a. a -> Maybe a
Prelude.Just
forall a b. (a -> b) -> a -> b
Prelude.$ ListSharedReportGroups
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListSharedReportGroups (Maybe Text)
listSharedReportGroups_nextToken
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListSharedReportGroups
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListSharedReportGroupsResponse (Maybe Text)
listSharedReportGroupsResponse_nextToken
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest ListSharedReportGroups where
type
AWSResponse ListSharedReportGroups =
ListSharedReportGroupsResponse
request :: (Service -> Service)
-> ListSharedReportGroups -> Request ListSharedReportGroups
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListSharedReportGroups
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListSharedReportGroups)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe (NonEmpty Text) -> Int -> ListSharedReportGroupsResponse
ListSharedReportGroupsResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (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 -> Either String (Maybe a)
Data..?> Key
"reportGroups")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable ListSharedReportGroups where
hashWithSalt :: Int -> ListSharedReportGroups -> Int
hashWithSalt Int
_salt ListSharedReportGroups' {Maybe Natural
Maybe Text
Maybe SharedResourceSortByType
Maybe SortOrderType
sortOrder :: Maybe SortOrderType
sortBy :: Maybe SharedResourceSortByType
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:sortOrder:ListSharedReportGroups' :: ListSharedReportGroups -> Maybe SortOrderType
$sel:sortBy:ListSharedReportGroups' :: ListSharedReportGroups -> Maybe SharedResourceSortByType
$sel:nextToken:ListSharedReportGroups' :: ListSharedReportGroups -> Maybe Text
$sel:maxResults:ListSharedReportGroups' :: ListSharedReportGroups -> Maybe Natural
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe SharedResourceSortByType
sortBy
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe SortOrderType
sortOrder
instance Prelude.NFData ListSharedReportGroups where
rnf :: ListSharedReportGroups -> ()
rnf ListSharedReportGroups' {Maybe Natural
Maybe Text
Maybe SharedResourceSortByType
Maybe SortOrderType
sortOrder :: Maybe SortOrderType
sortBy :: Maybe SharedResourceSortByType
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:sortOrder:ListSharedReportGroups' :: ListSharedReportGroups -> Maybe SortOrderType
$sel:sortBy:ListSharedReportGroups' :: ListSharedReportGroups -> Maybe SharedResourceSortByType
$sel:nextToken:ListSharedReportGroups' :: ListSharedReportGroups -> Maybe Text
$sel:maxResults:ListSharedReportGroups' :: ListSharedReportGroups -> Maybe Natural
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
seq :: forall a b. a -> b -> b
`Prelude.seq` 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 SharedResourceSortByType
sortBy
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe SortOrderType
sortOrder
instance Data.ToHeaders ListSharedReportGroups where
toHeaders :: ListSharedReportGroups -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"CodeBuild_20161006.ListSharedReportGroups" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToJSON ListSharedReportGroups where
toJSON :: ListSharedReportGroups -> Value
toJSON ListSharedReportGroups' {Maybe Natural
Maybe Text
Maybe SharedResourceSortByType
Maybe SortOrderType
sortOrder :: Maybe SortOrderType
sortBy :: Maybe SharedResourceSortByType
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:sortOrder:ListSharedReportGroups' :: ListSharedReportGroups -> Maybe SortOrderType
$sel:sortBy:ListSharedReportGroups' :: ListSharedReportGroups -> Maybe SharedResourceSortByType
$sel:nextToken:ListSharedReportGroups' :: ListSharedReportGroups -> Maybe Text
$sel:maxResults:ListSharedReportGroups' :: ListSharedReportGroups -> Maybe Natural
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"maxResults" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
(Key
"nextToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
(Key
"sortBy" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SharedResourceSortByType
sortBy,
(Key
"sortOrder" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SortOrderType
sortOrder
]
)
instance Data.ToPath ListSharedReportGroups where
toPath :: ListSharedReportGroups -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery ListSharedReportGroups where
toQuery :: ListSharedReportGroups -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data ListSharedReportGroupsResponse = ListSharedReportGroupsResponse'
{
ListSharedReportGroupsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListSharedReportGroupsResponse -> Maybe (NonEmpty Text)
reportGroups :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
ListSharedReportGroupsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListSharedReportGroupsResponse
-> ListSharedReportGroupsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSharedReportGroupsResponse
-> ListSharedReportGroupsResponse -> Bool
$c/= :: ListSharedReportGroupsResponse
-> ListSharedReportGroupsResponse -> Bool
== :: ListSharedReportGroupsResponse
-> ListSharedReportGroupsResponse -> Bool
$c== :: ListSharedReportGroupsResponse
-> ListSharedReportGroupsResponse -> Bool
Prelude.Eq, ReadPrec [ListSharedReportGroupsResponse]
ReadPrec ListSharedReportGroupsResponse
Int -> ReadS ListSharedReportGroupsResponse
ReadS [ListSharedReportGroupsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSharedReportGroupsResponse]
$creadListPrec :: ReadPrec [ListSharedReportGroupsResponse]
readPrec :: ReadPrec ListSharedReportGroupsResponse
$creadPrec :: ReadPrec ListSharedReportGroupsResponse
readList :: ReadS [ListSharedReportGroupsResponse]
$creadList :: ReadS [ListSharedReportGroupsResponse]
readsPrec :: Int -> ReadS ListSharedReportGroupsResponse
$creadsPrec :: Int -> ReadS ListSharedReportGroupsResponse
Prelude.Read, Int -> ListSharedReportGroupsResponse -> ShowS
[ListSharedReportGroupsResponse] -> ShowS
ListSharedReportGroupsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSharedReportGroupsResponse] -> ShowS
$cshowList :: [ListSharedReportGroupsResponse] -> ShowS
show :: ListSharedReportGroupsResponse -> String
$cshow :: ListSharedReportGroupsResponse -> String
showsPrec :: Int -> ListSharedReportGroupsResponse -> ShowS
$cshowsPrec :: Int -> ListSharedReportGroupsResponse -> ShowS
Prelude.Show, forall x.
Rep ListSharedReportGroupsResponse x
-> ListSharedReportGroupsResponse
forall x.
ListSharedReportGroupsResponse
-> Rep ListSharedReportGroupsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListSharedReportGroupsResponse x
-> ListSharedReportGroupsResponse
$cfrom :: forall x.
ListSharedReportGroupsResponse
-> Rep ListSharedReportGroupsResponse x
Prelude.Generic)
newListSharedReportGroupsResponse ::
Prelude.Int ->
ListSharedReportGroupsResponse
newListSharedReportGroupsResponse :: Int -> ListSharedReportGroupsResponse
newListSharedReportGroupsResponse Int
pHttpStatus_ =
ListSharedReportGroupsResponse'
{ $sel:nextToken:ListSharedReportGroupsResponse' :: Maybe Text
nextToken =
forall a. Maybe a
Prelude.Nothing,
$sel:reportGroups:ListSharedReportGroupsResponse' :: Maybe (NonEmpty Text)
reportGroups = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListSharedReportGroupsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listSharedReportGroupsResponse_nextToken :: Lens.Lens' ListSharedReportGroupsResponse (Prelude.Maybe Prelude.Text)
listSharedReportGroupsResponse_nextToken :: Lens' ListSharedReportGroupsResponse (Maybe Text)
listSharedReportGroupsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSharedReportGroupsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListSharedReportGroupsResponse' :: ListSharedReportGroupsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListSharedReportGroupsResponse
s@ListSharedReportGroupsResponse' {} Maybe Text
a -> ListSharedReportGroupsResponse
s {$sel:nextToken:ListSharedReportGroupsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListSharedReportGroupsResponse)
listSharedReportGroupsResponse_reportGroups :: Lens.Lens' ListSharedReportGroupsResponse (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
listSharedReportGroupsResponse_reportGroups :: Lens' ListSharedReportGroupsResponse (Maybe (NonEmpty Text))
listSharedReportGroupsResponse_reportGroups = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSharedReportGroupsResponse' {Maybe (NonEmpty Text)
reportGroups :: Maybe (NonEmpty Text)
$sel:reportGroups:ListSharedReportGroupsResponse' :: ListSharedReportGroupsResponse -> Maybe (NonEmpty Text)
reportGroups} -> Maybe (NonEmpty Text)
reportGroups) (\s :: ListSharedReportGroupsResponse
s@ListSharedReportGroupsResponse' {} Maybe (NonEmpty Text)
a -> ListSharedReportGroupsResponse
s {$sel:reportGroups:ListSharedReportGroupsResponse' :: Maybe (NonEmpty Text)
reportGroups = Maybe (NonEmpty Text)
a} :: ListSharedReportGroupsResponse) 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
listSharedReportGroupsResponse_httpStatus :: Lens.Lens' ListSharedReportGroupsResponse Prelude.Int
listSharedReportGroupsResponse_httpStatus :: Lens' ListSharedReportGroupsResponse Int
listSharedReportGroupsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSharedReportGroupsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListSharedReportGroupsResponse' :: ListSharedReportGroupsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListSharedReportGroupsResponse
s@ListSharedReportGroupsResponse' {} Int
a -> ListSharedReportGroupsResponse
s {$sel:httpStatus:ListSharedReportGroupsResponse' :: Int
httpStatus = Int
a} :: ListSharedReportGroupsResponse)
instance
Prelude.NFData
ListSharedReportGroupsResponse
where
rnf :: ListSharedReportGroupsResponse -> ()
rnf ListSharedReportGroupsResponse' {Int
Maybe (NonEmpty Text)
Maybe Text
httpStatus :: Int
reportGroups :: Maybe (NonEmpty Text)
nextToken :: Maybe Text
$sel:httpStatus:ListSharedReportGroupsResponse' :: ListSharedReportGroupsResponse -> Int
$sel:reportGroups:ListSharedReportGroupsResponse' :: ListSharedReportGroupsResponse -> Maybe (NonEmpty Text)
$sel:nextToken:ListSharedReportGroupsResponse' :: ListSharedReportGroupsResponse -> 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 (NonEmpty Text)
reportGroups
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus