{-# 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.Glue.GetClassifiers
(
GetClassifiers (..),
newGetClassifiers,
getClassifiers_nextToken,
getClassifiers_maxResults,
GetClassifiersResponse (..),
newGetClassifiersResponse,
getClassifiersResponse_nextToken,
getClassifiersResponse_classifiers,
getClassifiersResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.Glue.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data GetClassifiers = GetClassifiers'
{
GetClassifiers -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetClassifiers -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (GetClassifiers -> GetClassifiers -> Bool
(GetClassifiers -> GetClassifiers -> Bool)
-> (GetClassifiers -> GetClassifiers -> Bool) -> Eq GetClassifiers
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetClassifiers -> GetClassifiers -> Bool
$c/= :: GetClassifiers -> GetClassifiers -> Bool
== :: GetClassifiers -> GetClassifiers -> Bool
$c== :: GetClassifiers -> GetClassifiers -> Bool
Prelude.Eq, ReadPrec [GetClassifiers]
ReadPrec GetClassifiers
Int -> ReadS GetClassifiers
ReadS [GetClassifiers]
(Int -> ReadS GetClassifiers)
-> ReadS [GetClassifiers]
-> ReadPrec GetClassifiers
-> ReadPrec [GetClassifiers]
-> Read GetClassifiers
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetClassifiers]
$creadListPrec :: ReadPrec [GetClassifiers]
readPrec :: ReadPrec GetClassifiers
$creadPrec :: ReadPrec GetClassifiers
readList :: ReadS [GetClassifiers]
$creadList :: ReadS [GetClassifiers]
readsPrec :: Int -> ReadS GetClassifiers
$creadsPrec :: Int -> ReadS GetClassifiers
Prelude.Read, Int -> GetClassifiers -> ShowS
[GetClassifiers] -> ShowS
GetClassifiers -> String
(Int -> GetClassifiers -> ShowS)
-> (GetClassifiers -> String)
-> ([GetClassifiers] -> ShowS)
-> Show GetClassifiers
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetClassifiers] -> ShowS
$cshowList :: [GetClassifiers] -> ShowS
show :: GetClassifiers -> String
$cshow :: GetClassifiers -> String
showsPrec :: Int -> GetClassifiers -> ShowS
$cshowsPrec :: Int -> GetClassifiers -> ShowS
Prelude.Show, (forall x. GetClassifiers -> Rep GetClassifiers x)
-> (forall x. Rep GetClassifiers x -> GetClassifiers)
-> Generic GetClassifiers
forall x. Rep GetClassifiers x -> GetClassifiers
forall x. GetClassifiers -> Rep GetClassifiers x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetClassifiers x -> GetClassifiers
$cfrom :: forall x. GetClassifiers -> Rep GetClassifiers x
Prelude.Generic)
newGetClassifiers ::
GetClassifiers
newGetClassifiers :: GetClassifiers
newGetClassifiers =
GetClassifiers' :: Maybe Text -> Maybe Natural -> GetClassifiers
GetClassifiers'
{ $sel:nextToken:GetClassifiers' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:GetClassifiers' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
getClassifiers_nextToken :: Lens.Lens' GetClassifiers (Prelude.Maybe Prelude.Text)
getClassifiers_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetClassifiers -> f GetClassifiers
getClassifiers_nextToken = (GetClassifiers -> Maybe Text)
-> (GetClassifiers -> Maybe Text -> GetClassifiers)
-> Lens GetClassifiers GetClassifiers (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetClassifiers' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetClassifiers' :: GetClassifiers -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetClassifiers
s@GetClassifiers' {} Maybe Text
a -> GetClassifiers
s {$sel:nextToken:GetClassifiers' :: Maybe Text
nextToken = Maybe Text
a} :: GetClassifiers)
getClassifiers_maxResults :: Lens.Lens' GetClassifiers (Prelude.Maybe Prelude.Natural)
getClassifiers_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> GetClassifiers -> f GetClassifiers
getClassifiers_maxResults = (GetClassifiers -> Maybe Natural)
-> (GetClassifiers -> Maybe Natural -> GetClassifiers)
-> Lens
GetClassifiers GetClassifiers (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetClassifiers' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:GetClassifiers' :: GetClassifiers -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: GetClassifiers
s@GetClassifiers' {} Maybe Natural
a -> GetClassifiers
s {$sel:maxResults:GetClassifiers' :: Maybe Natural
maxResults = Maybe Natural
a} :: GetClassifiers)
instance Core.AWSPager GetClassifiers where
page :: GetClassifiers
-> AWSResponse GetClassifiers -> Maybe GetClassifiers
page GetClassifiers
rq AWSResponse GetClassifiers
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetClassifiers
GetClassifiersResponse
rs
GetClassifiersResponse
-> Getting (First Text) GetClassifiersResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetClassifiersResponse
-> Const (First Text) GetClassifiersResponse
Lens' GetClassifiersResponse (Maybe Text)
getClassifiersResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> GetClassifiersResponse
-> Const (First Text) GetClassifiersResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) GetClassifiersResponse 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 GetClassifiers
forall a. Maybe a
Prelude.Nothing
| Maybe [Classifier] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetClassifiers
GetClassifiersResponse
rs
GetClassifiersResponse
-> Getting (First [Classifier]) GetClassifiersResponse [Classifier]
-> Maybe [Classifier]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Classifier]
-> Const (First [Classifier]) (Maybe [Classifier]))
-> GetClassifiersResponse
-> Const (First [Classifier]) GetClassifiersResponse
Lens' GetClassifiersResponse (Maybe [Classifier])
getClassifiersResponse_classifiers
((Maybe [Classifier]
-> Const (First [Classifier]) (Maybe [Classifier]))
-> GetClassifiersResponse
-> Const (First [Classifier]) GetClassifiersResponse)
-> (([Classifier] -> Const (First [Classifier]) [Classifier])
-> Maybe [Classifier]
-> Const (First [Classifier]) (Maybe [Classifier]))
-> Getting (First [Classifier]) GetClassifiersResponse [Classifier]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Classifier] -> Const (First [Classifier]) [Classifier])
-> Maybe [Classifier]
-> Const (First [Classifier]) (Maybe [Classifier])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe GetClassifiers
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
GetClassifiers -> Maybe GetClassifiers
forall a. a -> Maybe a
Prelude.Just (GetClassifiers -> Maybe GetClassifiers)
-> GetClassifiers -> Maybe GetClassifiers
forall a b. (a -> b) -> a -> b
Prelude.$
GetClassifiers
rq
GetClassifiers
-> (GetClassifiers -> GetClassifiers) -> GetClassifiers
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> GetClassifiers -> Identity GetClassifiers
Lens GetClassifiers GetClassifiers (Maybe Text) (Maybe Text)
getClassifiers_nextToken
((Maybe Text -> Identity (Maybe Text))
-> GetClassifiers -> Identity GetClassifiers)
-> Maybe Text -> GetClassifiers -> GetClassifiers
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse GetClassifiers
GetClassifiersResponse
rs
GetClassifiersResponse
-> Getting (First Text) GetClassifiersResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetClassifiersResponse
-> Const (First Text) GetClassifiersResponse
Lens' GetClassifiersResponse (Maybe Text)
getClassifiersResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> GetClassifiersResponse
-> Const (First Text) GetClassifiersResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) GetClassifiersResponse 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 GetClassifiers where
type
AWSResponse GetClassifiers =
GetClassifiersResponse
request :: GetClassifiers -> Request GetClassifiers
request = Service -> GetClassifiers -> Request GetClassifiers
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetClassifiers
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetClassifiers)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetClassifiers))
-> Logger
-> Service
-> Proxy GetClassifiers
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetClassifiers)))
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 Text -> Maybe [Classifier] -> Int -> GetClassifiersResponse
GetClassifiersResponse'
(Maybe Text -> Maybe [Classifier] -> Int -> GetClassifiersResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe [Classifier] -> Int -> GetClassifiersResponse)
forall (f :: * -> *) a b. Functor 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 (Maybe [Classifier] -> Int -> GetClassifiersResponse)
-> Either String (Maybe [Classifier])
-> Either String (Int -> GetClassifiersResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Classifier]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Classifiers" Either String (Maybe (Maybe [Classifier]))
-> Maybe [Classifier] -> Either String (Maybe [Classifier])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Classifier]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> GetClassifiersResponse)
-> Either String Int -> Either String GetClassifiersResponse
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 GetClassifiers
instance Prelude.NFData GetClassifiers
instance Core.ToHeaders GetClassifiers where
toHeaders :: GetClassifiers -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetClassifiers -> 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
"AWSGlue.GetClassifiers" :: 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 GetClassifiers where
toJSON :: GetClassifiers -> Value
toJSON GetClassifiers' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:maxResults:GetClassifiers' :: GetClassifiers -> Maybe Natural
$sel:nextToken:GetClassifiers' :: GetClassifiers -> 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
"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 GetClassifiers where
toPath :: GetClassifiers -> ByteString
toPath = ByteString -> GetClassifiers -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery GetClassifiers where
toQuery :: GetClassifiers -> QueryString
toQuery = QueryString -> GetClassifiers -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetClassifiersResponse = GetClassifiersResponse'
{
GetClassifiersResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetClassifiersResponse -> Maybe [Classifier]
classifiers :: Prelude.Maybe [Classifier],
GetClassifiersResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetClassifiersResponse -> GetClassifiersResponse -> Bool
(GetClassifiersResponse -> GetClassifiersResponse -> Bool)
-> (GetClassifiersResponse -> GetClassifiersResponse -> Bool)
-> Eq GetClassifiersResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetClassifiersResponse -> GetClassifiersResponse -> Bool
$c/= :: GetClassifiersResponse -> GetClassifiersResponse -> Bool
== :: GetClassifiersResponse -> GetClassifiersResponse -> Bool
$c== :: GetClassifiersResponse -> GetClassifiersResponse -> Bool
Prelude.Eq, ReadPrec [GetClassifiersResponse]
ReadPrec GetClassifiersResponse
Int -> ReadS GetClassifiersResponse
ReadS [GetClassifiersResponse]
(Int -> ReadS GetClassifiersResponse)
-> ReadS [GetClassifiersResponse]
-> ReadPrec GetClassifiersResponse
-> ReadPrec [GetClassifiersResponse]
-> Read GetClassifiersResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetClassifiersResponse]
$creadListPrec :: ReadPrec [GetClassifiersResponse]
readPrec :: ReadPrec GetClassifiersResponse
$creadPrec :: ReadPrec GetClassifiersResponse
readList :: ReadS [GetClassifiersResponse]
$creadList :: ReadS [GetClassifiersResponse]
readsPrec :: Int -> ReadS GetClassifiersResponse
$creadsPrec :: Int -> ReadS GetClassifiersResponse
Prelude.Read, Int -> GetClassifiersResponse -> ShowS
[GetClassifiersResponse] -> ShowS
GetClassifiersResponse -> String
(Int -> GetClassifiersResponse -> ShowS)
-> (GetClassifiersResponse -> String)
-> ([GetClassifiersResponse] -> ShowS)
-> Show GetClassifiersResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetClassifiersResponse] -> ShowS
$cshowList :: [GetClassifiersResponse] -> ShowS
show :: GetClassifiersResponse -> String
$cshow :: GetClassifiersResponse -> String
showsPrec :: Int -> GetClassifiersResponse -> ShowS
$cshowsPrec :: Int -> GetClassifiersResponse -> ShowS
Prelude.Show, (forall x. GetClassifiersResponse -> Rep GetClassifiersResponse x)
-> (forall x.
Rep GetClassifiersResponse x -> GetClassifiersResponse)
-> Generic GetClassifiersResponse
forall x. Rep GetClassifiersResponse x -> GetClassifiersResponse
forall x. GetClassifiersResponse -> Rep GetClassifiersResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetClassifiersResponse x -> GetClassifiersResponse
$cfrom :: forall x. GetClassifiersResponse -> Rep GetClassifiersResponse x
Prelude.Generic)
newGetClassifiersResponse ::
Prelude.Int ->
GetClassifiersResponse
newGetClassifiersResponse :: Int -> GetClassifiersResponse
newGetClassifiersResponse Int
pHttpStatus_ =
GetClassifiersResponse' :: Maybe Text -> Maybe [Classifier] -> Int -> GetClassifiersResponse
GetClassifiersResponse'
{ $sel:nextToken:GetClassifiersResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:classifiers:GetClassifiersResponse' :: Maybe [Classifier]
classifiers = Maybe [Classifier]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetClassifiersResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getClassifiersResponse_nextToken :: Lens.Lens' GetClassifiersResponse (Prelude.Maybe Prelude.Text)
getClassifiersResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetClassifiersResponse -> f GetClassifiersResponse
getClassifiersResponse_nextToken = (GetClassifiersResponse -> Maybe Text)
-> (GetClassifiersResponse -> Maybe Text -> GetClassifiersResponse)
-> Lens' GetClassifiersResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetClassifiersResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetClassifiersResponse' :: GetClassifiersResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetClassifiersResponse
s@GetClassifiersResponse' {} Maybe Text
a -> GetClassifiersResponse
s {$sel:nextToken:GetClassifiersResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetClassifiersResponse)
getClassifiersResponse_classifiers :: Lens.Lens' GetClassifiersResponse (Prelude.Maybe [Classifier])
getClassifiersResponse_classifiers :: (Maybe [Classifier] -> f (Maybe [Classifier]))
-> GetClassifiersResponse -> f GetClassifiersResponse
getClassifiersResponse_classifiers = (GetClassifiersResponse -> Maybe [Classifier])
-> (GetClassifiersResponse
-> Maybe [Classifier] -> GetClassifiersResponse)
-> Lens' GetClassifiersResponse (Maybe [Classifier])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetClassifiersResponse' {Maybe [Classifier]
classifiers :: Maybe [Classifier]
$sel:classifiers:GetClassifiersResponse' :: GetClassifiersResponse -> Maybe [Classifier]
classifiers} -> Maybe [Classifier]
classifiers) (\s :: GetClassifiersResponse
s@GetClassifiersResponse' {} Maybe [Classifier]
a -> GetClassifiersResponse
s {$sel:classifiers:GetClassifiersResponse' :: Maybe [Classifier]
classifiers = Maybe [Classifier]
a} :: GetClassifiersResponse) ((Maybe [Classifier] -> f (Maybe [Classifier]))
-> GetClassifiersResponse -> f GetClassifiersResponse)
-> ((Maybe [Classifier] -> f (Maybe [Classifier]))
-> Maybe [Classifier] -> f (Maybe [Classifier]))
-> (Maybe [Classifier] -> f (Maybe [Classifier]))
-> GetClassifiersResponse
-> f GetClassifiersResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Classifier] [Classifier] [Classifier] [Classifier]
-> Iso
(Maybe [Classifier])
(Maybe [Classifier])
(Maybe [Classifier])
(Maybe [Classifier])
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 [Classifier] [Classifier] [Classifier] [Classifier]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getClassifiersResponse_httpStatus :: Lens.Lens' GetClassifiersResponse Prelude.Int
getClassifiersResponse_httpStatus :: (Int -> f Int)
-> GetClassifiersResponse -> f GetClassifiersResponse
getClassifiersResponse_httpStatus = (GetClassifiersResponse -> Int)
-> (GetClassifiersResponse -> Int -> GetClassifiersResponse)
-> Lens GetClassifiersResponse GetClassifiersResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetClassifiersResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetClassifiersResponse' :: GetClassifiersResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetClassifiersResponse
s@GetClassifiersResponse' {} Int
a -> GetClassifiersResponse
s {$sel:httpStatus:GetClassifiersResponse' :: Int
httpStatus = Int
a} :: GetClassifiersResponse)
instance Prelude.NFData GetClassifiersResponse