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

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
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
(JsonConfiguration -> JsonConfiguration -> Bool)
-> (JsonConfiguration -> JsonConfiguration -> Bool)
-> Eq JsonConfiguration
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]
(Int -> ReadS JsonConfiguration)
-> ReadS [JsonConfiguration]
-> ReadPrec JsonConfiguration
-> ReadPrec [JsonConfiguration]
-> Read 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
(Int -> JsonConfiguration -> ShowS)
-> (JsonConfiguration -> String)
-> ([JsonConfiguration] -> ShowS)
-> Show JsonConfiguration
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. JsonConfiguration -> Rep JsonConfiguration x)
-> (forall x. Rep JsonConfiguration x -> JsonConfiguration)
-> Generic JsonConfiguration
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 Core.FromJSON JsonConfiguration where
  parseJSON :: Value -> Parser JsonConfiguration
parseJSON =
    String
-> (Object -> Parser JsonConfiguration)
-> Value
-> Parser JsonConfiguration
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"JsonConfiguration"
      (\Object
x -> JsonConfiguration -> Parser JsonConfiguration
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure JsonConfiguration
JsonConfiguration')

instance Prelude.Hashable JsonConfiguration

instance Prelude.NFData JsonConfiguration

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