{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.CloudDirectory.Types.BatchUpdateObjectAttributesResponse
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.CloudDirectory.Types.BatchUpdateObjectAttributesResponse 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

-- | Represents the output of a @BatchUpdate@ response operation.
--
-- /See:/ 'newBatchUpdateObjectAttributesResponse' smart constructor.
data BatchUpdateObjectAttributesResponse = BatchUpdateObjectAttributesResponse'
  { -- | ID that is associated with the object.
    BatchUpdateObjectAttributesResponse -> Maybe Text
objectIdentifier :: Prelude.Maybe Prelude.Text
  }
  deriving (BatchUpdateObjectAttributesResponse
-> BatchUpdateObjectAttributesResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchUpdateObjectAttributesResponse
-> BatchUpdateObjectAttributesResponse -> Bool
$c/= :: BatchUpdateObjectAttributesResponse
-> BatchUpdateObjectAttributesResponse -> Bool
== :: BatchUpdateObjectAttributesResponse
-> BatchUpdateObjectAttributesResponse -> Bool
$c== :: BatchUpdateObjectAttributesResponse
-> BatchUpdateObjectAttributesResponse -> Bool
Prelude.Eq, ReadPrec [BatchUpdateObjectAttributesResponse]
ReadPrec BatchUpdateObjectAttributesResponse
Int -> ReadS BatchUpdateObjectAttributesResponse
ReadS [BatchUpdateObjectAttributesResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchUpdateObjectAttributesResponse]
$creadListPrec :: ReadPrec [BatchUpdateObjectAttributesResponse]
readPrec :: ReadPrec BatchUpdateObjectAttributesResponse
$creadPrec :: ReadPrec BatchUpdateObjectAttributesResponse
readList :: ReadS [BatchUpdateObjectAttributesResponse]
$creadList :: ReadS [BatchUpdateObjectAttributesResponse]
readsPrec :: Int -> ReadS BatchUpdateObjectAttributesResponse
$creadsPrec :: Int -> ReadS BatchUpdateObjectAttributesResponse
Prelude.Read, Int -> BatchUpdateObjectAttributesResponse -> ShowS
[BatchUpdateObjectAttributesResponse] -> ShowS
BatchUpdateObjectAttributesResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchUpdateObjectAttributesResponse] -> ShowS
$cshowList :: [BatchUpdateObjectAttributesResponse] -> ShowS
show :: BatchUpdateObjectAttributesResponse -> String
$cshow :: BatchUpdateObjectAttributesResponse -> String
showsPrec :: Int -> BatchUpdateObjectAttributesResponse -> ShowS
$cshowsPrec :: Int -> BatchUpdateObjectAttributesResponse -> ShowS
Prelude.Show, forall x.
Rep BatchUpdateObjectAttributesResponse x
-> BatchUpdateObjectAttributesResponse
forall x.
BatchUpdateObjectAttributesResponse
-> Rep BatchUpdateObjectAttributesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchUpdateObjectAttributesResponse x
-> BatchUpdateObjectAttributesResponse
$cfrom :: forall x.
BatchUpdateObjectAttributesResponse
-> Rep BatchUpdateObjectAttributesResponse x
Prelude.Generic)

-- |
-- Create a value of 'BatchUpdateObjectAttributesResponse' 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:
--
-- 'objectIdentifier', 'batchUpdateObjectAttributesResponse_objectIdentifier' - ID that is associated with the object.
newBatchUpdateObjectAttributesResponse ::
  BatchUpdateObjectAttributesResponse
newBatchUpdateObjectAttributesResponse :: BatchUpdateObjectAttributesResponse
newBatchUpdateObjectAttributesResponse =
  BatchUpdateObjectAttributesResponse'
    { $sel:objectIdentifier:BatchUpdateObjectAttributesResponse' :: Maybe Text
objectIdentifier =
        forall a. Maybe a
Prelude.Nothing
    }

-- | ID that is associated with the object.
batchUpdateObjectAttributesResponse_objectIdentifier :: Lens.Lens' BatchUpdateObjectAttributesResponse (Prelude.Maybe Prelude.Text)
batchUpdateObjectAttributesResponse_objectIdentifier :: Lens' BatchUpdateObjectAttributesResponse (Maybe Text)
batchUpdateObjectAttributesResponse_objectIdentifier = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchUpdateObjectAttributesResponse' {Maybe Text
objectIdentifier :: Maybe Text
$sel:objectIdentifier:BatchUpdateObjectAttributesResponse' :: BatchUpdateObjectAttributesResponse -> Maybe Text
objectIdentifier} -> Maybe Text
objectIdentifier) (\s :: BatchUpdateObjectAttributesResponse
s@BatchUpdateObjectAttributesResponse' {} Maybe Text
a -> BatchUpdateObjectAttributesResponse
s {$sel:objectIdentifier:BatchUpdateObjectAttributesResponse' :: Maybe Text
objectIdentifier = Maybe Text
a} :: BatchUpdateObjectAttributesResponse)

instance
  Data.FromJSON
    BatchUpdateObjectAttributesResponse
  where
  parseJSON :: Value -> Parser BatchUpdateObjectAttributesResponse
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"BatchUpdateObjectAttributesResponse"
      ( \Object
x ->
          Maybe Text -> BatchUpdateObjectAttributesResponse
BatchUpdateObjectAttributesResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ObjectIdentifier")
      )

instance
  Prelude.Hashable
    BatchUpdateObjectAttributesResponse
  where
  hashWithSalt :: Int -> BatchUpdateObjectAttributesResponse -> Int
hashWithSalt
    Int
_salt
    BatchUpdateObjectAttributesResponse' {Maybe Text
objectIdentifier :: Maybe Text
$sel:objectIdentifier:BatchUpdateObjectAttributesResponse' :: BatchUpdateObjectAttributesResponse -> Maybe Text
..} =
      Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
objectIdentifier

instance
  Prelude.NFData
    BatchUpdateObjectAttributesResponse
  where
  rnf :: BatchUpdateObjectAttributesResponse -> ()
rnf BatchUpdateObjectAttributesResponse' {Maybe Text
objectIdentifier :: Maybe Text
$sel:objectIdentifier:BatchUpdateObjectAttributesResponse' :: BatchUpdateObjectAttributesResponse -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
objectIdentifier