{-# 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.BatchAttachPolicyResponse
-- 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.BatchAttachPolicyResponse where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Represents the output of an AttachPolicy response operation.
--
-- /See:/ 'newBatchAttachPolicyResponse' smart constructor.
data BatchAttachPolicyResponse = BatchAttachPolicyResponse'
  {
  }
  deriving (BatchAttachPolicyResponse -> BatchAttachPolicyResponse -> Bool
(BatchAttachPolicyResponse -> BatchAttachPolicyResponse -> Bool)
-> (BatchAttachPolicyResponse -> BatchAttachPolicyResponse -> Bool)
-> Eq BatchAttachPolicyResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchAttachPolicyResponse -> BatchAttachPolicyResponse -> Bool
$c/= :: BatchAttachPolicyResponse -> BatchAttachPolicyResponse -> Bool
== :: BatchAttachPolicyResponse -> BatchAttachPolicyResponse -> Bool
$c== :: BatchAttachPolicyResponse -> BatchAttachPolicyResponse -> Bool
Prelude.Eq, ReadPrec [BatchAttachPolicyResponse]
ReadPrec BatchAttachPolicyResponse
Int -> ReadS BatchAttachPolicyResponse
ReadS [BatchAttachPolicyResponse]
(Int -> ReadS BatchAttachPolicyResponse)
-> ReadS [BatchAttachPolicyResponse]
-> ReadPrec BatchAttachPolicyResponse
-> ReadPrec [BatchAttachPolicyResponse]
-> Read BatchAttachPolicyResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchAttachPolicyResponse]
$creadListPrec :: ReadPrec [BatchAttachPolicyResponse]
readPrec :: ReadPrec BatchAttachPolicyResponse
$creadPrec :: ReadPrec BatchAttachPolicyResponse
readList :: ReadS [BatchAttachPolicyResponse]
$creadList :: ReadS [BatchAttachPolicyResponse]
readsPrec :: Int -> ReadS BatchAttachPolicyResponse
$creadsPrec :: Int -> ReadS BatchAttachPolicyResponse
Prelude.Read, Int -> BatchAttachPolicyResponse -> ShowS
[BatchAttachPolicyResponse] -> ShowS
BatchAttachPolicyResponse -> String
(Int -> BatchAttachPolicyResponse -> ShowS)
-> (BatchAttachPolicyResponse -> String)
-> ([BatchAttachPolicyResponse] -> ShowS)
-> Show BatchAttachPolicyResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchAttachPolicyResponse] -> ShowS
$cshowList :: [BatchAttachPolicyResponse] -> ShowS
show :: BatchAttachPolicyResponse -> String
$cshow :: BatchAttachPolicyResponse -> String
showsPrec :: Int -> BatchAttachPolicyResponse -> ShowS
$cshowsPrec :: Int -> BatchAttachPolicyResponse -> ShowS
Prelude.Show, (forall x.
 BatchAttachPolicyResponse -> Rep BatchAttachPolicyResponse x)
-> (forall x.
    Rep BatchAttachPolicyResponse x -> BatchAttachPolicyResponse)
-> Generic BatchAttachPolicyResponse
forall x.
Rep BatchAttachPolicyResponse x -> BatchAttachPolicyResponse
forall x.
BatchAttachPolicyResponse -> Rep BatchAttachPolicyResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchAttachPolicyResponse x -> BatchAttachPolicyResponse
$cfrom :: forall x.
BatchAttachPolicyResponse -> Rep BatchAttachPolicyResponse x
Prelude.Generic)

-- |
-- Create a value of 'BatchAttachPolicyResponse' 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.
newBatchAttachPolicyResponse ::
  BatchAttachPolicyResponse
newBatchAttachPolicyResponse :: BatchAttachPolicyResponse
newBatchAttachPolicyResponse =
  BatchAttachPolicyResponse
BatchAttachPolicyResponse'

instance Core.FromJSON BatchAttachPolicyResponse where
  parseJSON :: Value -> Parser BatchAttachPolicyResponse
parseJSON =
    String
-> (Object -> Parser BatchAttachPolicyResponse)
-> Value
-> Parser BatchAttachPolicyResponse
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"BatchAttachPolicyResponse"
      (\Object
x -> BatchAttachPolicyResponse -> Parser BatchAttachPolicyResponse
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure BatchAttachPolicyResponse
BatchAttachPolicyResponse')

instance Prelude.Hashable BatchAttachPolicyResponse

instance Prelude.NFData BatchAttachPolicyResponse