{-# 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.IotTwinMaker.Types.PropertyDefinitionRequest
-- 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.IotTwinMaker.Types.PropertyDefinitionRequest where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.IotTwinMaker.Types.DataType
import Amazonka.IotTwinMaker.Types.DataValue
import qualified Amazonka.Prelude as Prelude

-- | An object that sets information about a property.
--
-- /See:/ 'newPropertyDefinitionRequest' smart constructor.
data PropertyDefinitionRequest = PropertyDefinitionRequest'
  { -- | A mapping that specifies configuration information about the property.
    -- Use this field to specify information that you read from and write to an
    -- external source.
    PropertyDefinitionRequest -> Maybe (HashMap Text Text)
configuration :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | An object that contains information about the data type.
    PropertyDefinitionRequest -> Maybe DataType
dataType :: Prelude.Maybe DataType,
    -- | An object that contains the default value.
    PropertyDefinitionRequest -> Maybe DataValue
defaultValue :: Prelude.Maybe DataValue,
    -- | A friendly name for the property.
    PropertyDefinitionRequest -> Maybe Text
displayName :: Prelude.Maybe Prelude.Text,
    -- | A Boolean value that specifies whether the property ID comes from an
    -- external data store.
    PropertyDefinitionRequest -> Maybe Bool
isExternalId :: Prelude.Maybe Prelude.Bool,
    -- | A Boolean value that specifies whether the property is required.
    PropertyDefinitionRequest -> Maybe Bool
isRequiredInEntity :: Prelude.Maybe Prelude.Bool,
    -- | A Boolean value that specifies whether the property is stored
    -- externally.
    PropertyDefinitionRequest -> Maybe Bool
isStoredExternally :: Prelude.Maybe Prelude.Bool,
    -- | A Boolean value that specifies whether the property consists of time
    -- series data.
    PropertyDefinitionRequest -> Maybe Bool
isTimeSeries :: Prelude.Maybe Prelude.Bool
  }
  deriving (PropertyDefinitionRequest -> PropertyDefinitionRequest -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PropertyDefinitionRequest -> PropertyDefinitionRequest -> Bool
$c/= :: PropertyDefinitionRequest -> PropertyDefinitionRequest -> Bool
== :: PropertyDefinitionRequest -> PropertyDefinitionRequest -> Bool
$c== :: PropertyDefinitionRequest -> PropertyDefinitionRequest -> Bool
Prelude.Eq, ReadPrec [PropertyDefinitionRequest]
ReadPrec PropertyDefinitionRequest
Int -> ReadS PropertyDefinitionRequest
ReadS [PropertyDefinitionRequest]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PropertyDefinitionRequest]
$creadListPrec :: ReadPrec [PropertyDefinitionRequest]
readPrec :: ReadPrec PropertyDefinitionRequest
$creadPrec :: ReadPrec PropertyDefinitionRequest
readList :: ReadS [PropertyDefinitionRequest]
$creadList :: ReadS [PropertyDefinitionRequest]
readsPrec :: Int -> ReadS PropertyDefinitionRequest
$creadsPrec :: Int -> ReadS PropertyDefinitionRequest
Prelude.Read, Int -> PropertyDefinitionRequest -> ShowS
[PropertyDefinitionRequest] -> ShowS
PropertyDefinitionRequest -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PropertyDefinitionRequest] -> ShowS
$cshowList :: [PropertyDefinitionRequest] -> ShowS
show :: PropertyDefinitionRequest -> String
$cshow :: PropertyDefinitionRequest -> String
showsPrec :: Int -> PropertyDefinitionRequest -> ShowS
$cshowsPrec :: Int -> PropertyDefinitionRequest -> ShowS
Prelude.Show, forall x.
Rep PropertyDefinitionRequest x -> PropertyDefinitionRequest
forall x.
PropertyDefinitionRequest -> Rep PropertyDefinitionRequest x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PropertyDefinitionRequest x -> PropertyDefinitionRequest
$cfrom :: forall x.
PropertyDefinitionRequest -> Rep PropertyDefinitionRequest x
Prelude.Generic)

-- |
-- Create a value of 'PropertyDefinitionRequest' 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.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'configuration', 'propertyDefinitionRequest_configuration' - A mapping that specifies configuration information about the property.
-- Use this field to specify information that you read from and write to an
-- external source.
--
-- 'dataType', 'propertyDefinitionRequest_dataType' - An object that contains information about the data type.
--
-- 'defaultValue', 'propertyDefinitionRequest_defaultValue' - An object that contains the default value.
--
-- 'displayName', 'propertyDefinitionRequest_displayName' - A friendly name for the property.
--
-- 'isExternalId', 'propertyDefinitionRequest_isExternalId' - A Boolean value that specifies whether the property ID comes from an
-- external data store.
--
-- 'isRequiredInEntity', 'propertyDefinitionRequest_isRequiredInEntity' - A Boolean value that specifies whether the property is required.
--
-- 'isStoredExternally', 'propertyDefinitionRequest_isStoredExternally' - A Boolean value that specifies whether the property is stored
-- externally.
--
-- 'isTimeSeries', 'propertyDefinitionRequest_isTimeSeries' - A Boolean value that specifies whether the property consists of time
-- series data.
newPropertyDefinitionRequest ::
  PropertyDefinitionRequest
newPropertyDefinitionRequest :: PropertyDefinitionRequest
newPropertyDefinitionRequest =
  PropertyDefinitionRequest'
    { $sel:configuration:PropertyDefinitionRequest' :: Maybe (HashMap Text Text)
configuration =
        forall a. Maybe a
Prelude.Nothing,
      $sel:dataType:PropertyDefinitionRequest' :: Maybe DataType
dataType = forall a. Maybe a
Prelude.Nothing,
      $sel:defaultValue:PropertyDefinitionRequest' :: Maybe DataValue
defaultValue = forall a. Maybe a
Prelude.Nothing,
      $sel:displayName:PropertyDefinitionRequest' :: Maybe Text
displayName = forall a. Maybe a
Prelude.Nothing,
      $sel:isExternalId:PropertyDefinitionRequest' :: Maybe Bool
isExternalId = forall a. Maybe a
Prelude.Nothing,
      $sel:isRequiredInEntity:PropertyDefinitionRequest' :: Maybe Bool
isRequiredInEntity = forall a. Maybe a
Prelude.Nothing,
      $sel:isStoredExternally:PropertyDefinitionRequest' :: Maybe Bool
isStoredExternally = forall a. Maybe a
Prelude.Nothing,
      $sel:isTimeSeries:PropertyDefinitionRequest' :: Maybe Bool
isTimeSeries = forall a. Maybe a
Prelude.Nothing
    }

-- | A mapping that specifies configuration information about the property.
-- Use this field to specify information that you read from and write to an
-- external source.
propertyDefinitionRequest_configuration :: Lens.Lens' PropertyDefinitionRequest (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
propertyDefinitionRequest_configuration :: Lens' PropertyDefinitionRequest (Maybe (HashMap Text Text))
propertyDefinitionRequest_configuration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PropertyDefinitionRequest' {Maybe (HashMap Text Text)
configuration :: Maybe (HashMap Text Text)
$sel:configuration:PropertyDefinitionRequest' :: PropertyDefinitionRequest -> Maybe (HashMap Text Text)
configuration} -> Maybe (HashMap Text Text)
configuration) (\s :: PropertyDefinitionRequest
s@PropertyDefinitionRequest' {} Maybe (HashMap Text Text)
a -> PropertyDefinitionRequest
s {$sel:configuration:PropertyDefinitionRequest' :: Maybe (HashMap Text Text)
configuration = Maybe (HashMap Text Text)
a} :: PropertyDefinitionRequest) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | An object that contains information about the data type.
propertyDefinitionRequest_dataType :: Lens.Lens' PropertyDefinitionRequest (Prelude.Maybe DataType)
propertyDefinitionRequest_dataType :: Lens' PropertyDefinitionRequest (Maybe DataType)
propertyDefinitionRequest_dataType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PropertyDefinitionRequest' {Maybe DataType
dataType :: Maybe DataType
$sel:dataType:PropertyDefinitionRequest' :: PropertyDefinitionRequest -> Maybe DataType
dataType} -> Maybe DataType
dataType) (\s :: PropertyDefinitionRequest
s@PropertyDefinitionRequest' {} Maybe DataType
a -> PropertyDefinitionRequest
s {$sel:dataType:PropertyDefinitionRequest' :: Maybe DataType
dataType = Maybe DataType
a} :: PropertyDefinitionRequest)

-- | An object that contains the default value.
propertyDefinitionRequest_defaultValue :: Lens.Lens' PropertyDefinitionRequest (Prelude.Maybe DataValue)
propertyDefinitionRequest_defaultValue :: Lens' PropertyDefinitionRequest (Maybe DataValue)
propertyDefinitionRequest_defaultValue = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PropertyDefinitionRequest' {Maybe DataValue
defaultValue :: Maybe DataValue
$sel:defaultValue:PropertyDefinitionRequest' :: PropertyDefinitionRequest -> Maybe DataValue
defaultValue} -> Maybe DataValue
defaultValue) (\s :: PropertyDefinitionRequest
s@PropertyDefinitionRequest' {} Maybe DataValue
a -> PropertyDefinitionRequest
s {$sel:defaultValue:PropertyDefinitionRequest' :: Maybe DataValue
defaultValue = Maybe DataValue
a} :: PropertyDefinitionRequest)

-- | A friendly name for the property.
propertyDefinitionRequest_displayName :: Lens.Lens' PropertyDefinitionRequest (Prelude.Maybe Prelude.Text)
propertyDefinitionRequest_displayName :: Lens' PropertyDefinitionRequest (Maybe Text)
propertyDefinitionRequest_displayName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PropertyDefinitionRequest' {Maybe Text
displayName :: Maybe Text
$sel:displayName:PropertyDefinitionRequest' :: PropertyDefinitionRequest -> Maybe Text
displayName} -> Maybe Text
displayName) (\s :: PropertyDefinitionRequest
s@PropertyDefinitionRequest' {} Maybe Text
a -> PropertyDefinitionRequest
s {$sel:displayName:PropertyDefinitionRequest' :: Maybe Text
displayName = Maybe Text
a} :: PropertyDefinitionRequest)

-- | A Boolean value that specifies whether the property ID comes from an
-- external data store.
propertyDefinitionRequest_isExternalId :: Lens.Lens' PropertyDefinitionRequest (Prelude.Maybe Prelude.Bool)
propertyDefinitionRequest_isExternalId :: Lens' PropertyDefinitionRequest (Maybe Bool)
propertyDefinitionRequest_isExternalId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PropertyDefinitionRequest' {Maybe Bool
isExternalId :: Maybe Bool
$sel:isExternalId:PropertyDefinitionRequest' :: PropertyDefinitionRequest -> Maybe Bool
isExternalId} -> Maybe Bool
isExternalId) (\s :: PropertyDefinitionRequest
s@PropertyDefinitionRequest' {} Maybe Bool
a -> PropertyDefinitionRequest
s {$sel:isExternalId:PropertyDefinitionRequest' :: Maybe Bool
isExternalId = Maybe Bool
a} :: PropertyDefinitionRequest)

-- | A Boolean value that specifies whether the property is required.
propertyDefinitionRequest_isRequiredInEntity :: Lens.Lens' PropertyDefinitionRequest (Prelude.Maybe Prelude.Bool)
propertyDefinitionRequest_isRequiredInEntity :: Lens' PropertyDefinitionRequest (Maybe Bool)
propertyDefinitionRequest_isRequiredInEntity = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PropertyDefinitionRequest' {Maybe Bool
isRequiredInEntity :: Maybe Bool
$sel:isRequiredInEntity:PropertyDefinitionRequest' :: PropertyDefinitionRequest -> Maybe Bool
isRequiredInEntity} -> Maybe Bool
isRequiredInEntity) (\s :: PropertyDefinitionRequest
s@PropertyDefinitionRequest' {} Maybe Bool
a -> PropertyDefinitionRequest
s {$sel:isRequiredInEntity:PropertyDefinitionRequest' :: Maybe Bool
isRequiredInEntity = Maybe Bool
a} :: PropertyDefinitionRequest)

-- | A Boolean value that specifies whether the property is stored
-- externally.
propertyDefinitionRequest_isStoredExternally :: Lens.Lens' PropertyDefinitionRequest (Prelude.Maybe Prelude.Bool)
propertyDefinitionRequest_isStoredExternally :: Lens' PropertyDefinitionRequest (Maybe Bool)
propertyDefinitionRequest_isStoredExternally = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PropertyDefinitionRequest' {Maybe Bool
isStoredExternally :: Maybe Bool
$sel:isStoredExternally:PropertyDefinitionRequest' :: PropertyDefinitionRequest -> Maybe Bool
isStoredExternally} -> Maybe Bool
isStoredExternally) (\s :: PropertyDefinitionRequest
s@PropertyDefinitionRequest' {} Maybe Bool
a -> PropertyDefinitionRequest
s {$sel:isStoredExternally:PropertyDefinitionRequest' :: Maybe Bool
isStoredExternally = Maybe Bool
a} :: PropertyDefinitionRequest)

-- | A Boolean value that specifies whether the property consists of time
-- series data.
propertyDefinitionRequest_isTimeSeries :: Lens.Lens' PropertyDefinitionRequest (Prelude.Maybe Prelude.Bool)
propertyDefinitionRequest_isTimeSeries :: Lens' PropertyDefinitionRequest (Maybe Bool)
propertyDefinitionRequest_isTimeSeries = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PropertyDefinitionRequest' {Maybe Bool
isTimeSeries :: Maybe Bool
$sel:isTimeSeries:PropertyDefinitionRequest' :: PropertyDefinitionRequest -> Maybe Bool
isTimeSeries} -> Maybe Bool
isTimeSeries) (\s :: PropertyDefinitionRequest
s@PropertyDefinitionRequest' {} Maybe Bool
a -> PropertyDefinitionRequest
s {$sel:isTimeSeries:PropertyDefinitionRequest' :: Maybe Bool
isTimeSeries = Maybe Bool
a} :: PropertyDefinitionRequest)

instance Prelude.Hashable PropertyDefinitionRequest where
  hashWithSalt :: Int -> PropertyDefinitionRequest -> Int
hashWithSalt Int
_salt PropertyDefinitionRequest' {Maybe Bool
Maybe Text
Maybe (HashMap Text Text)
Maybe DataValue
Maybe DataType
isTimeSeries :: Maybe Bool
isStoredExternally :: Maybe Bool
isRequiredInEntity :: Maybe Bool
isExternalId :: Maybe Bool
displayName :: Maybe Text
defaultValue :: Maybe DataValue
dataType :: Maybe DataType
configuration :: Maybe (HashMap Text Text)
$sel:isTimeSeries:PropertyDefinitionRequest' :: PropertyDefinitionRequest -> Maybe Bool
$sel:isStoredExternally:PropertyDefinitionRequest' :: PropertyDefinitionRequest -> Maybe Bool
$sel:isRequiredInEntity:PropertyDefinitionRequest' :: PropertyDefinitionRequest -> Maybe Bool
$sel:isExternalId:PropertyDefinitionRequest' :: PropertyDefinitionRequest -> Maybe Bool
$sel:displayName:PropertyDefinitionRequest' :: PropertyDefinitionRequest -> Maybe Text
$sel:defaultValue:PropertyDefinitionRequest' :: PropertyDefinitionRequest -> Maybe DataValue
$sel:dataType:PropertyDefinitionRequest' :: PropertyDefinitionRequest -> Maybe DataType
$sel:configuration:PropertyDefinitionRequest' :: PropertyDefinitionRequest -> Maybe (HashMap Text Text)
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
configuration
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DataType
dataType
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DataValue
defaultValue
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
displayName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
isExternalId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
isRequiredInEntity
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
isStoredExternally
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
isTimeSeries

instance Prelude.NFData PropertyDefinitionRequest where
  rnf :: PropertyDefinitionRequest -> ()
rnf PropertyDefinitionRequest' {Maybe Bool
Maybe Text
Maybe (HashMap Text Text)
Maybe DataValue
Maybe DataType
isTimeSeries :: Maybe Bool
isStoredExternally :: Maybe Bool
isRequiredInEntity :: Maybe Bool
isExternalId :: Maybe Bool
displayName :: Maybe Text
defaultValue :: Maybe DataValue
dataType :: Maybe DataType
configuration :: Maybe (HashMap Text Text)
$sel:isTimeSeries:PropertyDefinitionRequest' :: PropertyDefinitionRequest -> Maybe Bool
$sel:isStoredExternally:PropertyDefinitionRequest' :: PropertyDefinitionRequest -> Maybe Bool
$sel:isRequiredInEntity:PropertyDefinitionRequest' :: PropertyDefinitionRequest -> Maybe Bool
$sel:isExternalId:PropertyDefinitionRequest' :: PropertyDefinitionRequest -> Maybe Bool
$sel:displayName:PropertyDefinitionRequest' :: PropertyDefinitionRequest -> Maybe Text
$sel:defaultValue:PropertyDefinitionRequest' :: PropertyDefinitionRequest -> Maybe DataValue
$sel:dataType:PropertyDefinitionRequest' :: PropertyDefinitionRequest -> Maybe DataType
$sel:configuration:PropertyDefinitionRequest' :: PropertyDefinitionRequest -> Maybe (HashMap Text Text)
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
configuration
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DataType
dataType
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DataValue
defaultValue
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
displayName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
isExternalId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
isRequiredInEntity
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
isStoredExternally
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
isTimeSeries

instance Data.ToJSON PropertyDefinitionRequest where
  toJSON :: PropertyDefinitionRequest -> Value
toJSON PropertyDefinitionRequest' {Maybe Bool
Maybe Text
Maybe (HashMap Text Text)
Maybe DataValue
Maybe DataType
isTimeSeries :: Maybe Bool
isStoredExternally :: Maybe Bool
isRequiredInEntity :: Maybe Bool
isExternalId :: Maybe Bool
displayName :: Maybe Text
defaultValue :: Maybe DataValue
dataType :: Maybe DataType
configuration :: Maybe (HashMap Text Text)
$sel:isTimeSeries:PropertyDefinitionRequest' :: PropertyDefinitionRequest -> Maybe Bool
$sel:isStoredExternally:PropertyDefinitionRequest' :: PropertyDefinitionRequest -> Maybe Bool
$sel:isRequiredInEntity:PropertyDefinitionRequest' :: PropertyDefinitionRequest -> Maybe Bool
$sel:isExternalId:PropertyDefinitionRequest' :: PropertyDefinitionRequest -> Maybe Bool
$sel:displayName:PropertyDefinitionRequest' :: PropertyDefinitionRequest -> Maybe Text
$sel:defaultValue:PropertyDefinitionRequest' :: PropertyDefinitionRequest -> Maybe DataValue
$sel:dataType:PropertyDefinitionRequest' :: PropertyDefinitionRequest -> Maybe DataType
$sel:configuration:PropertyDefinitionRequest' :: PropertyDefinitionRequest -> Maybe (HashMap Text Text)
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"configuration" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
configuration,
            (Key
"dataType" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DataType
dataType,
            (Key
"defaultValue" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DataValue
defaultValue,
            (Key
"displayName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
displayName,
            (Key
"isExternalId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
isExternalId,
            (Key
"isRequiredInEntity" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
isRequiredInEntity,
            (Key
"isStoredExternally" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
isStoredExternally,
            (Key
"isTimeSeries" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
isTimeSeries
          ]
      )