{-# 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.SSMIncidents.Types.EmptyChatChannel
-- 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.SSMIncidents.Types.EmptyChatChannel where

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

-- | Used to remove the chat channel from an incident record or response
-- plan.
--
-- /See:/ 'newEmptyChatChannel' smart constructor.
data EmptyChatChannel = EmptyChatChannel'
  {
  }
  deriving (EmptyChatChannel -> EmptyChatChannel -> Bool
(EmptyChatChannel -> EmptyChatChannel -> Bool)
-> (EmptyChatChannel -> EmptyChatChannel -> Bool)
-> Eq EmptyChatChannel
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: EmptyChatChannel -> EmptyChatChannel -> Bool
$c/= :: EmptyChatChannel -> EmptyChatChannel -> Bool
== :: EmptyChatChannel -> EmptyChatChannel -> Bool
$c== :: EmptyChatChannel -> EmptyChatChannel -> Bool
Prelude.Eq, ReadPrec [EmptyChatChannel]
ReadPrec EmptyChatChannel
Int -> ReadS EmptyChatChannel
ReadS [EmptyChatChannel]
(Int -> ReadS EmptyChatChannel)
-> ReadS [EmptyChatChannel]
-> ReadPrec EmptyChatChannel
-> ReadPrec [EmptyChatChannel]
-> Read EmptyChatChannel
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [EmptyChatChannel]
$creadListPrec :: ReadPrec [EmptyChatChannel]
readPrec :: ReadPrec EmptyChatChannel
$creadPrec :: ReadPrec EmptyChatChannel
readList :: ReadS [EmptyChatChannel]
$creadList :: ReadS [EmptyChatChannel]
readsPrec :: Int -> ReadS EmptyChatChannel
$creadsPrec :: Int -> ReadS EmptyChatChannel
Prelude.Read, Int -> EmptyChatChannel -> ShowS
[EmptyChatChannel] -> ShowS
EmptyChatChannel -> String
(Int -> EmptyChatChannel -> ShowS)
-> (EmptyChatChannel -> String)
-> ([EmptyChatChannel] -> ShowS)
-> Show EmptyChatChannel
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [EmptyChatChannel] -> ShowS
$cshowList :: [EmptyChatChannel] -> ShowS
show :: EmptyChatChannel -> String
$cshow :: EmptyChatChannel -> String
showsPrec :: Int -> EmptyChatChannel -> ShowS
$cshowsPrec :: Int -> EmptyChatChannel -> ShowS
Prelude.Show, (forall x. EmptyChatChannel -> Rep EmptyChatChannel x)
-> (forall x. Rep EmptyChatChannel x -> EmptyChatChannel)
-> Generic EmptyChatChannel
forall x. Rep EmptyChatChannel x -> EmptyChatChannel
forall x. EmptyChatChannel -> Rep EmptyChatChannel x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep EmptyChatChannel x -> EmptyChatChannel
$cfrom :: forall x. EmptyChatChannel -> Rep EmptyChatChannel x
Prelude.Generic)

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

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

instance Prelude.Hashable EmptyChatChannel

instance Prelude.NFData EmptyChatChannel

instance Core.ToJSON EmptyChatChannel where
  toJSON :: EmptyChatChannel -> Value
toJSON = Value -> EmptyChatChannel -> Value
forall a b. a -> b -> a
Prelude.const (Object -> Value
Core.Object Object
forall a. Monoid a => a
Prelude.mempty)