{-# 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.AuditManager.RegisterOrganizationAdminAccount
-- 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)
--
-- Enables an Amazon Web Services account within the organization as the
-- delegated administrator for Audit Manager.
module Amazonka.AuditManager.RegisterOrganizationAdminAccount
  ( -- * Creating a Request
    RegisterOrganizationAdminAccount (..),
    newRegisterOrganizationAdminAccount,

    -- * Request Lenses
    registerOrganizationAdminAccount_adminAccountId,

    -- * Destructuring the Response
    RegisterOrganizationAdminAccountResponse (..),
    newRegisterOrganizationAdminAccountResponse,

    -- * Response Lenses
    registerOrganizationAdminAccountResponse_adminAccountId,
    registerOrganizationAdminAccountResponse_organizationId,
    registerOrganizationAdminAccountResponse_httpStatus,
  )
where

import Amazonka.AuditManager.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:/ 'newRegisterOrganizationAdminAccount' smart constructor.
data RegisterOrganizationAdminAccount = RegisterOrganizationAdminAccount'
  { -- | The identifier for the specified delegated administrator account.
    RegisterOrganizationAdminAccount -> Text
adminAccountId :: Prelude.Text
  }
  deriving (RegisterOrganizationAdminAccount
-> RegisterOrganizationAdminAccount -> Bool
(RegisterOrganizationAdminAccount
 -> RegisterOrganizationAdminAccount -> Bool)
-> (RegisterOrganizationAdminAccount
    -> RegisterOrganizationAdminAccount -> Bool)
-> Eq RegisterOrganizationAdminAccount
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RegisterOrganizationAdminAccount
-> RegisterOrganizationAdminAccount -> Bool
$c/= :: RegisterOrganizationAdminAccount
-> RegisterOrganizationAdminAccount -> Bool
== :: RegisterOrganizationAdminAccount
-> RegisterOrganizationAdminAccount -> Bool
$c== :: RegisterOrganizationAdminAccount
-> RegisterOrganizationAdminAccount -> Bool
Prelude.Eq, ReadPrec [RegisterOrganizationAdminAccount]
ReadPrec RegisterOrganizationAdminAccount
Int -> ReadS RegisterOrganizationAdminAccount
ReadS [RegisterOrganizationAdminAccount]
(Int -> ReadS RegisterOrganizationAdminAccount)
-> ReadS [RegisterOrganizationAdminAccount]
-> ReadPrec RegisterOrganizationAdminAccount
-> ReadPrec [RegisterOrganizationAdminAccount]
-> Read RegisterOrganizationAdminAccount
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RegisterOrganizationAdminAccount]
$creadListPrec :: ReadPrec [RegisterOrganizationAdminAccount]
readPrec :: ReadPrec RegisterOrganizationAdminAccount
$creadPrec :: ReadPrec RegisterOrganizationAdminAccount
readList :: ReadS [RegisterOrganizationAdminAccount]
$creadList :: ReadS [RegisterOrganizationAdminAccount]
readsPrec :: Int -> ReadS RegisterOrganizationAdminAccount
$creadsPrec :: Int -> ReadS RegisterOrganizationAdminAccount
Prelude.Read, Int -> RegisterOrganizationAdminAccount -> ShowS
[RegisterOrganizationAdminAccount] -> ShowS
RegisterOrganizationAdminAccount -> String
(Int -> RegisterOrganizationAdminAccount -> ShowS)
-> (RegisterOrganizationAdminAccount -> String)
-> ([RegisterOrganizationAdminAccount] -> ShowS)
-> Show RegisterOrganizationAdminAccount
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RegisterOrganizationAdminAccount] -> ShowS
$cshowList :: [RegisterOrganizationAdminAccount] -> ShowS
show :: RegisterOrganizationAdminAccount -> String
$cshow :: RegisterOrganizationAdminAccount -> String
showsPrec :: Int -> RegisterOrganizationAdminAccount -> ShowS
$cshowsPrec :: Int -> RegisterOrganizationAdminAccount -> ShowS
Prelude.Show, (forall x.
 RegisterOrganizationAdminAccount
 -> Rep RegisterOrganizationAdminAccount x)
-> (forall x.
    Rep RegisterOrganizationAdminAccount x
    -> RegisterOrganizationAdminAccount)
-> Generic RegisterOrganizationAdminAccount
forall x.
Rep RegisterOrganizationAdminAccount x
-> RegisterOrganizationAdminAccount
forall x.
RegisterOrganizationAdminAccount
-> Rep RegisterOrganizationAdminAccount x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RegisterOrganizationAdminAccount x
-> RegisterOrganizationAdminAccount
$cfrom :: forall x.
RegisterOrganizationAdminAccount
-> Rep RegisterOrganizationAdminAccount x
Prelude.Generic)

-- |
-- Create a value of 'RegisterOrganizationAdminAccount' 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:
--
-- 'adminAccountId', 'registerOrganizationAdminAccount_adminAccountId' - The identifier for the specified delegated administrator account.
newRegisterOrganizationAdminAccount ::
  -- | 'adminAccountId'
  Prelude.Text ->
  RegisterOrganizationAdminAccount
newRegisterOrganizationAdminAccount :: Text -> RegisterOrganizationAdminAccount
newRegisterOrganizationAdminAccount Text
pAdminAccountId_ =
  RegisterOrganizationAdminAccount' :: Text -> RegisterOrganizationAdminAccount
RegisterOrganizationAdminAccount'
    { $sel:adminAccountId:RegisterOrganizationAdminAccount' :: Text
adminAccountId =
        Text
pAdminAccountId_
    }

-- | The identifier for the specified delegated administrator account.
registerOrganizationAdminAccount_adminAccountId :: Lens.Lens' RegisterOrganizationAdminAccount Prelude.Text
registerOrganizationAdminAccount_adminAccountId :: (Text -> f Text)
-> RegisterOrganizationAdminAccount
-> f RegisterOrganizationAdminAccount
registerOrganizationAdminAccount_adminAccountId = (RegisterOrganizationAdminAccount -> Text)
-> (RegisterOrganizationAdminAccount
    -> Text -> RegisterOrganizationAdminAccount)
-> Lens
     RegisterOrganizationAdminAccount
     RegisterOrganizationAdminAccount
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RegisterOrganizationAdminAccount' {Text
adminAccountId :: Text
$sel:adminAccountId:RegisterOrganizationAdminAccount' :: RegisterOrganizationAdminAccount -> Text
adminAccountId} -> Text
adminAccountId) (\s :: RegisterOrganizationAdminAccount
s@RegisterOrganizationAdminAccount' {} Text
a -> RegisterOrganizationAdminAccount
s {$sel:adminAccountId:RegisterOrganizationAdminAccount' :: Text
adminAccountId = Text
a} :: RegisterOrganizationAdminAccount)

instance
  Core.AWSRequest
    RegisterOrganizationAdminAccount
  where
  type
    AWSResponse RegisterOrganizationAdminAccount =
      RegisterOrganizationAdminAccountResponse
  request :: RegisterOrganizationAdminAccount
-> Request RegisterOrganizationAdminAccount
request = Service
-> RegisterOrganizationAdminAccount
-> Request RegisterOrganizationAdminAccount
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy RegisterOrganizationAdminAccount
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse RegisterOrganizationAdminAccount)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse RegisterOrganizationAdminAccount))
-> Logger
-> Service
-> Proxy RegisterOrganizationAdminAccount
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse RegisterOrganizationAdminAccount)))
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 Text -> Int -> RegisterOrganizationAdminAccountResponse
RegisterOrganizationAdminAccountResponse'
            (Maybe Text
 -> Maybe Text -> Int -> RegisterOrganizationAdminAccountResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text -> Int -> RegisterOrganizationAdminAccountResponse)
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
"adminAccountId")
            Either
  String
  (Maybe Text -> Int -> RegisterOrganizationAdminAccountResponse)
-> Either String (Maybe Text)
-> Either String (Int -> RegisterOrganizationAdminAccountResponse)
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
"organizationId")
            Either String (Int -> RegisterOrganizationAdminAccountResponse)
-> Either String Int
-> Either String RegisterOrganizationAdminAccountResponse
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
    RegisterOrganizationAdminAccount

instance
  Prelude.NFData
    RegisterOrganizationAdminAccount

instance
  Core.ToHeaders
    RegisterOrganizationAdminAccount
  where
  toHeaders :: RegisterOrganizationAdminAccount -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> RegisterOrganizationAdminAccount -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ 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 RegisterOrganizationAdminAccount where
  toJSON :: RegisterOrganizationAdminAccount -> Value
toJSON RegisterOrganizationAdminAccount' {Text
adminAccountId :: Text
$sel:adminAccountId:RegisterOrganizationAdminAccount' :: RegisterOrganizationAdminAccount -> Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"adminAccountId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
adminAccountId)
          ]
      )

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

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

-- | /See:/ 'newRegisterOrganizationAdminAccountResponse' smart constructor.
data RegisterOrganizationAdminAccountResponse = RegisterOrganizationAdminAccountResponse'
  { -- | The identifier for the specified delegated administrator account.
    RegisterOrganizationAdminAccountResponse -> Maybe Text
adminAccountId :: Prelude.Maybe Prelude.Text,
    -- | The identifier for the specified organization.
    RegisterOrganizationAdminAccountResponse -> Maybe Text
organizationId :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    RegisterOrganizationAdminAccountResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (RegisterOrganizationAdminAccountResponse
-> RegisterOrganizationAdminAccountResponse -> Bool
(RegisterOrganizationAdminAccountResponse
 -> RegisterOrganizationAdminAccountResponse -> Bool)
-> (RegisterOrganizationAdminAccountResponse
    -> RegisterOrganizationAdminAccountResponse -> Bool)
-> Eq RegisterOrganizationAdminAccountResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RegisterOrganizationAdminAccountResponse
-> RegisterOrganizationAdminAccountResponse -> Bool
$c/= :: RegisterOrganizationAdminAccountResponse
-> RegisterOrganizationAdminAccountResponse -> Bool
== :: RegisterOrganizationAdminAccountResponse
-> RegisterOrganizationAdminAccountResponse -> Bool
$c== :: RegisterOrganizationAdminAccountResponse
-> RegisterOrganizationAdminAccountResponse -> Bool
Prelude.Eq, ReadPrec [RegisterOrganizationAdminAccountResponse]
ReadPrec RegisterOrganizationAdminAccountResponse
Int -> ReadS RegisterOrganizationAdminAccountResponse
ReadS [RegisterOrganizationAdminAccountResponse]
(Int -> ReadS RegisterOrganizationAdminAccountResponse)
-> ReadS [RegisterOrganizationAdminAccountResponse]
-> ReadPrec RegisterOrganizationAdminAccountResponse
-> ReadPrec [RegisterOrganizationAdminAccountResponse]
-> Read RegisterOrganizationAdminAccountResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RegisterOrganizationAdminAccountResponse]
$creadListPrec :: ReadPrec [RegisterOrganizationAdminAccountResponse]
readPrec :: ReadPrec RegisterOrganizationAdminAccountResponse
$creadPrec :: ReadPrec RegisterOrganizationAdminAccountResponse
readList :: ReadS [RegisterOrganizationAdminAccountResponse]
$creadList :: ReadS [RegisterOrganizationAdminAccountResponse]
readsPrec :: Int -> ReadS RegisterOrganizationAdminAccountResponse
$creadsPrec :: Int -> ReadS RegisterOrganizationAdminAccountResponse
Prelude.Read, Int -> RegisterOrganizationAdminAccountResponse -> ShowS
[RegisterOrganizationAdminAccountResponse] -> ShowS
RegisterOrganizationAdminAccountResponse -> String
(Int -> RegisterOrganizationAdminAccountResponse -> ShowS)
-> (RegisterOrganizationAdminAccountResponse -> String)
-> ([RegisterOrganizationAdminAccountResponse] -> ShowS)
-> Show RegisterOrganizationAdminAccountResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RegisterOrganizationAdminAccountResponse] -> ShowS
$cshowList :: [RegisterOrganizationAdminAccountResponse] -> ShowS
show :: RegisterOrganizationAdminAccountResponse -> String
$cshow :: RegisterOrganizationAdminAccountResponse -> String
showsPrec :: Int -> RegisterOrganizationAdminAccountResponse -> ShowS
$cshowsPrec :: Int -> RegisterOrganizationAdminAccountResponse -> ShowS
Prelude.Show, (forall x.
 RegisterOrganizationAdminAccountResponse
 -> Rep RegisterOrganizationAdminAccountResponse x)
-> (forall x.
    Rep RegisterOrganizationAdminAccountResponse x
    -> RegisterOrganizationAdminAccountResponse)
-> Generic RegisterOrganizationAdminAccountResponse
forall x.
Rep RegisterOrganizationAdminAccountResponse x
-> RegisterOrganizationAdminAccountResponse
forall x.
RegisterOrganizationAdminAccountResponse
-> Rep RegisterOrganizationAdminAccountResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RegisterOrganizationAdminAccountResponse x
-> RegisterOrganizationAdminAccountResponse
$cfrom :: forall x.
RegisterOrganizationAdminAccountResponse
-> Rep RegisterOrganizationAdminAccountResponse x
Prelude.Generic)

-- |
-- Create a value of 'RegisterOrganizationAdminAccountResponse' 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:
--
-- 'adminAccountId', 'registerOrganizationAdminAccountResponse_adminAccountId' - The identifier for the specified delegated administrator account.
--
-- 'organizationId', 'registerOrganizationAdminAccountResponse_organizationId' - The identifier for the specified organization.
--
-- 'httpStatus', 'registerOrganizationAdminAccountResponse_httpStatus' - The response's http status code.
newRegisterOrganizationAdminAccountResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  RegisterOrganizationAdminAccountResponse
newRegisterOrganizationAdminAccountResponse :: Int -> RegisterOrganizationAdminAccountResponse
newRegisterOrganizationAdminAccountResponse
  Int
pHttpStatus_ =
    RegisterOrganizationAdminAccountResponse' :: Maybe Text
-> Maybe Text -> Int -> RegisterOrganizationAdminAccountResponse
RegisterOrganizationAdminAccountResponse'
      { $sel:adminAccountId:RegisterOrganizationAdminAccountResponse' :: Maybe Text
adminAccountId =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:organizationId:RegisterOrganizationAdminAccountResponse' :: Maybe Text
organizationId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:RegisterOrganizationAdminAccountResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The identifier for the specified delegated administrator account.
registerOrganizationAdminAccountResponse_adminAccountId :: Lens.Lens' RegisterOrganizationAdminAccountResponse (Prelude.Maybe Prelude.Text)
registerOrganizationAdminAccountResponse_adminAccountId :: (Maybe Text -> f (Maybe Text))
-> RegisterOrganizationAdminAccountResponse
-> f RegisterOrganizationAdminAccountResponse
registerOrganizationAdminAccountResponse_adminAccountId = (RegisterOrganizationAdminAccountResponse -> Maybe Text)
-> (RegisterOrganizationAdminAccountResponse
    -> Maybe Text -> RegisterOrganizationAdminAccountResponse)
-> Lens
     RegisterOrganizationAdminAccountResponse
     RegisterOrganizationAdminAccountResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RegisterOrganizationAdminAccountResponse' {Maybe Text
adminAccountId :: Maybe Text
$sel:adminAccountId:RegisterOrganizationAdminAccountResponse' :: RegisterOrganizationAdminAccountResponse -> Maybe Text
adminAccountId} -> Maybe Text
adminAccountId) (\s :: RegisterOrganizationAdminAccountResponse
s@RegisterOrganizationAdminAccountResponse' {} Maybe Text
a -> RegisterOrganizationAdminAccountResponse
s {$sel:adminAccountId:RegisterOrganizationAdminAccountResponse' :: Maybe Text
adminAccountId = Maybe Text
a} :: RegisterOrganizationAdminAccountResponse)

-- | The identifier for the specified organization.
registerOrganizationAdminAccountResponse_organizationId :: Lens.Lens' RegisterOrganizationAdminAccountResponse (Prelude.Maybe Prelude.Text)
registerOrganizationAdminAccountResponse_organizationId :: (Maybe Text -> f (Maybe Text))
-> RegisterOrganizationAdminAccountResponse
-> f RegisterOrganizationAdminAccountResponse
registerOrganizationAdminAccountResponse_organizationId = (RegisterOrganizationAdminAccountResponse -> Maybe Text)
-> (RegisterOrganizationAdminAccountResponse
    -> Maybe Text -> RegisterOrganizationAdminAccountResponse)
-> Lens
     RegisterOrganizationAdminAccountResponse
     RegisterOrganizationAdminAccountResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RegisterOrganizationAdminAccountResponse' {Maybe Text
organizationId :: Maybe Text
$sel:organizationId:RegisterOrganizationAdminAccountResponse' :: RegisterOrganizationAdminAccountResponse -> Maybe Text
organizationId} -> Maybe Text
organizationId) (\s :: RegisterOrganizationAdminAccountResponse
s@RegisterOrganizationAdminAccountResponse' {} Maybe Text
a -> RegisterOrganizationAdminAccountResponse
s {$sel:organizationId:RegisterOrganizationAdminAccountResponse' :: Maybe Text
organizationId = Maybe Text
a} :: RegisterOrganizationAdminAccountResponse)

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

instance
  Prelude.NFData
    RegisterOrganizationAdminAccountResponse