{-# 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.MacieV2.TestCustomDataIdentifier
(
TestCustomDataIdentifier (..),
newTestCustomDataIdentifier,
testCustomDataIdentifier_keywords,
testCustomDataIdentifier_ignoreWords,
testCustomDataIdentifier_maximumMatchDistance,
testCustomDataIdentifier_regex,
testCustomDataIdentifier_sampleText,
TestCustomDataIdentifierResponse (..),
newTestCustomDataIdentifierResponse,
testCustomDataIdentifierResponse_matchCount,
testCustomDataIdentifierResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MacieV2.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data TestCustomDataIdentifier = TestCustomDataIdentifier'
{
TestCustomDataIdentifier -> Maybe [Text]
keywords :: Prelude.Maybe [Prelude.Text],
TestCustomDataIdentifier -> Maybe [Text]
ignoreWords :: Prelude.Maybe [Prelude.Text],
TestCustomDataIdentifier -> Maybe Int
maximumMatchDistance :: Prelude.Maybe Prelude.Int,
TestCustomDataIdentifier -> Text
regex :: Prelude.Text,
TestCustomDataIdentifier -> Text
sampleText :: Prelude.Text
}
deriving (TestCustomDataIdentifier -> TestCustomDataIdentifier -> Bool
(TestCustomDataIdentifier -> TestCustomDataIdentifier -> Bool)
-> (TestCustomDataIdentifier -> TestCustomDataIdentifier -> Bool)
-> Eq TestCustomDataIdentifier
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TestCustomDataIdentifier -> TestCustomDataIdentifier -> Bool
$c/= :: TestCustomDataIdentifier -> TestCustomDataIdentifier -> Bool
== :: TestCustomDataIdentifier -> TestCustomDataIdentifier -> Bool
$c== :: TestCustomDataIdentifier -> TestCustomDataIdentifier -> Bool
Prelude.Eq, ReadPrec [TestCustomDataIdentifier]
ReadPrec TestCustomDataIdentifier
Int -> ReadS TestCustomDataIdentifier
ReadS [TestCustomDataIdentifier]
(Int -> ReadS TestCustomDataIdentifier)
-> ReadS [TestCustomDataIdentifier]
-> ReadPrec TestCustomDataIdentifier
-> ReadPrec [TestCustomDataIdentifier]
-> Read TestCustomDataIdentifier
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TestCustomDataIdentifier]
$creadListPrec :: ReadPrec [TestCustomDataIdentifier]
readPrec :: ReadPrec TestCustomDataIdentifier
$creadPrec :: ReadPrec TestCustomDataIdentifier
readList :: ReadS [TestCustomDataIdentifier]
$creadList :: ReadS [TestCustomDataIdentifier]
readsPrec :: Int -> ReadS TestCustomDataIdentifier
$creadsPrec :: Int -> ReadS TestCustomDataIdentifier
Prelude.Read, Int -> TestCustomDataIdentifier -> ShowS
[TestCustomDataIdentifier] -> ShowS
TestCustomDataIdentifier -> String
(Int -> TestCustomDataIdentifier -> ShowS)
-> (TestCustomDataIdentifier -> String)
-> ([TestCustomDataIdentifier] -> ShowS)
-> Show TestCustomDataIdentifier
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TestCustomDataIdentifier] -> ShowS
$cshowList :: [TestCustomDataIdentifier] -> ShowS
show :: TestCustomDataIdentifier -> String
$cshow :: TestCustomDataIdentifier -> String
showsPrec :: Int -> TestCustomDataIdentifier -> ShowS
$cshowsPrec :: Int -> TestCustomDataIdentifier -> ShowS
Prelude.Show, (forall x.
TestCustomDataIdentifier -> Rep TestCustomDataIdentifier x)
-> (forall x.
Rep TestCustomDataIdentifier x -> TestCustomDataIdentifier)
-> Generic TestCustomDataIdentifier
forall x.
Rep TestCustomDataIdentifier x -> TestCustomDataIdentifier
forall x.
TestCustomDataIdentifier -> Rep TestCustomDataIdentifier x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep TestCustomDataIdentifier x -> TestCustomDataIdentifier
$cfrom :: forall x.
TestCustomDataIdentifier -> Rep TestCustomDataIdentifier x
Prelude.Generic)
newTestCustomDataIdentifier ::
Prelude.Text ->
Prelude.Text ->
TestCustomDataIdentifier
newTestCustomDataIdentifier :: Text -> Text -> TestCustomDataIdentifier
newTestCustomDataIdentifier Text
pRegex_ Text
pSampleText_ =
TestCustomDataIdentifier' :: Maybe [Text]
-> Maybe [Text]
-> Maybe Int
-> Text
-> Text
-> TestCustomDataIdentifier
TestCustomDataIdentifier'
{ $sel:keywords:TestCustomDataIdentifier' :: Maybe [Text]
keywords =
Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:ignoreWords:TestCustomDataIdentifier' :: Maybe [Text]
ignoreWords = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:maximumMatchDistance:TestCustomDataIdentifier' :: Maybe Int
maximumMatchDistance = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:regex:TestCustomDataIdentifier' :: Text
regex = Text
pRegex_,
$sel:sampleText:TestCustomDataIdentifier' :: Text
sampleText = Text
pSampleText_
}
testCustomDataIdentifier_keywords :: Lens.Lens' TestCustomDataIdentifier (Prelude.Maybe [Prelude.Text])
testCustomDataIdentifier_keywords :: (Maybe [Text] -> f (Maybe [Text]))
-> TestCustomDataIdentifier -> f TestCustomDataIdentifier
testCustomDataIdentifier_keywords = (TestCustomDataIdentifier -> Maybe [Text])
-> (TestCustomDataIdentifier
-> Maybe [Text] -> TestCustomDataIdentifier)
-> Lens
TestCustomDataIdentifier
TestCustomDataIdentifier
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TestCustomDataIdentifier' {Maybe [Text]
keywords :: Maybe [Text]
$sel:keywords:TestCustomDataIdentifier' :: TestCustomDataIdentifier -> Maybe [Text]
keywords} -> Maybe [Text]
keywords) (\s :: TestCustomDataIdentifier
s@TestCustomDataIdentifier' {} Maybe [Text]
a -> TestCustomDataIdentifier
s {$sel:keywords:TestCustomDataIdentifier' :: Maybe [Text]
keywords = Maybe [Text]
a} :: TestCustomDataIdentifier) ((Maybe [Text] -> f (Maybe [Text]))
-> TestCustomDataIdentifier -> f TestCustomDataIdentifier)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> TestCustomDataIdentifier
-> f TestCustomDataIdentifier
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
testCustomDataIdentifier_ignoreWords :: Lens.Lens' TestCustomDataIdentifier (Prelude.Maybe [Prelude.Text])
testCustomDataIdentifier_ignoreWords :: (Maybe [Text] -> f (Maybe [Text]))
-> TestCustomDataIdentifier -> f TestCustomDataIdentifier
testCustomDataIdentifier_ignoreWords = (TestCustomDataIdentifier -> Maybe [Text])
-> (TestCustomDataIdentifier
-> Maybe [Text] -> TestCustomDataIdentifier)
-> Lens
TestCustomDataIdentifier
TestCustomDataIdentifier
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TestCustomDataIdentifier' {Maybe [Text]
ignoreWords :: Maybe [Text]
$sel:ignoreWords:TestCustomDataIdentifier' :: TestCustomDataIdentifier -> Maybe [Text]
ignoreWords} -> Maybe [Text]
ignoreWords) (\s :: TestCustomDataIdentifier
s@TestCustomDataIdentifier' {} Maybe [Text]
a -> TestCustomDataIdentifier
s {$sel:ignoreWords:TestCustomDataIdentifier' :: Maybe [Text]
ignoreWords = Maybe [Text]
a} :: TestCustomDataIdentifier) ((Maybe [Text] -> f (Maybe [Text]))
-> TestCustomDataIdentifier -> f TestCustomDataIdentifier)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> TestCustomDataIdentifier
-> f TestCustomDataIdentifier
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
testCustomDataIdentifier_maximumMatchDistance :: Lens.Lens' TestCustomDataIdentifier (Prelude.Maybe Prelude.Int)
testCustomDataIdentifier_maximumMatchDistance :: (Maybe Int -> f (Maybe Int))
-> TestCustomDataIdentifier -> f TestCustomDataIdentifier
testCustomDataIdentifier_maximumMatchDistance = (TestCustomDataIdentifier -> Maybe Int)
-> (TestCustomDataIdentifier
-> Maybe Int -> TestCustomDataIdentifier)
-> Lens
TestCustomDataIdentifier
TestCustomDataIdentifier
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TestCustomDataIdentifier' {Maybe Int
maximumMatchDistance :: Maybe Int
$sel:maximumMatchDistance:TestCustomDataIdentifier' :: TestCustomDataIdentifier -> Maybe Int
maximumMatchDistance} -> Maybe Int
maximumMatchDistance) (\s :: TestCustomDataIdentifier
s@TestCustomDataIdentifier' {} Maybe Int
a -> TestCustomDataIdentifier
s {$sel:maximumMatchDistance:TestCustomDataIdentifier' :: Maybe Int
maximumMatchDistance = Maybe Int
a} :: TestCustomDataIdentifier)
testCustomDataIdentifier_regex :: Lens.Lens' TestCustomDataIdentifier Prelude.Text
testCustomDataIdentifier_regex :: (Text -> f Text)
-> TestCustomDataIdentifier -> f TestCustomDataIdentifier
testCustomDataIdentifier_regex = (TestCustomDataIdentifier -> Text)
-> (TestCustomDataIdentifier -> Text -> TestCustomDataIdentifier)
-> Lens TestCustomDataIdentifier TestCustomDataIdentifier Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TestCustomDataIdentifier' {Text
regex :: Text
$sel:regex:TestCustomDataIdentifier' :: TestCustomDataIdentifier -> Text
regex} -> Text
regex) (\s :: TestCustomDataIdentifier
s@TestCustomDataIdentifier' {} Text
a -> TestCustomDataIdentifier
s {$sel:regex:TestCustomDataIdentifier' :: Text
regex = Text
a} :: TestCustomDataIdentifier)
testCustomDataIdentifier_sampleText :: Lens.Lens' TestCustomDataIdentifier Prelude.Text
testCustomDataIdentifier_sampleText :: (Text -> f Text)
-> TestCustomDataIdentifier -> f TestCustomDataIdentifier
testCustomDataIdentifier_sampleText = (TestCustomDataIdentifier -> Text)
-> (TestCustomDataIdentifier -> Text -> TestCustomDataIdentifier)
-> Lens TestCustomDataIdentifier TestCustomDataIdentifier Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TestCustomDataIdentifier' {Text
sampleText :: Text
$sel:sampleText:TestCustomDataIdentifier' :: TestCustomDataIdentifier -> Text
sampleText} -> Text
sampleText) (\s :: TestCustomDataIdentifier
s@TestCustomDataIdentifier' {} Text
a -> TestCustomDataIdentifier
s {$sel:sampleText:TestCustomDataIdentifier' :: Text
sampleText = Text
a} :: TestCustomDataIdentifier)
instance Core.AWSRequest TestCustomDataIdentifier where
type
AWSResponse TestCustomDataIdentifier =
TestCustomDataIdentifierResponse
request :: TestCustomDataIdentifier -> Request TestCustomDataIdentifier
request = Service
-> TestCustomDataIdentifier -> Request TestCustomDataIdentifier
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy TestCustomDataIdentifier
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse TestCustomDataIdentifier)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse TestCustomDataIdentifier))
-> Logger
-> Service
-> Proxy TestCustomDataIdentifier
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse TestCustomDataIdentifier)))
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 Int -> Int -> TestCustomDataIdentifierResponse
TestCustomDataIdentifierResponse'
(Maybe Int -> Int -> TestCustomDataIdentifierResponse)
-> Either String (Maybe Int)
-> Either String (Int -> TestCustomDataIdentifierResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Int)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"matchCount")
Either String (Int -> TestCustomDataIdentifierResponse)
-> Either String Int
-> Either String TestCustomDataIdentifierResponse
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 TestCustomDataIdentifier
instance Prelude.NFData TestCustomDataIdentifier
instance Core.ToHeaders TestCustomDataIdentifier where
toHeaders :: TestCustomDataIdentifier -> ResponseHeaders
toHeaders =
ResponseHeaders -> TestCustomDataIdentifier -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ 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 TestCustomDataIdentifier where
toJSON :: TestCustomDataIdentifier -> Value
toJSON TestCustomDataIdentifier' {Maybe Int
Maybe [Text]
Text
sampleText :: Text
regex :: Text
maximumMatchDistance :: Maybe Int
ignoreWords :: Maybe [Text]
keywords :: Maybe [Text]
$sel:sampleText:TestCustomDataIdentifier' :: TestCustomDataIdentifier -> Text
$sel:regex:TestCustomDataIdentifier' :: TestCustomDataIdentifier -> Text
$sel:maximumMatchDistance:TestCustomDataIdentifier' :: TestCustomDataIdentifier -> Maybe Int
$sel:ignoreWords:TestCustomDataIdentifier' :: TestCustomDataIdentifier -> Maybe [Text]
$sel:keywords:TestCustomDataIdentifier' :: TestCustomDataIdentifier -> Maybe [Text]
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"keywords" 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]
keywords,
(Text
"ignoreWords" 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]
ignoreWords,
(Text
"maximumMatchDistance" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
maximumMatchDistance,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"regex" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
regex),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"sampleText" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
sampleText)
]
)
instance Core.ToPath TestCustomDataIdentifier where
toPath :: TestCustomDataIdentifier -> ByteString
toPath =
ByteString -> TestCustomDataIdentifier -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/custom-data-identifiers/test"
instance Core.ToQuery TestCustomDataIdentifier where
toQuery :: TestCustomDataIdentifier -> QueryString
toQuery = QueryString -> TestCustomDataIdentifier -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data TestCustomDataIdentifierResponse = TestCustomDataIdentifierResponse'
{
TestCustomDataIdentifierResponse -> Maybe Int
matchCount :: Prelude.Maybe Prelude.Int,
TestCustomDataIdentifierResponse -> Int
httpStatus :: Prelude.Int
}
deriving (TestCustomDataIdentifierResponse
-> TestCustomDataIdentifierResponse -> Bool
(TestCustomDataIdentifierResponse
-> TestCustomDataIdentifierResponse -> Bool)
-> (TestCustomDataIdentifierResponse
-> TestCustomDataIdentifierResponse -> Bool)
-> Eq TestCustomDataIdentifierResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TestCustomDataIdentifierResponse
-> TestCustomDataIdentifierResponse -> Bool
$c/= :: TestCustomDataIdentifierResponse
-> TestCustomDataIdentifierResponse -> Bool
== :: TestCustomDataIdentifierResponse
-> TestCustomDataIdentifierResponse -> Bool
$c== :: TestCustomDataIdentifierResponse
-> TestCustomDataIdentifierResponse -> Bool
Prelude.Eq, ReadPrec [TestCustomDataIdentifierResponse]
ReadPrec TestCustomDataIdentifierResponse
Int -> ReadS TestCustomDataIdentifierResponse
ReadS [TestCustomDataIdentifierResponse]
(Int -> ReadS TestCustomDataIdentifierResponse)
-> ReadS [TestCustomDataIdentifierResponse]
-> ReadPrec TestCustomDataIdentifierResponse
-> ReadPrec [TestCustomDataIdentifierResponse]
-> Read TestCustomDataIdentifierResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TestCustomDataIdentifierResponse]
$creadListPrec :: ReadPrec [TestCustomDataIdentifierResponse]
readPrec :: ReadPrec TestCustomDataIdentifierResponse
$creadPrec :: ReadPrec TestCustomDataIdentifierResponse
readList :: ReadS [TestCustomDataIdentifierResponse]
$creadList :: ReadS [TestCustomDataIdentifierResponse]
readsPrec :: Int -> ReadS TestCustomDataIdentifierResponse
$creadsPrec :: Int -> ReadS TestCustomDataIdentifierResponse
Prelude.Read, Int -> TestCustomDataIdentifierResponse -> ShowS
[TestCustomDataIdentifierResponse] -> ShowS
TestCustomDataIdentifierResponse -> String
(Int -> TestCustomDataIdentifierResponse -> ShowS)
-> (TestCustomDataIdentifierResponse -> String)
-> ([TestCustomDataIdentifierResponse] -> ShowS)
-> Show TestCustomDataIdentifierResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TestCustomDataIdentifierResponse] -> ShowS
$cshowList :: [TestCustomDataIdentifierResponse] -> ShowS
show :: TestCustomDataIdentifierResponse -> String
$cshow :: TestCustomDataIdentifierResponse -> String
showsPrec :: Int -> TestCustomDataIdentifierResponse -> ShowS
$cshowsPrec :: Int -> TestCustomDataIdentifierResponse -> ShowS
Prelude.Show, (forall x.
TestCustomDataIdentifierResponse
-> Rep TestCustomDataIdentifierResponse x)
-> (forall x.
Rep TestCustomDataIdentifierResponse x
-> TestCustomDataIdentifierResponse)
-> Generic TestCustomDataIdentifierResponse
forall x.
Rep TestCustomDataIdentifierResponse x
-> TestCustomDataIdentifierResponse
forall x.
TestCustomDataIdentifierResponse
-> Rep TestCustomDataIdentifierResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep TestCustomDataIdentifierResponse x
-> TestCustomDataIdentifierResponse
$cfrom :: forall x.
TestCustomDataIdentifierResponse
-> Rep TestCustomDataIdentifierResponse x
Prelude.Generic)
newTestCustomDataIdentifierResponse ::
Prelude.Int ->
TestCustomDataIdentifierResponse
newTestCustomDataIdentifierResponse :: Int -> TestCustomDataIdentifierResponse
newTestCustomDataIdentifierResponse Int
pHttpStatus_ =
TestCustomDataIdentifierResponse' :: Maybe Int -> Int -> TestCustomDataIdentifierResponse
TestCustomDataIdentifierResponse'
{ $sel:matchCount:TestCustomDataIdentifierResponse' :: Maybe Int
matchCount =
Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:TestCustomDataIdentifierResponse' :: Int
httpStatus = Int
pHttpStatus_
}
testCustomDataIdentifierResponse_matchCount :: Lens.Lens' TestCustomDataIdentifierResponse (Prelude.Maybe Prelude.Int)
testCustomDataIdentifierResponse_matchCount :: (Maybe Int -> f (Maybe Int))
-> TestCustomDataIdentifierResponse
-> f TestCustomDataIdentifierResponse
testCustomDataIdentifierResponse_matchCount = (TestCustomDataIdentifierResponse -> Maybe Int)
-> (TestCustomDataIdentifierResponse
-> Maybe Int -> TestCustomDataIdentifierResponse)
-> Lens
TestCustomDataIdentifierResponse
TestCustomDataIdentifierResponse
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TestCustomDataIdentifierResponse' {Maybe Int
matchCount :: Maybe Int
$sel:matchCount:TestCustomDataIdentifierResponse' :: TestCustomDataIdentifierResponse -> Maybe Int
matchCount} -> Maybe Int
matchCount) (\s :: TestCustomDataIdentifierResponse
s@TestCustomDataIdentifierResponse' {} Maybe Int
a -> TestCustomDataIdentifierResponse
s {$sel:matchCount:TestCustomDataIdentifierResponse' :: Maybe Int
matchCount = Maybe Int
a} :: TestCustomDataIdentifierResponse)
testCustomDataIdentifierResponse_httpStatus :: Lens.Lens' TestCustomDataIdentifierResponse Prelude.Int
testCustomDataIdentifierResponse_httpStatus :: (Int -> f Int)
-> TestCustomDataIdentifierResponse
-> f TestCustomDataIdentifierResponse
testCustomDataIdentifierResponse_httpStatus = (TestCustomDataIdentifierResponse -> Int)
-> (TestCustomDataIdentifierResponse
-> Int -> TestCustomDataIdentifierResponse)
-> Lens
TestCustomDataIdentifierResponse
TestCustomDataIdentifierResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TestCustomDataIdentifierResponse' {Int
httpStatus :: Int
$sel:httpStatus:TestCustomDataIdentifierResponse' :: TestCustomDataIdentifierResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: TestCustomDataIdentifierResponse
s@TestCustomDataIdentifierResponse' {} Int
a -> TestCustomDataIdentifierResponse
s {$sel:httpStatus:TestCustomDataIdentifierResponse' :: Int
httpStatus = Int
a} :: TestCustomDataIdentifierResponse)
instance
Prelude.NFData
TestCustomDataIdentifierResponse