{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Chime.ListPhoneNumberOrders
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Lists the phone number orders for the administrator\'s Amazon Chime
-- account.
module Amazonka.Chime.ListPhoneNumberOrders
  ( -- * Creating a Request
    ListPhoneNumberOrders (..),
    newListPhoneNumberOrders,

    -- * Request Lenses
    listPhoneNumberOrders_nextToken,
    listPhoneNumberOrders_maxResults,

    -- * Destructuring the Response
    ListPhoneNumberOrdersResponse (..),
    newListPhoneNumberOrdersResponse,

    -- * Response Lenses
    listPhoneNumberOrdersResponse_phoneNumberOrders,
    listPhoneNumberOrdersResponse_nextToken,
    listPhoneNumberOrdersResponse_httpStatus,
  )
where

import Amazonka.Chime.Types
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

-- | /See:/ 'newListPhoneNumberOrders' smart constructor.
data ListPhoneNumberOrders = ListPhoneNumberOrders'
  { -- | The token to use to retrieve the next page of results.
    ListPhoneNumberOrders -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of results to return in a single call.
    ListPhoneNumberOrders -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
  }
  deriving (ListPhoneNumberOrders -> ListPhoneNumberOrders -> Bool
(ListPhoneNumberOrders -> ListPhoneNumberOrders -> Bool)
-> (ListPhoneNumberOrders -> ListPhoneNumberOrders -> Bool)
-> Eq ListPhoneNumberOrders
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListPhoneNumberOrders -> ListPhoneNumberOrders -> Bool
$c/= :: ListPhoneNumberOrders -> ListPhoneNumberOrders -> Bool
== :: ListPhoneNumberOrders -> ListPhoneNumberOrders -> Bool
$c== :: ListPhoneNumberOrders -> ListPhoneNumberOrders -> Bool
Prelude.Eq, ReadPrec [ListPhoneNumberOrders]
ReadPrec ListPhoneNumberOrders
Int -> ReadS ListPhoneNumberOrders
ReadS [ListPhoneNumberOrders]
(Int -> ReadS ListPhoneNumberOrders)
-> ReadS [ListPhoneNumberOrders]
-> ReadPrec ListPhoneNumberOrders
-> ReadPrec [ListPhoneNumberOrders]
-> Read ListPhoneNumberOrders
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListPhoneNumberOrders]
$creadListPrec :: ReadPrec [ListPhoneNumberOrders]
readPrec :: ReadPrec ListPhoneNumberOrders
$creadPrec :: ReadPrec ListPhoneNumberOrders
readList :: ReadS [ListPhoneNumberOrders]
$creadList :: ReadS [ListPhoneNumberOrders]
readsPrec :: Int -> ReadS ListPhoneNumberOrders
$creadsPrec :: Int -> ReadS ListPhoneNumberOrders
Prelude.Read, Int -> ListPhoneNumberOrders -> ShowS
[ListPhoneNumberOrders] -> ShowS
ListPhoneNumberOrders -> String
(Int -> ListPhoneNumberOrders -> ShowS)
-> (ListPhoneNumberOrders -> String)
-> ([ListPhoneNumberOrders] -> ShowS)
-> Show ListPhoneNumberOrders
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListPhoneNumberOrders] -> ShowS
$cshowList :: [ListPhoneNumberOrders] -> ShowS
show :: ListPhoneNumberOrders -> String
$cshow :: ListPhoneNumberOrders -> String
showsPrec :: Int -> ListPhoneNumberOrders -> ShowS
$cshowsPrec :: Int -> ListPhoneNumberOrders -> ShowS
Prelude.Show, (forall x. ListPhoneNumberOrders -> Rep ListPhoneNumberOrders x)
-> (forall x. Rep ListPhoneNumberOrders x -> ListPhoneNumberOrders)
-> Generic ListPhoneNumberOrders
forall x. Rep ListPhoneNumberOrders x -> ListPhoneNumberOrders
forall x. ListPhoneNumberOrders -> Rep ListPhoneNumberOrders x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListPhoneNumberOrders x -> ListPhoneNumberOrders
$cfrom :: forall x. ListPhoneNumberOrders -> Rep ListPhoneNumberOrders x
Prelude.Generic)

-- |
-- Create a value of 'ListPhoneNumberOrders' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'nextToken', 'listPhoneNumberOrders_nextToken' - The token to use to retrieve the next page of results.
--
-- 'maxResults', 'listPhoneNumberOrders_maxResults' - The maximum number of results to return in a single call.
newListPhoneNumberOrders ::
  ListPhoneNumberOrders
newListPhoneNumberOrders :: ListPhoneNumberOrders
newListPhoneNumberOrders =
  ListPhoneNumberOrders' :: Maybe Text -> Maybe Natural -> ListPhoneNumberOrders
ListPhoneNumberOrders'
    { $sel:nextToken:ListPhoneNumberOrders' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListPhoneNumberOrders' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
    }

-- | The token to use to retrieve the next page of results.
listPhoneNumberOrders_nextToken :: Lens.Lens' ListPhoneNumberOrders (Prelude.Maybe Prelude.Text)
listPhoneNumberOrders_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListPhoneNumberOrders -> f ListPhoneNumberOrders
listPhoneNumberOrders_nextToken = (ListPhoneNumberOrders -> Maybe Text)
-> (ListPhoneNumberOrders -> Maybe Text -> ListPhoneNumberOrders)
-> Lens
     ListPhoneNumberOrders
     ListPhoneNumberOrders
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPhoneNumberOrders' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListPhoneNumberOrders' :: ListPhoneNumberOrders -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListPhoneNumberOrders
s@ListPhoneNumberOrders' {} Maybe Text
a -> ListPhoneNumberOrders
s {$sel:nextToken:ListPhoneNumberOrders' :: Maybe Text
nextToken = Maybe Text
a} :: ListPhoneNumberOrders)

-- | The maximum number of results to return in a single call.
listPhoneNumberOrders_maxResults :: Lens.Lens' ListPhoneNumberOrders (Prelude.Maybe Prelude.Natural)
listPhoneNumberOrders_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListPhoneNumberOrders -> f ListPhoneNumberOrders
listPhoneNumberOrders_maxResults = (ListPhoneNumberOrders -> Maybe Natural)
-> (ListPhoneNumberOrders
    -> Maybe Natural -> ListPhoneNumberOrders)
-> Lens
     ListPhoneNumberOrders
     ListPhoneNumberOrders
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPhoneNumberOrders' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListPhoneNumberOrders' :: ListPhoneNumberOrders -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListPhoneNumberOrders
s@ListPhoneNumberOrders' {} Maybe Natural
a -> ListPhoneNumberOrders
s {$sel:maxResults:ListPhoneNumberOrders' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListPhoneNumberOrders)

instance Core.AWSRequest ListPhoneNumberOrders where
  type
    AWSResponse ListPhoneNumberOrders =
      ListPhoneNumberOrdersResponse
  request :: ListPhoneNumberOrders -> Request ListPhoneNumberOrders
request = Service -> ListPhoneNumberOrders -> Request ListPhoneNumberOrders
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy ListPhoneNumberOrders
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListPhoneNumberOrders)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListPhoneNumberOrders))
-> Logger
-> Service
-> Proxy ListPhoneNumberOrders
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListPhoneNumberOrders)))
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 [PhoneNumberOrder]
-> Maybe Text -> Int -> ListPhoneNumberOrdersResponse
ListPhoneNumberOrdersResponse'
            (Maybe [PhoneNumberOrder]
 -> Maybe Text -> Int -> ListPhoneNumberOrdersResponse)
-> Either String (Maybe [PhoneNumberOrder])
-> Either
     String (Maybe Text -> Int -> ListPhoneNumberOrdersResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object -> Text -> Either String (Maybe (Maybe [PhoneNumberOrder]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"PhoneNumberOrders"
                            Either String (Maybe (Maybe [PhoneNumberOrder]))
-> Maybe [PhoneNumberOrder]
-> Either String (Maybe [PhoneNumberOrder])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [PhoneNumberOrder]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either String (Maybe Text -> Int -> ListPhoneNumberOrdersResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListPhoneNumberOrdersResponse)
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 -> ListPhoneNumberOrdersResponse)
-> Either String Int -> Either String ListPhoneNumberOrdersResponse
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 ListPhoneNumberOrders

instance Prelude.NFData ListPhoneNumberOrders

instance Core.ToHeaders ListPhoneNumberOrders where
  toHeaders :: ListPhoneNumberOrders -> ResponseHeaders
toHeaders = ResponseHeaders -> ListPhoneNumberOrders -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

instance Core.ToPath ListPhoneNumberOrders where
  toPath :: ListPhoneNumberOrders -> ByteString
toPath = ByteString -> ListPhoneNumberOrders -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/phone-number-orders"

instance Core.ToQuery ListPhoneNumberOrders where
  toQuery :: ListPhoneNumberOrders -> QueryString
toQuery ListPhoneNumberOrders' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:maxResults:ListPhoneNumberOrders' :: ListPhoneNumberOrders -> Maybe Natural
$sel:nextToken:ListPhoneNumberOrders' :: ListPhoneNumberOrders -> Maybe Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"next-token" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
        ByteString
"max-results" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
      ]

-- | /See:/ 'newListPhoneNumberOrdersResponse' smart constructor.
data ListPhoneNumberOrdersResponse = ListPhoneNumberOrdersResponse'
  { -- | The phone number order details.
    ListPhoneNumberOrdersResponse -> Maybe [PhoneNumberOrder]
phoneNumberOrders :: Prelude.Maybe [PhoneNumberOrder],
    -- | The token to use to retrieve the next page of results.
    ListPhoneNumberOrdersResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListPhoneNumberOrdersResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListPhoneNumberOrdersResponse
-> ListPhoneNumberOrdersResponse -> Bool
(ListPhoneNumberOrdersResponse
 -> ListPhoneNumberOrdersResponse -> Bool)
-> (ListPhoneNumberOrdersResponse
    -> ListPhoneNumberOrdersResponse -> Bool)
-> Eq ListPhoneNumberOrdersResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListPhoneNumberOrdersResponse
-> ListPhoneNumberOrdersResponse -> Bool
$c/= :: ListPhoneNumberOrdersResponse
-> ListPhoneNumberOrdersResponse -> Bool
== :: ListPhoneNumberOrdersResponse
-> ListPhoneNumberOrdersResponse -> Bool
$c== :: ListPhoneNumberOrdersResponse
-> ListPhoneNumberOrdersResponse -> Bool
Prelude.Eq, Int -> ListPhoneNumberOrdersResponse -> ShowS
[ListPhoneNumberOrdersResponse] -> ShowS
ListPhoneNumberOrdersResponse -> String
(Int -> ListPhoneNumberOrdersResponse -> ShowS)
-> (ListPhoneNumberOrdersResponse -> String)
-> ([ListPhoneNumberOrdersResponse] -> ShowS)
-> Show ListPhoneNumberOrdersResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListPhoneNumberOrdersResponse] -> ShowS
$cshowList :: [ListPhoneNumberOrdersResponse] -> ShowS
show :: ListPhoneNumberOrdersResponse -> String
$cshow :: ListPhoneNumberOrdersResponse -> String
showsPrec :: Int -> ListPhoneNumberOrdersResponse -> ShowS
$cshowsPrec :: Int -> ListPhoneNumberOrdersResponse -> ShowS
Prelude.Show, (forall x.
 ListPhoneNumberOrdersResponse
 -> Rep ListPhoneNumberOrdersResponse x)
-> (forall x.
    Rep ListPhoneNumberOrdersResponse x
    -> ListPhoneNumberOrdersResponse)
-> Generic ListPhoneNumberOrdersResponse
forall x.
Rep ListPhoneNumberOrdersResponse x
-> ListPhoneNumberOrdersResponse
forall x.
ListPhoneNumberOrdersResponse
-> Rep ListPhoneNumberOrdersResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListPhoneNumberOrdersResponse x
-> ListPhoneNumberOrdersResponse
$cfrom :: forall x.
ListPhoneNumberOrdersResponse
-> Rep ListPhoneNumberOrdersResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListPhoneNumberOrdersResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'phoneNumberOrders', 'listPhoneNumberOrdersResponse_phoneNumberOrders' - The phone number order details.
--
-- 'nextToken', 'listPhoneNumberOrdersResponse_nextToken' - The token to use to retrieve the next page of results.
--
-- 'httpStatus', 'listPhoneNumberOrdersResponse_httpStatus' - The response's http status code.
newListPhoneNumberOrdersResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListPhoneNumberOrdersResponse
newListPhoneNumberOrdersResponse :: Int -> ListPhoneNumberOrdersResponse
newListPhoneNumberOrdersResponse Int
pHttpStatus_ =
  ListPhoneNumberOrdersResponse' :: Maybe [PhoneNumberOrder]
-> Maybe Text -> Int -> ListPhoneNumberOrdersResponse
ListPhoneNumberOrdersResponse'
    { $sel:phoneNumberOrders:ListPhoneNumberOrdersResponse' :: Maybe [PhoneNumberOrder]
phoneNumberOrders =
        Maybe [PhoneNumberOrder]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListPhoneNumberOrdersResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListPhoneNumberOrdersResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The phone number order details.
listPhoneNumberOrdersResponse_phoneNumberOrders :: Lens.Lens' ListPhoneNumberOrdersResponse (Prelude.Maybe [PhoneNumberOrder])
listPhoneNumberOrdersResponse_phoneNumberOrders :: (Maybe [PhoneNumberOrder] -> f (Maybe [PhoneNumberOrder]))
-> ListPhoneNumberOrdersResponse -> f ListPhoneNumberOrdersResponse
listPhoneNumberOrdersResponse_phoneNumberOrders = (ListPhoneNumberOrdersResponse -> Maybe [PhoneNumberOrder])
-> (ListPhoneNumberOrdersResponse
    -> Maybe [PhoneNumberOrder] -> ListPhoneNumberOrdersResponse)
-> Lens
     ListPhoneNumberOrdersResponse
     ListPhoneNumberOrdersResponse
     (Maybe [PhoneNumberOrder])
     (Maybe [PhoneNumberOrder])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPhoneNumberOrdersResponse' {Maybe [PhoneNumberOrder]
phoneNumberOrders :: Maybe [PhoneNumberOrder]
$sel:phoneNumberOrders:ListPhoneNumberOrdersResponse' :: ListPhoneNumberOrdersResponse -> Maybe [PhoneNumberOrder]
phoneNumberOrders} -> Maybe [PhoneNumberOrder]
phoneNumberOrders) (\s :: ListPhoneNumberOrdersResponse
s@ListPhoneNumberOrdersResponse' {} Maybe [PhoneNumberOrder]
a -> ListPhoneNumberOrdersResponse
s {$sel:phoneNumberOrders:ListPhoneNumberOrdersResponse' :: Maybe [PhoneNumberOrder]
phoneNumberOrders = Maybe [PhoneNumberOrder]
a} :: ListPhoneNumberOrdersResponse) ((Maybe [PhoneNumberOrder] -> f (Maybe [PhoneNumberOrder]))
 -> ListPhoneNumberOrdersResponse
 -> f ListPhoneNumberOrdersResponse)
-> ((Maybe [PhoneNumberOrder] -> f (Maybe [PhoneNumberOrder]))
    -> Maybe [PhoneNumberOrder] -> f (Maybe [PhoneNumberOrder]))
-> (Maybe [PhoneNumberOrder] -> f (Maybe [PhoneNumberOrder]))
-> ListPhoneNumberOrdersResponse
-> f ListPhoneNumberOrdersResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [PhoneNumberOrder]
  [PhoneNumberOrder]
  [PhoneNumberOrder]
  [PhoneNumberOrder]
-> Iso
     (Maybe [PhoneNumberOrder])
     (Maybe [PhoneNumberOrder])
     (Maybe [PhoneNumberOrder])
     (Maybe [PhoneNumberOrder])
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
  [PhoneNumberOrder]
  [PhoneNumberOrder]
  [PhoneNumberOrder]
  [PhoneNumberOrder]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The token to use to retrieve the next page of results.
listPhoneNumberOrdersResponse_nextToken :: Lens.Lens' ListPhoneNumberOrdersResponse (Prelude.Maybe Prelude.Text)
listPhoneNumberOrdersResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListPhoneNumberOrdersResponse -> f ListPhoneNumberOrdersResponse
listPhoneNumberOrdersResponse_nextToken = (ListPhoneNumberOrdersResponse -> Maybe Text)
-> (ListPhoneNumberOrdersResponse
    -> Maybe Text -> ListPhoneNumberOrdersResponse)
-> Lens
     ListPhoneNumberOrdersResponse
     ListPhoneNumberOrdersResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPhoneNumberOrdersResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListPhoneNumberOrdersResponse' :: ListPhoneNumberOrdersResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListPhoneNumberOrdersResponse
s@ListPhoneNumberOrdersResponse' {} Maybe Text
a -> ListPhoneNumberOrdersResponse
s {$sel:nextToken:ListPhoneNumberOrdersResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListPhoneNumberOrdersResponse)

-- | The response's http status code.
listPhoneNumberOrdersResponse_httpStatus :: Lens.Lens' ListPhoneNumberOrdersResponse Prelude.Int
listPhoneNumberOrdersResponse_httpStatus :: (Int -> f Int)
-> ListPhoneNumberOrdersResponse -> f ListPhoneNumberOrdersResponse
listPhoneNumberOrdersResponse_httpStatus = (ListPhoneNumberOrdersResponse -> Int)
-> (ListPhoneNumberOrdersResponse
    -> Int -> ListPhoneNumberOrdersResponse)
-> Lens
     ListPhoneNumberOrdersResponse ListPhoneNumberOrdersResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPhoneNumberOrdersResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListPhoneNumberOrdersResponse' :: ListPhoneNumberOrdersResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListPhoneNumberOrdersResponse
s@ListPhoneNumberOrdersResponse' {} Int
a -> ListPhoneNumberOrdersResponse
s {$sel:httpStatus:ListPhoneNumberOrdersResponse' :: Int
httpStatus = Int
a} :: ListPhoneNumberOrdersResponse)

instance Prelude.NFData ListPhoneNumberOrdersResponse