{-# 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-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)
module Amazonka.CloudDirectory.Types.BatchUpdateObjectAttributesResponse where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
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
(BatchUpdateObjectAttributesResponse
 -> BatchUpdateObjectAttributesResponse -> Bool)
-> (BatchUpdateObjectAttributesResponse
    -> BatchUpdateObjectAttributesResponse -> Bool)
-> Eq BatchUpdateObjectAttributesResponse
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]
(Int -> ReadS BatchUpdateObjectAttributesResponse)
-> ReadS [BatchUpdateObjectAttributesResponse]
-> ReadPrec BatchUpdateObjectAttributesResponse
-> ReadPrec [BatchUpdateObjectAttributesResponse]
-> Read 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
(Int -> BatchUpdateObjectAttributesResponse -> ShowS)
-> (BatchUpdateObjectAttributesResponse -> String)
-> ([BatchUpdateObjectAttributesResponse] -> ShowS)
-> Show BatchUpdateObjectAttributesResponse
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.
 BatchUpdateObjectAttributesResponse
 -> Rep BatchUpdateObjectAttributesResponse x)
-> (forall x.
    Rep BatchUpdateObjectAttributesResponse x
    -> BatchUpdateObjectAttributesResponse)
-> Generic BatchUpdateObjectAttributesResponse
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' :: Maybe Text -> BatchUpdateObjectAttributesResponse
BatchUpdateObjectAttributesResponse'
    { $sel:objectIdentifier:BatchUpdateObjectAttributesResponse' :: Maybe Text
objectIdentifier =
        Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | ID that is associated with the object.
batchUpdateObjectAttributesResponse_objectIdentifier :: Lens.Lens' BatchUpdateObjectAttributesResponse (Prelude.Maybe Prelude.Text)
batchUpdateObjectAttributesResponse_objectIdentifier :: (Maybe Text -> f (Maybe Text))
-> BatchUpdateObjectAttributesResponse
-> f BatchUpdateObjectAttributesResponse
batchUpdateObjectAttributesResponse_objectIdentifier = (BatchUpdateObjectAttributesResponse -> Maybe Text)
-> (BatchUpdateObjectAttributesResponse
    -> Maybe Text -> BatchUpdateObjectAttributesResponse)
-> Lens
     BatchUpdateObjectAttributesResponse
     BatchUpdateObjectAttributesResponse
     (Maybe Text)
     (Maybe Text)
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
  Core.FromJSON
    BatchUpdateObjectAttributesResponse
  where
  parseJSON :: Value -> Parser BatchUpdateObjectAttributesResponse
parseJSON =
    String
-> (Object -> Parser BatchUpdateObjectAttributesResponse)
-> Value
-> Parser BatchUpdateObjectAttributesResponse
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"BatchUpdateObjectAttributesResponse"
      ( \Object
x ->
          Maybe Text -> BatchUpdateObjectAttributesResponse
BatchUpdateObjectAttributesResponse'
            (Maybe Text -> BatchUpdateObjectAttributesResponse)
-> Parser (Maybe Text)
-> Parser BatchUpdateObjectAttributesResponse
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ObjectIdentifier")
      )

instance
  Prelude.Hashable
    BatchUpdateObjectAttributesResponse

instance
  Prelude.NFData
    BatchUpdateObjectAttributesResponse