{-# 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.Pricing.GetProducts
(
GetProducts (..),
newGetProducts,
getProducts_filters,
getProducts_formatVersion,
getProducts_maxResults,
getProducts_nextToken,
getProducts_serviceCode,
GetProductsResponse (..),
newGetProductsResponse,
getProductsResponse_formatVersion,
getProductsResponse_nextToken,
getProductsResponse_priceList,
getProductsResponse_httpStatus,
)
where
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 Amazonka.Pricing.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data GetProducts = GetProducts'
{
GetProducts -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
GetProducts -> Maybe Text
formatVersion :: Prelude.Maybe Prelude.Text,
GetProducts -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
GetProducts -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetProducts -> Text
serviceCode :: Prelude.Text
}
deriving (GetProducts -> GetProducts -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetProducts -> GetProducts -> Bool
$c/= :: GetProducts -> GetProducts -> Bool
== :: GetProducts -> GetProducts -> Bool
$c== :: GetProducts -> GetProducts -> Bool
Prelude.Eq, ReadPrec [GetProducts]
ReadPrec GetProducts
Int -> ReadS GetProducts
ReadS [GetProducts]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetProducts]
$creadListPrec :: ReadPrec [GetProducts]
readPrec :: ReadPrec GetProducts
$creadPrec :: ReadPrec GetProducts
readList :: ReadS [GetProducts]
$creadList :: ReadS [GetProducts]
readsPrec :: Int -> ReadS GetProducts
$creadsPrec :: Int -> ReadS GetProducts
Prelude.Read, Int -> GetProducts -> ShowS
[GetProducts] -> ShowS
GetProducts -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetProducts] -> ShowS
$cshowList :: [GetProducts] -> ShowS
show :: GetProducts -> String
$cshow :: GetProducts -> String
showsPrec :: Int -> GetProducts -> ShowS
$cshowsPrec :: Int -> GetProducts -> ShowS
Prelude.Show, forall x. Rep GetProducts x -> GetProducts
forall x. GetProducts -> Rep GetProducts x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetProducts x -> GetProducts
$cfrom :: forall x. GetProducts -> Rep GetProducts x
Prelude.Generic)
newGetProducts ::
Prelude.Text ->
GetProducts
newGetProducts :: Text -> GetProducts
newGetProducts Text
pServiceCode_ =
GetProducts'
{ $sel:filters:GetProducts' :: Maybe [Filter]
filters = forall a. Maybe a
Prelude.Nothing,
$sel:formatVersion:GetProducts' :: Maybe Text
formatVersion = forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:GetProducts' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:GetProducts' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:serviceCode:GetProducts' :: Text
serviceCode = Text
pServiceCode_
}
getProducts_filters :: Lens.Lens' GetProducts (Prelude.Maybe [Filter])
getProducts_filters :: Lens' GetProducts (Maybe [Filter])
getProducts_filters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProducts' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:GetProducts' :: GetProducts -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: GetProducts
s@GetProducts' {} Maybe [Filter]
a -> GetProducts
s {$sel:filters:GetProducts' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: GetProducts) 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
getProducts_formatVersion :: Lens.Lens' GetProducts (Prelude.Maybe Prelude.Text)
getProducts_formatVersion :: Lens' GetProducts (Maybe Text)
getProducts_formatVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProducts' {Maybe Text
formatVersion :: Maybe Text
$sel:formatVersion:GetProducts' :: GetProducts -> Maybe Text
formatVersion} -> Maybe Text
formatVersion) (\s :: GetProducts
s@GetProducts' {} Maybe Text
a -> GetProducts
s {$sel:formatVersion:GetProducts' :: Maybe Text
formatVersion = Maybe Text
a} :: GetProducts)
getProducts_maxResults :: Lens.Lens' GetProducts (Prelude.Maybe Prelude.Natural)
getProducts_maxResults :: Lens' GetProducts (Maybe Natural)
getProducts_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProducts' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:GetProducts' :: GetProducts -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: GetProducts
s@GetProducts' {} Maybe Natural
a -> GetProducts
s {$sel:maxResults:GetProducts' :: Maybe Natural
maxResults = Maybe Natural
a} :: GetProducts)
getProducts_nextToken :: Lens.Lens' GetProducts (Prelude.Maybe Prelude.Text)
getProducts_nextToken :: Lens' GetProducts (Maybe Text)
getProducts_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProducts' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetProducts' :: GetProducts -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetProducts
s@GetProducts' {} Maybe Text
a -> GetProducts
s {$sel:nextToken:GetProducts' :: Maybe Text
nextToken = Maybe Text
a} :: GetProducts)
getProducts_serviceCode :: Lens.Lens' GetProducts Prelude.Text
getProducts_serviceCode :: Lens' GetProducts Text
getProducts_serviceCode = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProducts' {Text
serviceCode :: Text
$sel:serviceCode:GetProducts' :: GetProducts -> Text
serviceCode} -> Text
serviceCode) (\s :: GetProducts
s@GetProducts' {} Text
a -> GetProducts
s {$sel:serviceCode:GetProducts' :: Text
serviceCode = Text
a} :: GetProducts)
instance Core.AWSPager GetProducts where
page :: GetProducts -> AWSResponse GetProducts -> Maybe GetProducts
page GetProducts
rq AWSResponse GetProducts
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetProducts
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' GetProductsResponse (Maybe Text)
getProductsResponse_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 GetProducts
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' GetProductsResponse (Maybe [Text])
getProductsResponse_priceList
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
| Bool
Prelude.otherwise =
forall a. a -> Maybe a
Prelude.Just
forall a b. (a -> b) -> a -> b
Prelude.$ GetProducts
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' GetProducts (Maybe Text)
getProducts_nextToken
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse GetProducts
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' GetProductsResponse (Maybe Text)
getProductsResponse_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 GetProducts where
type AWSResponse GetProducts = GetProductsResponse
request :: (Service -> Service) -> GetProducts -> Request GetProducts
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 GetProducts
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetProducts)))
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 Text -> Maybe [Text] -> Int -> GetProductsResponse
GetProductsResponse'
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
"FormatVersion")
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
"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
"PriceList" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
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 GetProducts where
hashWithSalt :: Int -> GetProducts -> Int
hashWithSalt Int
_salt GetProducts' {Maybe Natural
Maybe [Filter]
Maybe Text
Text
serviceCode :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
formatVersion :: Maybe Text
filters :: Maybe [Filter]
$sel:serviceCode:GetProducts' :: GetProducts -> Text
$sel:nextToken:GetProducts' :: GetProducts -> Maybe Text
$sel:maxResults:GetProducts' :: GetProducts -> Maybe Natural
$sel:formatVersion:GetProducts' :: GetProducts -> Maybe Text
$sel:filters:GetProducts' :: GetProducts -> Maybe [Filter]
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Filter]
filters
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
formatVersion
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` Text
serviceCode
instance Prelude.NFData GetProducts where
rnf :: GetProducts -> ()
rnf GetProducts' {Maybe Natural
Maybe [Filter]
Maybe Text
Text
serviceCode :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
formatVersion :: Maybe Text
filters :: Maybe [Filter]
$sel:serviceCode:GetProducts' :: GetProducts -> Text
$sel:nextToken:GetProducts' :: GetProducts -> Maybe Text
$sel:maxResults:GetProducts' :: GetProducts -> Maybe Natural
$sel:formatVersion:GetProducts' :: GetProducts -> Maybe Text
$sel:filters:GetProducts' :: GetProducts -> Maybe [Filter]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [Filter]
filters
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
formatVersion
seq :: forall a b. a -> b -> b
`Prelude.seq` 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 Text
serviceCode
instance Data.ToHeaders GetProducts where
toHeaders :: GetProducts -> 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
"AWSPriceListService.GetProducts" ::
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 GetProducts where
toJSON :: GetProducts -> Value
toJSON GetProducts' {Maybe Natural
Maybe [Filter]
Maybe Text
Text
serviceCode :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
formatVersion :: Maybe Text
filters :: Maybe [Filter]
$sel:serviceCode:GetProducts' :: GetProducts -> Text
$sel:nextToken:GetProducts' :: GetProducts -> Maybe Text
$sel:maxResults:GetProducts' :: GetProducts -> Maybe Natural
$sel:formatVersion:GetProducts' :: GetProducts -> Maybe Text
$sel:filters:GetProducts' :: GetProducts -> Maybe [Filter]
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"Filters" 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 [Filter]
filters,
(Key
"FormatVersion" 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
formatVersion,
(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,
forall a. a -> Maybe a
Prelude.Just (Key
"ServiceCode" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
serviceCode)
]
)
instance Data.ToPath GetProducts where
toPath :: GetProducts -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery GetProducts where
toQuery :: GetProducts -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data GetProductsResponse = GetProductsResponse'
{
GetProductsResponse -> Maybe Text
formatVersion :: Prelude.Maybe Prelude.Text,
GetProductsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetProductsResponse -> Maybe [Text]
priceList :: Prelude.Maybe [Prelude.Text],
GetProductsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetProductsResponse -> GetProductsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetProductsResponse -> GetProductsResponse -> Bool
$c/= :: GetProductsResponse -> GetProductsResponse -> Bool
== :: GetProductsResponse -> GetProductsResponse -> Bool
$c== :: GetProductsResponse -> GetProductsResponse -> Bool
Prelude.Eq, ReadPrec [GetProductsResponse]
ReadPrec GetProductsResponse
Int -> ReadS GetProductsResponse
ReadS [GetProductsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetProductsResponse]
$creadListPrec :: ReadPrec [GetProductsResponse]
readPrec :: ReadPrec GetProductsResponse
$creadPrec :: ReadPrec GetProductsResponse
readList :: ReadS [GetProductsResponse]
$creadList :: ReadS [GetProductsResponse]
readsPrec :: Int -> ReadS GetProductsResponse
$creadsPrec :: Int -> ReadS GetProductsResponse
Prelude.Read, Int -> GetProductsResponse -> ShowS
[GetProductsResponse] -> ShowS
GetProductsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetProductsResponse] -> ShowS
$cshowList :: [GetProductsResponse] -> ShowS
show :: GetProductsResponse -> String
$cshow :: GetProductsResponse -> String
showsPrec :: Int -> GetProductsResponse -> ShowS
$cshowsPrec :: Int -> GetProductsResponse -> ShowS
Prelude.Show, forall x. Rep GetProductsResponse x -> GetProductsResponse
forall x. GetProductsResponse -> Rep GetProductsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetProductsResponse x -> GetProductsResponse
$cfrom :: forall x. GetProductsResponse -> Rep GetProductsResponse x
Prelude.Generic)
newGetProductsResponse ::
Prelude.Int ->
GetProductsResponse
newGetProductsResponse :: Int -> GetProductsResponse
newGetProductsResponse Int
pHttpStatus_ =
GetProductsResponse'
{ $sel:formatVersion:GetProductsResponse' :: Maybe Text
formatVersion =
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:GetProductsResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:priceList:GetProductsResponse' :: Maybe [Text]
priceList = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetProductsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getProductsResponse_formatVersion :: Lens.Lens' GetProductsResponse (Prelude.Maybe Prelude.Text)
getProductsResponse_formatVersion :: Lens' GetProductsResponse (Maybe Text)
getProductsResponse_formatVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProductsResponse' {Maybe Text
formatVersion :: Maybe Text
$sel:formatVersion:GetProductsResponse' :: GetProductsResponse -> Maybe Text
formatVersion} -> Maybe Text
formatVersion) (\s :: GetProductsResponse
s@GetProductsResponse' {} Maybe Text
a -> GetProductsResponse
s {$sel:formatVersion:GetProductsResponse' :: Maybe Text
formatVersion = Maybe Text
a} :: GetProductsResponse)
getProductsResponse_nextToken :: Lens.Lens' GetProductsResponse (Prelude.Maybe Prelude.Text)
getProductsResponse_nextToken :: Lens' GetProductsResponse (Maybe Text)
getProductsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProductsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetProductsResponse' :: GetProductsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetProductsResponse
s@GetProductsResponse' {} Maybe Text
a -> GetProductsResponse
s {$sel:nextToken:GetProductsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetProductsResponse)
getProductsResponse_priceList :: Lens.Lens' GetProductsResponse (Prelude.Maybe [Prelude.Text])
getProductsResponse_priceList :: Lens' GetProductsResponse (Maybe [Text])
getProductsResponse_priceList = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProductsResponse' {Maybe [Text]
priceList :: Maybe [Text]
$sel:priceList:GetProductsResponse' :: GetProductsResponse -> Maybe [Text]
priceList} -> Maybe [Text]
priceList) (\s :: GetProductsResponse
s@GetProductsResponse' {} Maybe [Text]
a -> GetProductsResponse
s {$sel:priceList:GetProductsResponse' :: Maybe [Text]
priceList = Maybe [Text]
a} :: GetProductsResponse) 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
getProductsResponse_httpStatus :: Lens.Lens' GetProductsResponse Prelude.Int
getProductsResponse_httpStatus :: Lens' GetProductsResponse Int
getProductsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProductsResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetProductsResponse' :: GetProductsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetProductsResponse
s@GetProductsResponse' {} Int
a -> GetProductsResponse
s {$sel:httpStatus:GetProductsResponse' :: Int
httpStatus = Int
a} :: GetProductsResponse)
instance Prelude.NFData GetProductsResponse where
rnf :: GetProductsResponse -> ()
rnf GetProductsResponse' {Int
Maybe [Text]
Maybe Text
httpStatus :: Int
priceList :: Maybe [Text]
nextToken :: Maybe Text
formatVersion :: Maybe Text
$sel:httpStatus:GetProductsResponse' :: GetProductsResponse -> Int
$sel:priceList:GetProductsResponse' :: GetProductsResponse -> Maybe [Text]
$sel:nextToken:GetProductsResponse' :: GetProductsResponse -> Maybe Text
$sel:formatVersion:GetProductsResponse' :: GetProductsResponse -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
formatVersion
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 [Text]
priceList
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus