{-# 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.Route53Resolver.CreateFirewallDomainList
-- 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)
--
-- Creates an empty firewall domain list for use in DNS Firewall rules. You
-- can populate the domains for the new list with a file, using
-- ImportFirewallDomains, or with domain strings, using
-- UpdateFirewallDomains.
module Amazonka.Route53Resolver.CreateFirewallDomainList
  ( -- * Creating a Request
    CreateFirewallDomainList (..),
    newCreateFirewallDomainList,

    -- * Request Lenses
    createFirewallDomainList_tags,
    createFirewallDomainList_creatorRequestId,
    createFirewallDomainList_name,

    -- * Destructuring the Response
    CreateFirewallDomainListResponse (..),
    newCreateFirewallDomainListResponse,

    -- * Response Lenses
    createFirewallDomainListResponse_firewallDomainList,
    createFirewallDomainListResponse_httpStatus,
  )
where

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

-- | /See:/ 'newCreateFirewallDomainList' smart constructor.
data CreateFirewallDomainList = CreateFirewallDomainList'
  { -- | A list of the tag keys and values that you want to associate with the
    -- domain list.
    CreateFirewallDomainList -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
    -- | A unique string that identifies the request and that allows you to retry
    -- failed requests without the risk of running the operation twice.
    -- @CreatorRequestId@ can be any unique string, for example, a date\/time
    -- stamp.
    CreateFirewallDomainList -> Text
creatorRequestId :: Prelude.Text,
    -- | A name that lets you identify the domain list to manage and use it.
    CreateFirewallDomainList -> Text
name :: Prelude.Text
  }
  deriving (CreateFirewallDomainList -> CreateFirewallDomainList -> Bool
(CreateFirewallDomainList -> CreateFirewallDomainList -> Bool)
-> (CreateFirewallDomainList -> CreateFirewallDomainList -> Bool)
-> Eq CreateFirewallDomainList
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateFirewallDomainList -> CreateFirewallDomainList -> Bool
$c/= :: CreateFirewallDomainList -> CreateFirewallDomainList -> Bool
== :: CreateFirewallDomainList -> CreateFirewallDomainList -> Bool
$c== :: CreateFirewallDomainList -> CreateFirewallDomainList -> Bool
Prelude.Eq, ReadPrec [CreateFirewallDomainList]
ReadPrec CreateFirewallDomainList
Int -> ReadS CreateFirewallDomainList
ReadS [CreateFirewallDomainList]
(Int -> ReadS CreateFirewallDomainList)
-> ReadS [CreateFirewallDomainList]
-> ReadPrec CreateFirewallDomainList
-> ReadPrec [CreateFirewallDomainList]
-> Read CreateFirewallDomainList
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateFirewallDomainList]
$creadListPrec :: ReadPrec [CreateFirewallDomainList]
readPrec :: ReadPrec CreateFirewallDomainList
$creadPrec :: ReadPrec CreateFirewallDomainList
readList :: ReadS [CreateFirewallDomainList]
$creadList :: ReadS [CreateFirewallDomainList]
readsPrec :: Int -> ReadS CreateFirewallDomainList
$creadsPrec :: Int -> ReadS CreateFirewallDomainList
Prelude.Read, Int -> CreateFirewallDomainList -> ShowS
[CreateFirewallDomainList] -> ShowS
CreateFirewallDomainList -> String
(Int -> CreateFirewallDomainList -> ShowS)
-> (CreateFirewallDomainList -> String)
-> ([CreateFirewallDomainList] -> ShowS)
-> Show CreateFirewallDomainList
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateFirewallDomainList] -> ShowS
$cshowList :: [CreateFirewallDomainList] -> ShowS
show :: CreateFirewallDomainList -> String
$cshow :: CreateFirewallDomainList -> String
showsPrec :: Int -> CreateFirewallDomainList -> ShowS
$cshowsPrec :: Int -> CreateFirewallDomainList -> ShowS
Prelude.Show, (forall x.
 CreateFirewallDomainList -> Rep CreateFirewallDomainList x)
-> (forall x.
    Rep CreateFirewallDomainList x -> CreateFirewallDomainList)
-> Generic CreateFirewallDomainList
forall x.
Rep CreateFirewallDomainList x -> CreateFirewallDomainList
forall x.
CreateFirewallDomainList -> Rep CreateFirewallDomainList x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateFirewallDomainList x -> CreateFirewallDomainList
$cfrom :: forall x.
CreateFirewallDomainList -> Rep CreateFirewallDomainList x
Prelude.Generic)

-- |
-- Create a value of 'CreateFirewallDomainList' 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:
--
-- 'tags', 'createFirewallDomainList_tags' - A list of the tag keys and values that you want to associate with the
-- domain list.
--
-- 'creatorRequestId', 'createFirewallDomainList_creatorRequestId' - A unique string that identifies the request and that allows you to retry
-- failed requests without the risk of running the operation twice.
-- @CreatorRequestId@ can be any unique string, for example, a date\/time
-- stamp.
--
-- 'name', 'createFirewallDomainList_name' - A name that lets you identify the domain list to manage and use it.
newCreateFirewallDomainList ::
  -- | 'creatorRequestId'
  Prelude.Text ->
  -- | 'name'
  Prelude.Text ->
  CreateFirewallDomainList
newCreateFirewallDomainList :: Text -> Text -> CreateFirewallDomainList
newCreateFirewallDomainList Text
pCreatorRequestId_ Text
pName_ =
  CreateFirewallDomainList' :: Maybe [Tag] -> Text -> Text -> CreateFirewallDomainList
CreateFirewallDomainList'
    { $sel:tags:CreateFirewallDomainList' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
      $sel:creatorRequestId:CreateFirewallDomainList' :: Text
creatorRequestId = Text
pCreatorRequestId_,
      $sel:name:CreateFirewallDomainList' :: Text
name = Text
pName_
    }

-- | A list of the tag keys and values that you want to associate with the
-- domain list.
createFirewallDomainList_tags :: Lens.Lens' CreateFirewallDomainList (Prelude.Maybe [Tag])
createFirewallDomainList_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateFirewallDomainList -> f CreateFirewallDomainList
createFirewallDomainList_tags = (CreateFirewallDomainList -> Maybe [Tag])
-> (CreateFirewallDomainList
    -> Maybe [Tag] -> CreateFirewallDomainList)
-> Lens
     CreateFirewallDomainList
     CreateFirewallDomainList
     (Maybe [Tag])
     (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFirewallDomainList' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateFirewallDomainList' :: CreateFirewallDomainList -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateFirewallDomainList
s@CreateFirewallDomainList' {} Maybe [Tag]
a -> CreateFirewallDomainList
s {$sel:tags:CreateFirewallDomainList' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateFirewallDomainList) ((Maybe [Tag] -> f (Maybe [Tag]))
 -> CreateFirewallDomainList -> f CreateFirewallDomainList)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
    -> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateFirewallDomainList
-> f CreateFirewallDomainList
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
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 [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A unique string that identifies the request and that allows you to retry
-- failed requests without the risk of running the operation twice.
-- @CreatorRequestId@ can be any unique string, for example, a date\/time
-- stamp.
createFirewallDomainList_creatorRequestId :: Lens.Lens' CreateFirewallDomainList Prelude.Text
createFirewallDomainList_creatorRequestId :: (Text -> f Text)
-> CreateFirewallDomainList -> f CreateFirewallDomainList
createFirewallDomainList_creatorRequestId = (CreateFirewallDomainList -> Text)
-> (CreateFirewallDomainList -> Text -> CreateFirewallDomainList)
-> Lens CreateFirewallDomainList CreateFirewallDomainList Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFirewallDomainList' {Text
creatorRequestId :: Text
$sel:creatorRequestId:CreateFirewallDomainList' :: CreateFirewallDomainList -> Text
creatorRequestId} -> Text
creatorRequestId) (\s :: CreateFirewallDomainList
s@CreateFirewallDomainList' {} Text
a -> CreateFirewallDomainList
s {$sel:creatorRequestId:CreateFirewallDomainList' :: Text
creatorRequestId = Text
a} :: CreateFirewallDomainList)

-- | A name that lets you identify the domain list to manage and use it.
createFirewallDomainList_name :: Lens.Lens' CreateFirewallDomainList Prelude.Text
createFirewallDomainList_name :: (Text -> f Text)
-> CreateFirewallDomainList -> f CreateFirewallDomainList
createFirewallDomainList_name = (CreateFirewallDomainList -> Text)
-> (CreateFirewallDomainList -> Text -> CreateFirewallDomainList)
-> Lens CreateFirewallDomainList CreateFirewallDomainList Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFirewallDomainList' {Text
name :: Text
$sel:name:CreateFirewallDomainList' :: CreateFirewallDomainList -> Text
name} -> Text
name) (\s :: CreateFirewallDomainList
s@CreateFirewallDomainList' {} Text
a -> CreateFirewallDomainList
s {$sel:name:CreateFirewallDomainList' :: Text
name = Text
a} :: CreateFirewallDomainList)

instance Core.AWSRequest CreateFirewallDomainList where
  type
    AWSResponse CreateFirewallDomainList =
      CreateFirewallDomainListResponse
  request :: CreateFirewallDomainList -> Request CreateFirewallDomainList
request = Service
-> CreateFirewallDomainList -> Request CreateFirewallDomainList
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy CreateFirewallDomainList
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse CreateFirewallDomainList)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse CreateFirewallDomainList))
-> Logger
-> Service
-> Proxy CreateFirewallDomainList
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse CreateFirewallDomainList)))
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 FirewallDomainList -> Int -> CreateFirewallDomainListResponse
CreateFirewallDomainListResponse'
            (Maybe FirewallDomainList
 -> Int -> CreateFirewallDomainListResponse)
-> Either String (Maybe FirewallDomainList)
-> Either String (Int -> CreateFirewallDomainListResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe FirewallDomainList)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"FirewallDomainList")
            Either String (Int -> CreateFirewallDomainListResponse)
-> Either String Int
-> Either String CreateFirewallDomainListResponse
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 CreateFirewallDomainList

instance Prelude.NFData CreateFirewallDomainList

instance Core.ToHeaders CreateFirewallDomainList where
  toHeaders :: CreateFirewallDomainList -> ResponseHeaders
toHeaders =
    ResponseHeaders -> CreateFirewallDomainList -> 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
"Route53Resolver.CreateFirewallDomainList" ::
                          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 CreateFirewallDomainList where
  toJSON :: CreateFirewallDomainList -> Value
toJSON CreateFirewallDomainList' {Maybe [Tag]
Text
name :: Text
creatorRequestId :: Text
tags :: Maybe [Tag]
$sel:name:CreateFirewallDomainList' :: CreateFirewallDomainList -> Text
$sel:creatorRequestId:CreateFirewallDomainList' :: CreateFirewallDomainList -> Text
$sel:tags:CreateFirewallDomainList' :: CreateFirewallDomainList -> Maybe [Tag]
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"Tags" Text -> [Tag] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Tag] -> Pair) -> Maybe [Tag] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"CreatorRequestId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
creatorRequestId),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
name)
          ]
      )

instance Core.ToPath CreateFirewallDomainList where
  toPath :: CreateFirewallDomainList -> ByteString
toPath = ByteString -> CreateFirewallDomainList -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Core.ToQuery CreateFirewallDomainList where
  toQuery :: CreateFirewallDomainList -> QueryString
toQuery = QueryString -> CreateFirewallDomainList -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newCreateFirewallDomainListResponse' smart constructor.
data CreateFirewallDomainListResponse = CreateFirewallDomainListResponse'
  { -- | The domain list that you just created.
    CreateFirewallDomainListResponse -> Maybe FirewallDomainList
firewallDomainList :: Prelude.Maybe FirewallDomainList,
    -- | The response's http status code.
    CreateFirewallDomainListResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (CreateFirewallDomainListResponse
-> CreateFirewallDomainListResponse -> Bool
(CreateFirewallDomainListResponse
 -> CreateFirewallDomainListResponse -> Bool)
-> (CreateFirewallDomainListResponse
    -> CreateFirewallDomainListResponse -> Bool)
-> Eq CreateFirewallDomainListResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateFirewallDomainListResponse
-> CreateFirewallDomainListResponse -> Bool
$c/= :: CreateFirewallDomainListResponse
-> CreateFirewallDomainListResponse -> Bool
== :: CreateFirewallDomainListResponse
-> CreateFirewallDomainListResponse -> Bool
$c== :: CreateFirewallDomainListResponse
-> CreateFirewallDomainListResponse -> Bool
Prelude.Eq, ReadPrec [CreateFirewallDomainListResponse]
ReadPrec CreateFirewallDomainListResponse
Int -> ReadS CreateFirewallDomainListResponse
ReadS [CreateFirewallDomainListResponse]
(Int -> ReadS CreateFirewallDomainListResponse)
-> ReadS [CreateFirewallDomainListResponse]
-> ReadPrec CreateFirewallDomainListResponse
-> ReadPrec [CreateFirewallDomainListResponse]
-> Read CreateFirewallDomainListResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateFirewallDomainListResponse]
$creadListPrec :: ReadPrec [CreateFirewallDomainListResponse]
readPrec :: ReadPrec CreateFirewallDomainListResponse
$creadPrec :: ReadPrec CreateFirewallDomainListResponse
readList :: ReadS [CreateFirewallDomainListResponse]
$creadList :: ReadS [CreateFirewallDomainListResponse]
readsPrec :: Int -> ReadS CreateFirewallDomainListResponse
$creadsPrec :: Int -> ReadS CreateFirewallDomainListResponse
Prelude.Read, Int -> CreateFirewallDomainListResponse -> ShowS
[CreateFirewallDomainListResponse] -> ShowS
CreateFirewallDomainListResponse -> String
(Int -> CreateFirewallDomainListResponse -> ShowS)
-> (CreateFirewallDomainListResponse -> String)
-> ([CreateFirewallDomainListResponse] -> ShowS)
-> Show CreateFirewallDomainListResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateFirewallDomainListResponse] -> ShowS
$cshowList :: [CreateFirewallDomainListResponse] -> ShowS
show :: CreateFirewallDomainListResponse -> String
$cshow :: CreateFirewallDomainListResponse -> String
showsPrec :: Int -> CreateFirewallDomainListResponse -> ShowS
$cshowsPrec :: Int -> CreateFirewallDomainListResponse -> ShowS
Prelude.Show, (forall x.
 CreateFirewallDomainListResponse
 -> Rep CreateFirewallDomainListResponse x)
-> (forall x.
    Rep CreateFirewallDomainListResponse x
    -> CreateFirewallDomainListResponse)
-> Generic CreateFirewallDomainListResponse
forall x.
Rep CreateFirewallDomainListResponse x
-> CreateFirewallDomainListResponse
forall x.
CreateFirewallDomainListResponse
-> Rep CreateFirewallDomainListResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateFirewallDomainListResponse x
-> CreateFirewallDomainListResponse
$cfrom :: forall x.
CreateFirewallDomainListResponse
-> Rep CreateFirewallDomainListResponse x
Prelude.Generic)

-- |
-- Create a value of 'CreateFirewallDomainListResponse' 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:
--
-- 'firewallDomainList', 'createFirewallDomainListResponse_firewallDomainList' - The domain list that you just created.
--
-- 'httpStatus', 'createFirewallDomainListResponse_httpStatus' - The response's http status code.
newCreateFirewallDomainListResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  CreateFirewallDomainListResponse
newCreateFirewallDomainListResponse :: Int -> CreateFirewallDomainListResponse
newCreateFirewallDomainListResponse Int
pHttpStatus_ =
  CreateFirewallDomainListResponse' :: Maybe FirewallDomainList -> Int -> CreateFirewallDomainListResponse
CreateFirewallDomainListResponse'
    { $sel:firewallDomainList:CreateFirewallDomainListResponse' :: Maybe FirewallDomainList
firewallDomainList =
        Maybe FirewallDomainList
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:CreateFirewallDomainListResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The domain list that you just created.
createFirewallDomainListResponse_firewallDomainList :: Lens.Lens' CreateFirewallDomainListResponse (Prelude.Maybe FirewallDomainList)
createFirewallDomainListResponse_firewallDomainList :: (Maybe FirewallDomainList -> f (Maybe FirewallDomainList))
-> CreateFirewallDomainListResponse
-> f CreateFirewallDomainListResponse
createFirewallDomainListResponse_firewallDomainList = (CreateFirewallDomainListResponse -> Maybe FirewallDomainList)
-> (CreateFirewallDomainListResponse
    -> Maybe FirewallDomainList -> CreateFirewallDomainListResponse)
-> Lens
     CreateFirewallDomainListResponse
     CreateFirewallDomainListResponse
     (Maybe FirewallDomainList)
     (Maybe FirewallDomainList)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFirewallDomainListResponse' {Maybe FirewallDomainList
firewallDomainList :: Maybe FirewallDomainList
$sel:firewallDomainList:CreateFirewallDomainListResponse' :: CreateFirewallDomainListResponse -> Maybe FirewallDomainList
firewallDomainList} -> Maybe FirewallDomainList
firewallDomainList) (\s :: CreateFirewallDomainListResponse
s@CreateFirewallDomainListResponse' {} Maybe FirewallDomainList
a -> CreateFirewallDomainListResponse
s {$sel:firewallDomainList:CreateFirewallDomainListResponse' :: Maybe FirewallDomainList
firewallDomainList = Maybe FirewallDomainList
a} :: CreateFirewallDomainListResponse)

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

instance
  Prelude.NFData
    CreateFirewallDomainListResponse