{-# 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.IoTAnalytics.Types.JsonConfiguration
-- 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.IoTAnalytics.Types.JsonConfiguration 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

-- | Contains the configuration information of the JSON format.
--
-- /See:/ 'newJsonConfiguration' smart constructor.
data JsonConfiguration = JsonConfiguration'
  {
  }
  deriving (JsonConfiguration -> JsonConfiguration -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: JsonConfiguration -> JsonConfiguration -> Bool
$c/= :: JsonConfiguration -> JsonConfiguration -> Bool
== :: JsonConfiguration -> JsonConfiguration -> Bool
$c== :: JsonConfiguration -> JsonConfiguration -> Bool
Prelude.Eq, ReadPrec [JsonConfiguration]
ReadPrec JsonConfiguration
Int -> ReadS JsonConfiguration
ReadS [JsonConfiguration]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [JsonConfiguration]
$creadListPrec :: ReadPrec [JsonConfiguration]
readPrec :: ReadPrec JsonConfiguration
$creadPrec :: ReadPrec JsonConfiguration
readList :: ReadS [JsonConfiguration]
$creadList :: ReadS [JsonConfiguration]
readsPrec :: Int -> ReadS JsonConfiguration
$creadsPrec :: Int -> ReadS JsonConfiguration
Prelude.Read, Int -> JsonConfiguration -> ShowS
[JsonConfiguration] -> ShowS
JsonConfiguration -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [JsonConfiguration] -> ShowS
$cshowList :: [JsonConfiguration] -> ShowS
show :: JsonConfiguration -> String
$cshow :: JsonConfiguration -> String
showsPrec :: Int -> JsonConfiguration -> ShowS
$cshowsPrec :: Int -> JsonConfiguration -> ShowS
Prelude.Show, forall x. Rep JsonConfiguration x -> JsonConfiguration
forall x. JsonConfiguration -> Rep JsonConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep JsonConfiguration x -> JsonConfiguration
$cfrom :: forall x. JsonConfiguration -> Rep JsonConfiguration x
Prelude.Generic)

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

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

instance Prelude.Hashable JsonConfiguration where
  hashWithSalt :: Int -> JsonConfiguration -> Int
hashWithSalt Int
_salt JsonConfiguration
_ =
    Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` ()

instance Prelude.NFData JsonConfiguration where
  rnf :: JsonConfiguration -> ()
rnf JsonConfiguration
_ = ()

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