{-# 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.Lightsail.GetOperationsForResource
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Gets operations for a specific resource (e.g., an instance or a static
-- IP).
module Amazonka.Lightsail.GetOperationsForResource
  ( -- * Creating a Request
    GetOperationsForResource (..),
    newGetOperationsForResource,

    -- * Request Lenses
    getOperationsForResource_pageToken,
    getOperationsForResource_resourceName,

    -- * Destructuring the Response
    GetOperationsForResourceResponse (..),
    newGetOperationsForResourceResponse,

    -- * Response Lenses
    getOperationsForResourceResponse_nextPageCount,
    getOperationsForResourceResponse_nextPageToken,
    getOperationsForResourceResponse_operations,
    getOperationsForResourceResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.Lightsail.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newGetOperationsForResource' smart constructor.
data GetOperationsForResource = GetOperationsForResource'
  { -- | The token to advance to the next page of results from your request.
    --
    -- To get a page token, perform an initial @GetOperationsForResource@
    -- request. If your results are paginated, the response will return a next
    -- page token that you can specify as the page token in a subsequent
    -- request.
    GetOperationsForResource -> Maybe Text
pageToken :: Prelude.Maybe Prelude.Text,
    -- | The name of the resource for which you are requesting information.
    GetOperationsForResource -> Text
resourceName :: Prelude.Text
  }
  deriving (GetOperationsForResource -> GetOperationsForResource -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetOperationsForResource -> GetOperationsForResource -> Bool
$c/= :: GetOperationsForResource -> GetOperationsForResource -> Bool
== :: GetOperationsForResource -> GetOperationsForResource -> Bool
$c== :: GetOperationsForResource -> GetOperationsForResource -> Bool
Prelude.Eq, ReadPrec [GetOperationsForResource]
ReadPrec GetOperationsForResource
Int -> ReadS GetOperationsForResource
ReadS [GetOperationsForResource]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetOperationsForResource]
$creadListPrec :: ReadPrec [GetOperationsForResource]
readPrec :: ReadPrec GetOperationsForResource
$creadPrec :: ReadPrec GetOperationsForResource
readList :: ReadS [GetOperationsForResource]
$creadList :: ReadS [GetOperationsForResource]
readsPrec :: Int -> ReadS GetOperationsForResource
$creadsPrec :: Int -> ReadS GetOperationsForResource
Prelude.Read, Int -> GetOperationsForResource -> ShowS
[GetOperationsForResource] -> ShowS
GetOperationsForResource -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetOperationsForResource] -> ShowS
$cshowList :: [GetOperationsForResource] -> ShowS
show :: GetOperationsForResource -> String
$cshow :: GetOperationsForResource -> String
showsPrec :: Int -> GetOperationsForResource -> ShowS
$cshowsPrec :: Int -> GetOperationsForResource -> ShowS
Prelude.Show, forall x.
Rep GetOperationsForResource x -> GetOperationsForResource
forall x.
GetOperationsForResource -> Rep GetOperationsForResource x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetOperationsForResource x -> GetOperationsForResource
$cfrom :: forall x.
GetOperationsForResource -> Rep GetOperationsForResource x
Prelude.Generic)

-- |
-- Create a value of 'GetOperationsForResource' 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:
--
-- 'pageToken', 'getOperationsForResource_pageToken' - The token to advance to the next page of results from your request.
--
-- To get a page token, perform an initial @GetOperationsForResource@
-- request. If your results are paginated, the response will return a next
-- page token that you can specify as the page token in a subsequent
-- request.
--
-- 'resourceName', 'getOperationsForResource_resourceName' - The name of the resource for which you are requesting information.
newGetOperationsForResource ::
  -- | 'resourceName'
  Prelude.Text ->
  GetOperationsForResource
newGetOperationsForResource :: Text -> GetOperationsForResource
newGetOperationsForResource Text
pResourceName_ =
  GetOperationsForResource'
    { $sel:pageToken:GetOperationsForResource' :: Maybe Text
pageToken =
        forall a. Maybe a
Prelude.Nothing,
      $sel:resourceName:GetOperationsForResource' :: Text
resourceName = Text
pResourceName_
    }

-- | The token to advance to the next page of results from your request.
--
-- To get a page token, perform an initial @GetOperationsForResource@
-- request. If your results are paginated, the response will return a next
-- page token that you can specify as the page token in a subsequent
-- request.
getOperationsForResource_pageToken :: Lens.Lens' GetOperationsForResource (Prelude.Maybe Prelude.Text)
getOperationsForResource_pageToken :: Lens' GetOperationsForResource (Maybe Text)
getOperationsForResource_pageToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetOperationsForResource' {Maybe Text
pageToken :: Maybe Text
$sel:pageToken:GetOperationsForResource' :: GetOperationsForResource -> Maybe Text
pageToken} -> Maybe Text
pageToken) (\s :: GetOperationsForResource
s@GetOperationsForResource' {} Maybe Text
a -> GetOperationsForResource
s {$sel:pageToken:GetOperationsForResource' :: Maybe Text
pageToken = Maybe Text
a} :: GetOperationsForResource)

-- | The name of the resource for which you are requesting information.
getOperationsForResource_resourceName :: Lens.Lens' GetOperationsForResource Prelude.Text
getOperationsForResource_resourceName :: Lens' GetOperationsForResource Text
getOperationsForResource_resourceName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetOperationsForResource' {Text
resourceName :: Text
$sel:resourceName:GetOperationsForResource' :: GetOperationsForResource -> Text
resourceName} -> Text
resourceName) (\s :: GetOperationsForResource
s@GetOperationsForResource' {} Text
a -> GetOperationsForResource
s {$sel:resourceName:GetOperationsForResource' :: Text
resourceName = Text
a} :: GetOperationsForResource)

instance Core.AWSRequest GetOperationsForResource where
  type
    AWSResponse GetOperationsForResource =
      GetOperationsForResourceResponse
  request :: (Service -> Service)
-> GetOperationsForResource -> Request GetOperationsForResource
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 GetOperationsForResource
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse GetOperationsForResource)))
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 Text
-> Maybe [Operation]
-> Int
-> GetOperationsForResourceResponse
GetOperationsForResourceResponse'
            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
"nextPageCount")
            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
"nextPageToken")
            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
"operations" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
            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 GetOperationsForResource where
  hashWithSalt :: Int -> GetOperationsForResource -> Int
hashWithSalt Int
_salt GetOperationsForResource' {Maybe Text
Text
resourceName :: Text
pageToken :: Maybe Text
$sel:resourceName:GetOperationsForResource' :: GetOperationsForResource -> Text
$sel:pageToken:GetOperationsForResource' :: GetOperationsForResource -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
pageToken
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
resourceName

instance Prelude.NFData GetOperationsForResource where
  rnf :: GetOperationsForResource -> ()
rnf GetOperationsForResource' {Maybe Text
Text
resourceName :: Text
pageToken :: Maybe Text
$sel:resourceName:GetOperationsForResource' :: GetOperationsForResource -> Text
$sel:pageToken:GetOperationsForResource' :: GetOperationsForResource -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
pageToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
resourceName

instance Data.ToHeaders GetOperationsForResource where
  toHeaders :: GetOperationsForResource -> 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
"Lightsail_20161128.GetOperationsForResource" ::
                          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 GetOperationsForResource where
  toJSON :: GetOperationsForResource -> Value
toJSON GetOperationsForResource' {Maybe Text
Text
resourceName :: Text
pageToken :: Maybe Text
$sel:resourceName:GetOperationsForResource' :: GetOperationsForResource -> Text
$sel:pageToken:GetOperationsForResource' :: GetOperationsForResource -> Maybe Text
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"pageToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
pageToken,
            forall a. a -> Maybe a
Prelude.Just (Key
"resourceName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
resourceName)
          ]
      )

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

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

-- | /See:/ 'newGetOperationsForResourceResponse' smart constructor.
data GetOperationsForResourceResponse = GetOperationsForResourceResponse'
  { -- | (Deprecated) Returns the number of pages of results that remain.
    --
    -- In releases prior to June 12, 2017, this parameter returned @null@ by
    -- the API. It is now deprecated, and the API returns the @next page token@
    -- parameter instead.
    GetOperationsForResourceResponse -> Maybe Text
nextPageCount :: Prelude.Maybe Prelude.Text,
    -- | The token to advance to the next page of results from your request.
    --
    -- A next page token is not returned if there are no more results to
    -- display.
    --
    -- To get the next page of results, perform another
    -- @GetOperationsForResource@ request and specify the next page token using
    -- the @pageToken@ parameter.
    GetOperationsForResourceResponse -> Maybe Text
nextPageToken :: Prelude.Maybe Prelude.Text,
    -- | An array of objects that describe the result of the action, such as the
    -- status of the request, the timestamp of the request, and the resources
    -- affected by the request.
    GetOperationsForResourceResponse -> Maybe [Operation]
operations :: Prelude.Maybe [Operation],
    -- | The response's http status code.
    GetOperationsForResourceResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetOperationsForResourceResponse
-> GetOperationsForResourceResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetOperationsForResourceResponse
-> GetOperationsForResourceResponse -> Bool
$c/= :: GetOperationsForResourceResponse
-> GetOperationsForResourceResponse -> Bool
== :: GetOperationsForResourceResponse
-> GetOperationsForResourceResponse -> Bool
$c== :: GetOperationsForResourceResponse
-> GetOperationsForResourceResponse -> Bool
Prelude.Eq, ReadPrec [GetOperationsForResourceResponse]
ReadPrec GetOperationsForResourceResponse
Int -> ReadS GetOperationsForResourceResponse
ReadS [GetOperationsForResourceResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetOperationsForResourceResponse]
$creadListPrec :: ReadPrec [GetOperationsForResourceResponse]
readPrec :: ReadPrec GetOperationsForResourceResponse
$creadPrec :: ReadPrec GetOperationsForResourceResponse
readList :: ReadS [GetOperationsForResourceResponse]
$creadList :: ReadS [GetOperationsForResourceResponse]
readsPrec :: Int -> ReadS GetOperationsForResourceResponse
$creadsPrec :: Int -> ReadS GetOperationsForResourceResponse
Prelude.Read, Int -> GetOperationsForResourceResponse -> ShowS
[GetOperationsForResourceResponse] -> ShowS
GetOperationsForResourceResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetOperationsForResourceResponse] -> ShowS
$cshowList :: [GetOperationsForResourceResponse] -> ShowS
show :: GetOperationsForResourceResponse -> String
$cshow :: GetOperationsForResourceResponse -> String
showsPrec :: Int -> GetOperationsForResourceResponse -> ShowS
$cshowsPrec :: Int -> GetOperationsForResourceResponse -> ShowS
Prelude.Show, forall x.
Rep GetOperationsForResourceResponse x
-> GetOperationsForResourceResponse
forall x.
GetOperationsForResourceResponse
-> Rep GetOperationsForResourceResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetOperationsForResourceResponse x
-> GetOperationsForResourceResponse
$cfrom :: forall x.
GetOperationsForResourceResponse
-> Rep GetOperationsForResourceResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetOperationsForResourceResponse' 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:
--
-- 'nextPageCount', 'getOperationsForResourceResponse_nextPageCount' - (Deprecated) Returns the number of pages of results that remain.
--
-- In releases prior to June 12, 2017, this parameter returned @null@ by
-- the API. It is now deprecated, and the API returns the @next page token@
-- parameter instead.
--
-- 'nextPageToken', 'getOperationsForResourceResponse_nextPageToken' - The token to advance to the next page of results from your request.
--
-- A next page token is not returned if there are no more results to
-- display.
--
-- To get the next page of results, perform another
-- @GetOperationsForResource@ request and specify the next page token using
-- the @pageToken@ parameter.
--
-- 'operations', 'getOperationsForResourceResponse_operations' - An array of objects that describe the result of the action, such as the
-- status of the request, the timestamp of the request, and the resources
-- affected by the request.
--
-- 'httpStatus', 'getOperationsForResourceResponse_httpStatus' - The response's http status code.
newGetOperationsForResourceResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetOperationsForResourceResponse
newGetOperationsForResourceResponse :: Int -> GetOperationsForResourceResponse
newGetOperationsForResourceResponse Int
pHttpStatus_ =
  GetOperationsForResourceResponse'
    { $sel:nextPageCount:GetOperationsForResourceResponse' :: Maybe Text
nextPageCount =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextPageToken:GetOperationsForResourceResponse' :: Maybe Text
nextPageToken = forall a. Maybe a
Prelude.Nothing,
      $sel:operations:GetOperationsForResourceResponse' :: Maybe [Operation]
operations = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:GetOperationsForResourceResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | (Deprecated) Returns the number of pages of results that remain.
--
-- In releases prior to June 12, 2017, this parameter returned @null@ by
-- the API. It is now deprecated, and the API returns the @next page token@
-- parameter instead.
getOperationsForResourceResponse_nextPageCount :: Lens.Lens' GetOperationsForResourceResponse (Prelude.Maybe Prelude.Text)
getOperationsForResourceResponse_nextPageCount :: Lens' GetOperationsForResourceResponse (Maybe Text)
getOperationsForResourceResponse_nextPageCount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetOperationsForResourceResponse' {Maybe Text
nextPageCount :: Maybe Text
$sel:nextPageCount:GetOperationsForResourceResponse' :: GetOperationsForResourceResponse -> Maybe Text
nextPageCount} -> Maybe Text
nextPageCount) (\s :: GetOperationsForResourceResponse
s@GetOperationsForResourceResponse' {} Maybe Text
a -> GetOperationsForResourceResponse
s {$sel:nextPageCount:GetOperationsForResourceResponse' :: Maybe Text
nextPageCount = Maybe Text
a} :: GetOperationsForResourceResponse)

-- | The token to advance to the next page of results from your request.
--
-- A next page token is not returned if there are no more results to
-- display.
--
-- To get the next page of results, perform another
-- @GetOperationsForResource@ request and specify the next page token using
-- the @pageToken@ parameter.
getOperationsForResourceResponse_nextPageToken :: Lens.Lens' GetOperationsForResourceResponse (Prelude.Maybe Prelude.Text)
getOperationsForResourceResponse_nextPageToken :: Lens' GetOperationsForResourceResponse (Maybe Text)
getOperationsForResourceResponse_nextPageToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetOperationsForResourceResponse' {Maybe Text
nextPageToken :: Maybe Text
$sel:nextPageToken:GetOperationsForResourceResponse' :: GetOperationsForResourceResponse -> Maybe Text
nextPageToken} -> Maybe Text
nextPageToken) (\s :: GetOperationsForResourceResponse
s@GetOperationsForResourceResponse' {} Maybe Text
a -> GetOperationsForResourceResponse
s {$sel:nextPageToken:GetOperationsForResourceResponse' :: Maybe Text
nextPageToken = Maybe Text
a} :: GetOperationsForResourceResponse)

-- | An array of objects that describe the result of the action, such as the
-- status of the request, the timestamp of the request, and the resources
-- affected by the request.
getOperationsForResourceResponse_operations :: Lens.Lens' GetOperationsForResourceResponse (Prelude.Maybe [Operation])
getOperationsForResourceResponse_operations :: Lens' GetOperationsForResourceResponse (Maybe [Operation])
getOperationsForResourceResponse_operations = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetOperationsForResourceResponse' {Maybe [Operation]
operations :: Maybe [Operation]
$sel:operations:GetOperationsForResourceResponse' :: GetOperationsForResourceResponse -> Maybe [Operation]
operations} -> Maybe [Operation]
operations) (\s :: GetOperationsForResourceResponse
s@GetOperationsForResourceResponse' {} Maybe [Operation]
a -> GetOperationsForResourceResponse
s {$sel:operations:GetOperationsForResourceResponse' :: Maybe [Operation]
operations = Maybe [Operation]
a} :: GetOperationsForResourceResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance
  Prelude.NFData
    GetOperationsForResourceResponse
  where
  rnf :: GetOperationsForResourceResponse -> ()
rnf GetOperationsForResourceResponse' {Int
Maybe [Operation]
Maybe Text
httpStatus :: Int
operations :: Maybe [Operation]
nextPageToken :: Maybe Text
nextPageCount :: Maybe Text
$sel:httpStatus:GetOperationsForResourceResponse' :: GetOperationsForResourceResponse -> Int
$sel:operations:GetOperationsForResourceResponse' :: GetOperationsForResourceResponse -> Maybe [Operation]
$sel:nextPageToken:GetOperationsForResourceResponse' :: GetOperationsForResourceResponse -> Maybe Text
$sel:nextPageCount:GetOperationsForResourceResponse' :: GetOperationsForResourceResponse -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextPageCount
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextPageToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Operation]
operations
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus