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