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