{-# 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.WAFV2.GetRegexPatternSet
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Retrieves the specified RegexPatternSet.
module Amazonka.WAFV2.GetRegexPatternSet
  ( -- * Creating a Request
    GetRegexPatternSet (..),
    newGetRegexPatternSet,

    -- * Request Lenses
    getRegexPatternSet_name,
    getRegexPatternSet_scope,
    getRegexPatternSet_id,

    -- * Destructuring the Response
    GetRegexPatternSetResponse (..),
    newGetRegexPatternSetResponse,

    -- * Response Lenses
    getRegexPatternSetResponse_lockToken,
    getRegexPatternSetResponse_regexPatternSet,
    getRegexPatternSetResponse_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 qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.WAFV2.Types

-- | /See:/ 'newGetRegexPatternSet' smart constructor.
data GetRegexPatternSet = GetRegexPatternSet'
  { -- | The name of the set. You cannot change the name after you create the
    -- set.
    GetRegexPatternSet -> Text
name :: Prelude.Text,
    -- | Specifies whether this is for an Amazon CloudFront distribution or for a
    -- regional application. A regional application can be an Application Load
    -- Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API,
    -- or an Amazon Cognito user pool.
    --
    -- To work with CloudFront, you must also specify the Region US East (N.
    -- Virginia) as follows:
    --
    -- -   CLI - Specify the Region when you use the CloudFront scope:
    --     @--scope=CLOUDFRONT --region=us-east-1@.
    --
    -- -   API and SDKs - For all calls, use the Region endpoint us-east-1.
    GetRegexPatternSet -> Scope
scope :: Scope,
    -- | A unique identifier for the set. This ID is returned in the responses to
    -- create and list commands. You provide it to operations like update and
    -- delete.
    GetRegexPatternSet -> Text
id :: Prelude.Text
  }
  deriving (GetRegexPatternSet -> GetRegexPatternSet -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetRegexPatternSet -> GetRegexPatternSet -> Bool
$c/= :: GetRegexPatternSet -> GetRegexPatternSet -> Bool
== :: GetRegexPatternSet -> GetRegexPatternSet -> Bool
$c== :: GetRegexPatternSet -> GetRegexPatternSet -> Bool
Prelude.Eq, ReadPrec [GetRegexPatternSet]
ReadPrec GetRegexPatternSet
Int -> ReadS GetRegexPatternSet
ReadS [GetRegexPatternSet]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetRegexPatternSet]
$creadListPrec :: ReadPrec [GetRegexPatternSet]
readPrec :: ReadPrec GetRegexPatternSet
$creadPrec :: ReadPrec GetRegexPatternSet
readList :: ReadS [GetRegexPatternSet]
$creadList :: ReadS [GetRegexPatternSet]
readsPrec :: Int -> ReadS GetRegexPatternSet
$creadsPrec :: Int -> ReadS GetRegexPatternSet
Prelude.Read, Int -> GetRegexPatternSet -> ShowS
[GetRegexPatternSet] -> ShowS
GetRegexPatternSet -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetRegexPatternSet] -> ShowS
$cshowList :: [GetRegexPatternSet] -> ShowS
show :: GetRegexPatternSet -> String
$cshow :: GetRegexPatternSet -> String
showsPrec :: Int -> GetRegexPatternSet -> ShowS
$cshowsPrec :: Int -> GetRegexPatternSet -> ShowS
Prelude.Show, forall x. Rep GetRegexPatternSet x -> GetRegexPatternSet
forall x. GetRegexPatternSet -> Rep GetRegexPatternSet x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetRegexPatternSet x -> GetRegexPatternSet
$cfrom :: forall x. GetRegexPatternSet -> Rep GetRegexPatternSet x
Prelude.Generic)

-- |
-- Create a value of 'GetRegexPatternSet' 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:
--
-- 'name', 'getRegexPatternSet_name' - The name of the set. You cannot change the name after you create the
-- set.
--
-- 'scope', 'getRegexPatternSet_scope' - Specifies whether this is for an Amazon CloudFront distribution or for a
-- regional application. A regional application can be an Application Load
-- Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API,
-- or an Amazon Cognito user pool.
--
-- To work with CloudFront, you must also specify the Region US East (N.
-- Virginia) as follows:
--
-- -   CLI - Specify the Region when you use the CloudFront scope:
--     @--scope=CLOUDFRONT --region=us-east-1@.
--
-- -   API and SDKs - For all calls, use the Region endpoint us-east-1.
--
-- 'id', 'getRegexPatternSet_id' - A unique identifier for the set. This ID is returned in the responses to
-- create and list commands. You provide it to operations like update and
-- delete.
newGetRegexPatternSet ::
  -- | 'name'
  Prelude.Text ->
  -- | 'scope'
  Scope ->
  -- | 'id'
  Prelude.Text ->
  GetRegexPatternSet
newGetRegexPatternSet :: Text -> Scope -> Text -> GetRegexPatternSet
newGetRegexPatternSet Text
pName_ Scope
pScope_ Text
pId_ =
  GetRegexPatternSet'
    { $sel:name:GetRegexPatternSet' :: Text
name = Text
pName_,
      $sel:scope:GetRegexPatternSet' :: Scope
scope = Scope
pScope_,
      $sel:id:GetRegexPatternSet' :: Text
id = Text
pId_
    }

-- | The name of the set. You cannot change the name after you create the
-- set.
getRegexPatternSet_name :: Lens.Lens' GetRegexPatternSet Prelude.Text
getRegexPatternSet_name :: Lens' GetRegexPatternSet Text
getRegexPatternSet_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRegexPatternSet' {Text
name :: Text
$sel:name:GetRegexPatternSet' :: GetRegexPatternSet -> Text
name} -> Text
name) (\s :: GetRegexPatternSet
s@GetRegexPatternSet' {} Text
a -> GetRegexPatternSet
s {$sel:name:GetRegexPatternSet' :: Text
name = Text
a} :: GetRegexPatternSet)

-- | Specifies whether this is for an Amazon CloudFront distribution or for a
-- regional application. A regional application can be an Application Load
-- Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API,
-- or an Amazon Cognito user pool.
--
-- To work with CloudFront, you must also specify the Region US East (N.
-- Virginia) as follows:
--
-- -   CLI - Specify the Region when you use the CloudFront scope:
--     @--scope=CLOUDFRONT --region=us-east-1@.
--
-- -   API and SDKs - For all calls, use the Region endpoint us-east-1.
getRegexPatternSet_scope :: Lens.Lens' GetRegexPatternSet Scope
getRegexPatternSet_scope :: Lens' GetRegexPatternSet Scope
getRegexPatternSet_scope = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRegexPatternSet' {Scope
scope :: Scope
$sel:scope:GetRegexPatternSet' :: GetRegexPatternSet -> Scope
scope} -> Scope
scope) (\s :: GetRegexPatternSet
s@GetRegexPatternSet' {} Scope
a -> GetRegexPatternSet
s {$sel:scope:GetRegexPatternSet' :: Scope
scope = Scope
a} :: GetRegexPatternSet)

-- | A unique identifier for the set. This ID is returned in the responses to
-- create and list commands. You provide it to operations like update and
-- delete.
getRegexPatternSet_id :: Lens.Lens' GetRegexPatternSet Prelude.Text
getRegexPatternSet_id :: Lens' GetRegexPatternSet Text
getRegexPatternSet_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRegexPatternSet' {Text
id :: Text
$sel:id:GetRegexPatternSet' :: GetRegexPatternSet -> Text
id} -> Text
id) (\s :: GetRegexPatternSet
s@GetRegexPatternSet' {} Text
a -> GetRegexPatternSet
s {$sel:id:GetRegexPatternSet' :: Text
id = Text
a} :: GetRegexPatternSet)

instance Core.AWSRequest GetRegexPatternSet where
  type
    AWSResponse GetRegexPatternSet =
      GetRegexPatternSetResponse
  request :: (Service -> Service)
-> GetRegexPatternSet -> Request GetRegexPatternSet
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 GetRegexPatternSet
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse GetRegexPatternSet)))
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 RegexPatternSet -> Int -> GetRegexPatternSetResponse
GetRegexPatternSetResponse'
            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
"LockToken")
            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
"RegexPatternSet")
            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 GetRegexPatternSet where
  hashWithSalt :: Int -> GetRegexPatternSet -> Int
hashWithSalt Int
_salt GetRegexPatternSet' {Text
Scope
id :: Text
scope :: Scope
name :: Text
$sel:id:GetRegexPatternSet' :: GetRegexPatternSet -> Text
$sel:scope:GetRegexPatternSet' :: GetRegexPatternSet -> Scope
$sel:name:GetRegexPatternSet' :: GetRegexPatternSet -> Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
name
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Scope
scope
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
id

instance Prelude.NFData GetRegexPatternSet where
  rnf :: GetRegexPatternSet -> ()
rnf GetRegexPatternSet' {Text
Scope
id :: Text
scope :: Scope
name :: Text
$sel:id:GetRegexPatternSet' :: GetRegexPatternSet -> Text
$sel:scope:GetRegexPatternSet' :: GetRegexPatternSet -> Scope
$sel:name:GetRegexPatternSet' :: GetRegexPatternSet -> Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Text
name
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Scope
scope
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
id

instance Data.ToHeaders GetRegexPatternSet where
  toHeaders :: GetRegexPatternSet -> 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
"AWSWAF_20190729.GetRegexPatternSet" ::
                          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 GetRegexPatternSet where
  toJSON :: GetRegexPatternSet -> Value
toJSON GetRegexPatternSet' {Text
Scope
id :: Text
scope :: Scope
name :: Text
$sel:id:GetRegexPatternSet' :: GetRegexPatternSet -> Text
$sel:scope:GetRegexPatternSet' :: GetRegexPatternSet -> Scope
$sel:name:GetRegexPatternSet' :: GetRegexPatternSet -> Text
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ forall a. a -> Maybe a
Prelude.Just (Key
"Name" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
name),
            forall a. a -> Maybe a
Prelude.Just (Key
"Scope" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Scope
scope),
            forall a. a -> Maybe a
Prelude.Just (Key
"Id" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
id)
          ]
      )

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

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

-- | /See:/ 'newGetRegexPatternSetResponse' smart constructor.
data GetRegexPatternSetResponse = GetRegexPatternSetResponse'
  { -- | A token used for optimistic locking. WAF returns a token to your @get@
    -- and @list@ requests, to mark the state of the entity at the time of the
    -- request. To make changes to the entity associated with the token, you
    -- provide the token to operations like @update@ and @delete@. WAF uses the
    -- token to ensure that no changes have been made to the entity since you
    -- last retrieved it. If a change has been made, the update fails with a
    -- @WAFOptimisticLockException@. If this happens, perform another @get@,
    -- and use the new token returned by that operation.
    GetRegexPatternSetResponse -> Maybe Text
lockToken :: Prelude.Maybe Prelude.Text,
    GetRegexPatternSetResponse -> Maybe RegexPatternSet
regexPatternSet :: Prelude.Maybe RegexPatternSet,
    -- | The response's http status code.
    GetRegexPatternSetResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetRegexPatternSetResponse -> GetRegexPatternSetResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetRegexPatternSetResponse -> GetRegexPatternSetResponse -> Bool
$c/= :: GetRegexPatternSetResponse -> GetRegexPatternSetResponse -> Bool
== :: GetRegexPatternSetResponse -> GetRegexPatternSetResponse -> Bool
$c== :: GetRegexPatternSetResponse -> GetRegexPatternSetResponse -> Bool
Prelude.Eq, ReadPrec [GetRegexPatternSetResponse]
ReadPrec GetRegexPatternSetResponse
Int -> ReadS GetRegexPatternSetResponse
ReadS [GetRegexPatternSetResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetRegexPatternSetResponse]
$creadListPrec :: ReadPrec [GetRegexPatternSetResponse]
readPrec :: ReadPrec GetRegexPatternSetResponse
$creadPrec :: ReadPrec GetRegexPatternSetResponse
readList :: ReadS [GetRegexPatternSetResponse]
$creadList :: ReadS [GetRegexPatternSetResponse]
readsPrec :: Int -> ReadS GetRegexPatternSetResponse
$creadsPrec :: Int -> ReadS GetRegexPatternSetResponse
Prelude.Read, Int -> GetRegexPatternSetResponse -> ShowS
[GetRegexPatternSetResponse] -> ShowS
GetRegexPatternSetResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetRegexPatternSetResponse] -> ShowS
$cshowList :: [GetRegexPatternSetResponse] -> ShowS
show :: GetRegexPatternSetResponse -> String
$cshow :: GetRegexPatternSetResponse -> String
showsPrec :: Int -> GetRegexPatternSetResponse -> ShowS
$cshowsPrec :: Int -> GetRegexPatternSetResponse -> ShowS
Prelude.Show, forall x.
Rep GetRegexPatternSetResponse x -> GetRegexPatternSetResponse
forall x.
GetRegexPatternSetResponse -> Rep GetRegexPatternSetResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetRegexPatternSetResponse x -> GetRegexPatternSetResponse
$cfrom :: forall x.
GetRegexPatternSetResponse -> Rep GetRegexPatternSetResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetRegexPatternSetResponse' 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:
--
-- 'lockToken', 'getRegexPatternSetResponse_lockToken' - A token used for optimistic locking. WAF returns a token to your @get@
-- and @list@ requests, to mark the state of the entity at the time of the
-- request. To make changes to the entity associated with the token, you
-- provide the token to operations like @update@ and @delete@. WAF uses the
-- token to ensure that no changes have been made to the entity since you
-- last retrieved it. If a change has been made, the update fails with a
-- @WAFOptimisticLockException@. If this happens, perform another @get@,
-- and use the new token returned by that operation.
--
-- 'regexPatternSet', 'getRegexPatternSetResponse_regexPatternSet' -
--
-- 'httpStatus', 'getRegexPatternSetResponse_httpStatus' - The response's http status code.
newGetRegexPatternSetResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetRegexPatternSetResponse
newGetRegexPatternSetResponse :: Int -> GetRegexPatternSetResponse
newGetRegexPatternSetResponse Int
pHttpStatus_ =
  GetRegexPatternSetResponse'
    { $sel:lockToken:GetRegexPatternSetResponse' :: Maybe Text
lockToken =
        forall a. Maybe a
Prelude.Nothing,
      $sel:regexPatternSet:GetRegexPatternSetResponse' :: Maybe RegexPatternSet
regexPatternSet = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:GetRegexPatternSetResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A token used for optimistic locking. WAF returns a token to your @get@
-- and @list@ requests, to mark the state of the entity at the time of the
-- request. To make changes to the entity associated with the token, you
-- provide the token to operations like @update@ and @delete@. WAF uses the
-- token to ensure that no changes have been made to the entity since you
-- last retrieved it. If a change has been made, the update fails with a
-- @WAFOptimisticLockException@. If this happens, perform another @get@,
-- and use the new token returned by that operation.
getRegexPatternSetResponse_lockToken :: Lens.Lens' GetRegexPatternSetResponse (Prelude.Maybe Prelude.Text)
getRegexPatternSetResponse_lockToken :: Lens' GetRegexPatternSetResponse (Maybe Text)
getRegexPatternSetResponse_lockToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRegexPatternSetResponse' {Maybe Text
lockToken :: Maybe Text
$sel:lockToken:GetRegexPatternSetResponse' :: GetRegexPatternSetResponse -> Maybe Text
lockToken} -> Maybe Text
lockToken) (\s :: GetRegexPatternSetResponse
s@GetRegexPatternSetResponse' {} Maybe Text
a -> GetRegexPatternSetResponse
s {$sel:lockToken:GetRegexPatternSetResponse' :: Maybe Text
lockToken = Maybe Text
a} :: GetRegexPatternSetResponse)

getRegexPatternSetResponse_regexPatternSet :: Lens.Lens' GetRegexPatternSetResponse (Prelude.Maybe RegexPatternSet)
getRegexPatternSetResponse_regexPatternSet :: Lens' GetRegexPatternSetResponse (Maybe RegexPatternSet)
getRegexPatternSetResponse_regexPatternSet = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRegexPatternSetResponse' {Maybe RegexPatternSet
regexPatternSet :: Maybe RegexPatternSet
$sel:regexPatternSet:GetRegexPatternSetResponse' :: GetRegexPatternSetResponse -> Maybe RegexPatternSet
regexPatternSet} -> Maybe RegexPatternSet
regexPatternSet) (\s :: GetRegexPatternSetResponse
s@GetRegexPatternSetResponse' {} Maybe RegexPatternSet
a -> GetRegexPatternSetResponse
s {$sel:regexPatternSet:GetRegexPatternSetResponse' :: Maybe RegexPatternSet
regexPatternSet = Maybe RegexPatternSet
a} :: GetRegexPatternSetResponse)

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

instance Prelude.NFData GetRegexPatternSetResponse where
  rnf :: GetRegexPatternSetResponse -> ()
rnf GetRegexPatternSetResponse' {Int
Maybe Text
Maybe RegexPatternSet
httpStatus :: Int
regexPatternSet :: Maybe RegexPatternSet
lockToken :: Maybe Text
$sel:httpStatus:GetRegexPatternSetResponse' :: GetRegexPatternSetResponse -> Int
$sel:regexPatternSet:GetRegexPatternSetResponse' :: GetRegexPatternSetResponse -> Maybe RegexPatternSet
$sel:lockToken:GetRegexPatternSetResponse' :: GetRegexPatternSetResponse -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
lockToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe RegexPatternSet
regexPatternSet
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus