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

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

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

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

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

instance Prelude.Hashable BatchDetachPolicyResponse

instance Prelude.NFData BatchDetachPolicyResponse