{-# 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.MediaPackageVOD.ListPackagingConfigurations
(
ListPackagingConfigurations (..),
newListPackagingConfigurations,
listPackagingConfigurations_packagingGroupId,
listPackagingConfigurations_nextToken,
listPackagingConfigurations_maxResults,
ListPackagingConfigurationsResponse (..),
newListPackagingConfigurationsResponse,
listPackagingConfigurationsResponse_packagingConfigurations,
listPackagingConfigurationsResponse_nextToken,
listPackagingConfigurationsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MediaPackageVOD.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListPackagingConfigurations = ListPackagingConfigurations'
{
ListPackagingConfigurations -> Maybe Text
packagingGroupId :: Prelude.Maybe Prelude.Text,
ListPackagingConfigurations -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListPackagingConfigurations -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListPackagingConfigurations -> ListPackagingConfigurations -> Bool
(ListPackagingConfigurations
-> ListPackagingConfigurations -> Bool)
-> (ListPackagingConfigurations
-> ListPackagingConfigurations -> Bool)
-> Eq ListPackagingConfigurations
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListPackagingConfigurations -> ListPackagingConfigurations -> Bool
$c/= :: ListPackagingConfigurations -> ListPackagingConfigurations -> Bool
== :: ListPackagingConfigurations -> ListPackagingConfigurations -> Bool
$c== :: ListPackagingConfigurations -> ListPackagingConfigurations -> Bool
Prelude.Eq, ReadPrec [ListPackagingConfigurations]
ReadPrec ListPackagingConfigurations
Int -> ReadS ListPackagingConfigurations
ReadS [ListPackagingConfigurations]
(Int -> ReadS ListPackagingConfigurations)
-> ReadS [ListPackagingConfigurations]
-> ReadPrec ListPackagingConfigurations
-> ReadPrec [ListPackagingConfigurations]
-> Read ListPackagingConfigurations
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListPackagingConfigurations]
$creadListPrec :: ReadPrec [ListPackagingConfigurations]
readPrec :: ReadPrec ListPackagingConfigurations
$creadPrec :: ReadPrec ListPackagingConfigurations
readList :: ReadS [ListPackagingConfigurations]
$creadList :: ReadS [ListPackagingConfigurations]
readsPrec :: Int -> ReadS ListPackagingConfigurations
$creadsPrec :: Int -> ReadS ListPackagingConfigurations
Prelude.Read, Int -> ListPackagingConfigurations -> ShowS
[ListPackagingConfigurations] -> ShowS
ListPackagingConfigurations -> String
(Int -> ListPackagingConfigurations -> ShowS)
-> (ListPackagingConfigurations -> String)
-> ([ListPackagingConfigurations] -> ShowS)
-> Show ListPackagingConfigurations
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListPackagingConfigurations] -> ShowS
$cshowList :: [ListPackagingConfigurations] -> ShowS
show :: ListPackagingConfigurations -> String
$cshow :: ListPackagingConfigurations -> String
showsPrec :: Int -> ListPackagingConfigurations -> ShowS
$cshowsPrec :: Int -> ListPackagingConfigurations -> ShowS
Prelude.Show, (forall x.
ListPackagingConfigurations -> Rep ListPackagingConfigurations x)
-> (forall x.
Rep ListPackagingConfigurations x -> ListPackagingConfigurations)
-> Generic ListPackagingConfigurations
forall x.
Rep ListPackagingConfigurations x -> ListPackagingConfigurations
forall x.
ListPackagingConfigurations -> Rep ListPackagingConfigurations x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListPackagingConfigurations x -> ListPackagingConfigurations
$cfrom :: forall x.
ListPackagingConfigurations -> Rep ListPackagingConfigurations x
Prelude.Generic)
newListPackagingConfigurations ::
ListPackagingConfigurations
newListPackagingConfigurations :: ListPackagingConfigurations
newListPackagingConfigurations =
ListPackagingConfigurations' :: Maybe Text
-> Maybe Text -> Maybe Natural -> ListPackagingConfigurations
ListPackagingConfigurations'
{ $sel:packagingGroupId:ListPackagingConfigurations' :: Maybe Text
packagingGroupId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListPackagingConfigurations' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListPackagingConfigurations' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listPackagingConfigurations_packagingGroupId :: Lens.Lens' ListPackagingConfigurations (Prelude.Maybe Prelude.Text)
listPackagingConfigurations_packagingGroupId :: (Maybe Text -> f (Maybe Text))
-> ListPackagingConfigurations -> f ListPackagingConfigurations
listPackagingConfigurations_packagingGroupId = (ListPackagingConfigurations -> Maybe Text)
-> (ListPackagingConfigurations
-> Maybe Text -> ListPackagingConfigurations)
-> Lens
ListPackagingConfigurations
ListPackagingConfigurations
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPackagingConfigurations' {Maybe Text
packagingGroupId :: Maybe Text
$sel:packagingGroupId:ListPackagingConfigurations' :: ListPackagingConfigurations -> Maybe Text
packagingGroupId} -> Maybe Text
packagingGroupId) (\s :: ListPackagingConfigurations
s@ListPackagingConfigurations' {} Maybe Text
a -> ListPackagingConfigurations
s {$sel:packagingGroupId:ListPackagingConfigurations' :: Maybe Text
packagingGroupId = Maybe Text
a} :: ListPackagingConfigurations)
listPackagingConfigurations_nextToken :: Lens.Lens' ListPackagingConfigurations (Prelude.Maybe Prelude.Text)
listPackagingConfigurations_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListPackagingConfigurations -> f ListPackagingConfigurations
listPackagingConfigurations_nextToken = (ListPackagingConfigurations -> Maybe Text)
-> (ListPackagingConfigurations
-> Maybe Text -> ListPackagingConfigurations)
-> Lens
ListPackagingConfigurations
ListPackagingConfigurations
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPackagingConfigurations' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListPackagingConfigurations' :: ListPackagingConfigurations -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListPackagingConfigurations
s@ListPackagingConfigurations' {} Maybe Text
a -> ListPackagingConfigurations
s {$sel:nextToken:ListPackagingConfigurations' :: Maybe Text
nextToken = Maybe Text
a} :: ListPackagingConfigurations)
listPackagingConfigurations_maxResults :: Lens.Lens' ListPackagingConfigurations (Prelude.Maybe Prelude.Natural)
listPackagingConfigurations_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListPackagingConfigurations -> f ListPackagingConfigurations
listPackagingConfigurations_maxResults = (ListPackagingConfigurations -> Maybe Natural)
-> (ListPackagingConfigurations
-> Maybe Natural -> ListPackagingConfigurations)
-> Lens
ListPackagingConfigurations
ListPackagingConfigurations
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPackagingConfigurations' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListPackagingConfigurations' :: ListPackagingConfigurations -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListPackagingConfigurations
s@ListPackagingConfigurations' {} Maybe Natural
a -> ListPackagingConfigurations
s {$sel:maxResults:ListPackagingConfigurations' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListPackagingConfigurations)
instance Core.AWSPager ListPackagingConfigurations where
page :: ListPackagingConfigurations
-> AWSResponse ListPackagingConfigurations
-> Maybe ListPackagingConfigurations
page ListPackagingConfigurations
rq AWSResponse ListPackagingConfigurations
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListPackagingConfigurations
ListPackagingConfigurationsResponse
rs
ListPackagingConfigurationsResponse
-> Getting (First Text) ListPackagingConfigurationsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListPackagingConfigurationsResponse
-> Const (First Text) ListPackagingConfigurationsResponse
Lens' ListPackagingConfigurationsResponse (Maybe Text)
listPackagingConfigurationsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListPackagingConfigurationsResponse
-> Const (First Text) ListPackagingConfigurationsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListPackagingConfigurationsResponse 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 ListPackagingConfigurations
forall a. Maybe a
Prelude.Nothing
| Maybe [PackagingConfiguration] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListPackagingConfigurations
ListPackagingConfigurationsResponse
rs
ListPackagingConfigurationsResponse
-> Getting
(First [PackagingConfiguration])
ListPackagingConfigurationsResponse
[PackagingConfiguration]
-> Maybe [PackagingConfiguration]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [PackagingConfiguration]
-> Const
(First [PackagingConfiguration]) (Maybe [PackagingConfiguration]))
-> ListPackagingConfigurationsResponse
-> Const
(First [PackagingConfiguration])
ListPackagingConfigurationsResponse
Lens'
ListPackagingConfigurationsResponse
(Maybe [PackagingConfiguration])
listPackagingConfigurationsResponse_packagingConfigurations
((Maybe [PackagingConfiguration]
-> Const
(First [PackagingConfiguration]) (Maybe [PackagingConfiguration]))
-> ListPackagingConfigurationsResponse
-> Const
(First [PackagingConfiguration])
ListPackagingConfigurationsResponse)
-> (([PackagingConfiguration]
-> Const (First [PackagingConfiguration]) [PackagingConfiguration])
-> Maybe [PackagingConfiguration]
-> Const
(First [PackagingConfiguration]) (Maybe [PackagingConfiguration]))
-> Getting
(First [PackagingConfiguration])
ListPackagingConfigurationsResponse
[PackagingConfiguration]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([PackagingConfiguration]
-> Const (First [PackagingConfiguration]) [PackagingConfiguration])
-> Maybe [PackagingConfiguration]
-> Const
(First [PackagingConfiguration]) (Maybe [PackagingConfiguration])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListPackagingConfigurations
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListPackagingConfigurations -> Maybe ListPackagingConfigurations
forall a. a -> Maybe a
Prelude.Just (ListPackagingConfigurations -> Maybe ListPackagingConfigurations)
-> ListPackagingConfigurations -> Maybe ListPackagingConfigurations
forall a b. (a -> b) -> a -> b
Prelude.$
ListPackagingConfigurations
rq
ListPackagingConfigurations
-> (ListPackagingConfigurations -> ListPackagingConfigurations)
-> ListPackagingConfigurations
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListPackagingConfigurations
-> Identity ListPackagingConfigurations
Lens
ListPackagingConfigurations
ListPackagingConfigurations
(Maybe Text)
(Maybe Text)
listPackagingConfigurations_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListPackagingConfigurations
-> Identity ListPackagingConfigurations)
-> Maybe Text
-> ListPackagingConfigurations
-> ListPackagingConfigurations
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListPackagingConfigurations
ListPackagingConfigurationsResponse
rs
ListPackagingConfigurationsResponse
-> Getting (First Text) ListPackagingConfigurationsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListPackagingConfigurationsResponse
-> Const (First Text) ListPackagingConfigurationsResponse
Lens' ListPackagingConfigurationsResponse (Maybe Text)
listPackagingConfigurationsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListPackagingConfigurationsResponse
-> Const (First Text) ListPackagingConfigurationsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListPackagingConfigurationsResponse 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 ListPackagingConfigurations where
type
AWSResponse ListPackagingConfigurations =
ListPackagingConfigurationsResponse
request :: ListPackagingConfigurations -> Request ListPackagingConfigurations
request = Service
-> ListPackagingConfigurations
-> Request ListPackagingConfigurations
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListPackagingConfigurations
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListPackagingConfigurations)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListPackagingConfigurations))
-> Logger
-> Service
-> Proxy ListPackagingConfigurations
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListPackagingConfigurations)))
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 [PackagingConfiguration]
-> Maybe Text -> Int -> ListPackagingConfigurationsResponse
ListPackagingConfigurationsResponse'
(Maybe [PackagingConfiguration]
-> Maybe Text -> Int -> ListPackagingConfigurationsResponse)
-> Either String (Maybe [PackagingConfiguration])
-> Either
String (Maybe Text -> Int -> ListPackagingConfigurationsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [PackagingConfiguration]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"packagingConfigurations"
Either String (Maybe (Maybe [PackagingConfiguration]))
-> Maybe [PackagingConfiguration]
-> Either String (Maybe [PackagingConfiguration])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [PackagingConfiguration]
forall a. Monoid a => a
Prelude.mempty
)
Either
String (Maybe Text -> Int -> ListPackagingConfigurationsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListPackagingConfigurationsResponse)
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 -> ListPackagingConfigurationsResponse)
-> Either String Int
-> Either String ListPackagingConfigurationsResponse
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 ListPackagingConfigurations
instance Prelude.NFData ListPackagingConfigurations
instance Core.ToHeaders ListPackagingConfigurations where
toHeaders :: ListPackagingConfigurations -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListPackagingConfigurations -> 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.ToPath ListPackagingConfigurations where
toPath :: ListPackagingConfigurations -> ByteString
toPath = ByteString -> ListPackagingConfigurations -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/packaging_configurations"
instance Core.ToQuery ListPackagingConfigurations where
toQuery :: ListPackagingConfigurations -> QueryString
toQuery ListPackagingConfigurations' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
packagingGroupId :: Maybe Text
$sel:maxResults:ListPackagingConfigurations' :: ListPackagingConfigurations -> Maybe Natural
$sel:nextToken:ListPackagingConfigurations' :: ListPackagingConfigurations -> Maybe Text
$sel:packagingGroupId:ListPackagingConfigurations' :: ListPackagingConfigurations -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"packagingGroupId" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
packagingGroupId,
ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
]
data ListPackagingConfigurationsResponse = ListPackagingConfigurationsResponse'
{
ListPackagingConfigurationsResponse
-> Maybe [PackagingConfiguration]
packagingConfigurations :: Prelude.Maybe [PackagingConfiguration],
ListPackagingConfigurationsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListPackagingConfigurationsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListPackagingConfigurationsResponse
-> ListPackagingConfigurationsResponse -> Bool
(ListPackagingConfigurationsResponse
-> ListPackagingConfigurationsResponse -> Bool)
-> (ListPackagingConfigurationsResponse
-> ListPackagingConfigurationsResponse -> Bool)
-> Eq ListPackagingConfigurationsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListPackagingConfigurationsResponse
-> ListPackagingConfigurationsResponse -> Bool
$c/= :: ListPackagingConfigurationsResponse
-> ListPackagingConfigurationsResponse -> Bool
== :: ListPackagingConfigurationsResponse
-> ListPackagingConfigurationsResponse -> Bool
$c== :: ListPackagingConfigurationsResponse
-> ListPackagingConfigurationsResponse -> Bool
Prelude.Eq, ReadPrec [ListPackagingConfigurationsResponse]
ReadPrec ListPackagingConfigurationsResponse
Int -> ReadS ListPackagingConfigurationsResponse
ReadS [ListPackagingConfigurationsResponse]
(Int -> ReadS ListPackagingConfigurationsResponse)
-> ReadS [ListPackagingConfigurationsResponse]
-> ReadPrec ListPackagingConfigurationsResponse
-> ReadPrec [ListPackagingConfigurationsResponse]
-> Read ListPackagingConfigurationsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListPackagingConfigurationsResponse]
$creadListPrec :: ReadPrec [ListPackagingConfigurationsResponse]
readPrec :: ReadPrec ListPackagingConfigurationsResponse
$creadPrec :: ReadPrec ListPackagingConfigurationsResponse
readList :: ReadS [ListPackagingConfigurationsResponse]
$creadList :: ReadS [ListPackagingConfigurationsResponse]
readsPrec :: Int -> ReadS ListPackagingConfigurationsResponse
$creadsPrec :: Int -> ReadS ListPackagingConfigurationsResponse
Prelude.Read, Int -> ListPackagingConfigurationsResponse -> ShowS
[ListPackagingConfigurationsResponse] -> ShowS
ListPackagingConfigurationsResponse -> String
(Int -> ListPackagingConfigurationsResponse -> ShowS)
-> (ListPackagingConfigurationsResponse -> String)
-> ([ListPackagingConfigurationsResponse] -> ShowS)
-> Show ListPackagingConfigurationsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListPackagingConfigurationsResponse] -> ShowS
$cshowList :: [ListPackagingConfigurationsResponse] -> ShowS
show :: ListPackagingConfigurationsResponse -> String
$cshow :: ListPackagingConfigurationsResponse -> String
showsPrec :: Int -> ListPackagingConfigurationsResponse -> ShowS
$cshowsPrec :: Int -> ListPackagingConfigurationsResponse -> ShowS
Prelude.Show, (forall x.
ListPackagingConfigurationsResponse
-> Rep ListPackagingConfigurationsResponse x)
-> (forall x.
Rep ListPackagingConfigurationsResponse x
-> ListPackagingConfigurationsResponse)
-> Generic ListPackagingConfigurationsResponse
forall x.
Rep ListPackagingConfigurationsResponse x
-> ListPackagingConfigurationsResponse
forall x.
ListPackagingConfigurationsResponse
-> Rep ListPackagingConfigurationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListPackagingConfigurationsResponse x
-> ListPackagingConfigurationsResponse
$cfrom :: forall x.
ListPackagingConfigurationsResponse
-> Rep ListPackagingConfigurationsResponse x
Prelude.Generic)
newListPackagingConfigurationsResponse ::
Prelude.Int ->
ListPackagingConfigurationsResponse
newListPackagingConfigurationsResponse :: Int -> ListPackagingConfigurationsResponse
newListPackagingConfigurationsResponse Int
pHttpStatus_ =
ListPackagingConfigurationsResponse' :: Maybe [PackagingConfiguration]
-> Maybe Text -> Int -> ListPackagingConfigurationsResponse
ListPackagingConfigurationsResponse'
{ $sel:packagingConfigurations:ListPackagingConfigurationsResponse' :: Maybe [PackagingConfiguration]
packagingConfigurations =
Maybe [PackagingConfiguration]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListPackagingConfigurationsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListPackagingConfigurationsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listPackagingConfigurationsResponse_packagingConfigurations :: Lens.Lens' ListPackagingConfigurationsResponse (Prelude.Maybe [PackagingConfiguration])
listPackagingConfigurationsResponse_packagingConfigurations :: (Maybe [PackagingConfiguration]
-> f (Maybe [PackagingConfiguration]))
-> ListPackagingConfigurationsResponse
-> f ListPackagingConfigurationsResponse
listPackagingConfigurationsResponse_packagingConfigurations = (ListPackagingConfigurationsResponse
-> Maybe [PackagingConfiguration])
-> (ListPackagingConfigurationsResponse
-> Maybe [PackagingConfiguration]
-> ListPackagingConfigurationsResponse)
-> Lens'
ListPackagingConfigurationsResponse
(Maybe [PackagingConfiguration])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPackagingConfigurationsResponse' {Maybe [PackagingConfiguration]
packagingConfigurations :: Maybe [PackagingConfiguration]
$sel:packagingConfigurations:ListPackagingConfigurationsResponse' :: ListPackagingConfigurationsResponse
-> Maybe [PackagingConfiguration]
packagingConfigurations} -> Maybe [PackagingConfiguration]
packagingConfigurations) (\s :: ListPackagingConfigurationsResponse
s@ListPackagingConfigurationsResponse' {} Maybe [PackagingConfiguration]
a -> ListPackagingConfigurationsResponse
s {$sel:packagingConfigurations:ListPackagingConfigurationsResponse' :: Maybe [PackagingConfiguration]
packagingConfigurations = Maybe [PackagingConfiguration]
a} :: ListPackagingConfigurationsResponse) ((Maybe [PackagingConfiguration]
-> f (Maybe [PackagingConfiguration]))
-> ListPackagingConfigurationsResponse
-> f ListPackagingConfigurationsResponse)
-> ((Maybe [PackagingConfiguration]
-> f (Maybe [PackagingConfiguration]))
-> Maybe [PackagingConfiguration]
-> f (Maybe [PackagingConfiguration]))
-> (Maybe [PackagingConfiguration]
-> f (Maybe [PackagingConfiguration]))
-> ListPackagingConfigurationsResponse
-> f ListPackagingConfigurationsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[PackagingConfiguration]
[PackagingConfiguration]
[PackagingConfiguration]
[PackagingConfiguration]
-> Iso
(Maybe [PackagingConfiguration])
(Maybe [PackagingConfiguration])
(Maybe [PackagingConfiguration])
(Maybe [PackagingConfiguration])
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
[PackagingConfiguration]
[PackagingConfiguration]
[PackagingConfiguration]
[PackagingConfiguration]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listPackagingConfigurationsResponse_nextToken :: Lens.Lens' ListPackagingConfigurationsResponse (Prelude.Maybe Prelude.Text)
listPackagingConfigurationsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListPackagingConfigurationsResponse
-> f ListPackagingConfigurationsResponse
listPackagingConfigurationsResponse_nextToken = (ListPackagingConfigurationsResponse -> Maybe Text)
-> (ListPackagingConfigurationsResponse
-> Maybe Text -> ListPackagingConfigurationsResponse)
-> Lens' ListPackagingConfigurationsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPackagingConfigurationsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListPackagingConfigurationsResponse' :: ListPackagingConfigurationsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListPackagingConfigurationsResponse
s@ListPackagingConfigurationsResponse' {} Maybe Text
a -> ListPackagingConfigurationsResponse
s {$sel:nextToken:ListPackagingConfigurationsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListPackagingConfigurationsResponse)
listPackagingConfigurationsResponse_httpStatus :: Lens.Lens' ListPackagingConfigurationsResponse Prelude.Int
listPackagingConfigurationsResponse_httpStatus :: (Int -> f Int)
-> ListPackagingConfigurationsResponse
-> f ListPackagingConfigurationsResponse
listPackagingConfigurationsResponse_httpStatus = (ListPackagingConfigurationsResponse -> Int)
-> (ListPackagingConfigurationsResponse
-> Int -> ListPackagingConfigurationsResponse)
-> Lens
ListPackagingConfigurationsResponse
ListPackagingConfigurationsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPackagingConfigurationsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListPackagingConfigurationsResponse' :: ListPackagingConfigurationsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListPackagingConfigurationsResponse
s@ListPackagingConfigurationsResponse' {} Int
a -> ListPackagingConfigurationsResponse
s {$sel:httpStatus:ListPackagingConfigurationsResponse' :: Int
httpStatus = Int
a} :: ListPackagingConfigurationsResponse)
instance
Prelude.NFData
ListPackagingConfigurationsResponse