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