{-# 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.PropertyDefinitionResponse
-- 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.PropertyDefinitionResponse 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 contains response data from a property definition
-- request.
--
-- /See:/ 'newPropertyDefinitionResponse' smart constructor.
data PropertyDefinitionResponse = PropertyDefinitionResponse'
  { -- | A mapping that specifies configuration information about the property.
    PropertyDefinitionResponse -> Maybe (HashMap Text Text)
configuration :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | An object that contains the default value.
    PropertyDefinitionResponse -> Maybe DataValue
defaultValue :: Prelude.Maybe DataValue,
    -- | A friendly name for the property.
    PropertyDefinitionResponse -> Maybe Text
displayName :: Prelude.Maybe Prelude.Text,
    -- | An object that contains information about the data type.
    PropertyDefinitionResponse -> DataType
dataType :: DataType,
    -- | A Boolean value that specifies whether the property consists of time
    -- series data.
    PropertyDefinitionResponse -> Bool
isTimeSeries :: Prelude.Bool,
    -- | A Boolean value that specifies whether the property is required in an
    -- entity.
    PropertyDefinitionResponse -> Bool
isRequiredInEntity :: Prelude.Bool,
    -- | A Boolean value that specifies whether the property ID comes from an
    -- external data store.
    PropertyDefinitionResponse -> Bool
isExternalId :: Prelude.Bool,
    -- | A Boolean value that specifies whether the property is stored
    -- externally.
    PropertyDefinitionResponse -> Bool
isStoredExternally :: Prelude.Bool,
    -- | A Boolean value that specifies whether the property definition is
    -- imported from an external data store.
    PropertyDefinitionResponse -> Bool
isImported :: Prelude.Bool,
    -- | A Boolean value that specifies whether the property definition can be
    -- updated.
    PropertyDefinitionResponse -> Bool
isFinal :: Prelude.Bool,
    -- | A Boolean value that specifies whether the property definition is
    -- inherited from a parent entity.
    PropertyDefinitionResponse -> Bool
isInherited :: Prelude.Bool
  }
  deriving (PropertyDefinitionResponse -> PropertyDefinitionResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PropertyDefinitionResponse -> PropertyDefinitionResponse -> Bool
$c/= :: PropertyDefinitionResponse -> PropertyDefinitionResponse -> Bool
== :: PropertyDefinitionResponse -> PropertyDefinitionResponse -> Bool
$c== :: PropertyDefinitionResponse -> PropertyDefinitionResponse -> Bool
Prelude.Eq, ReadPrec [PropertyDefinitionResponse]
ReadPrec PropertyDefinitionResponse
Int -> ReadS PropertyDefinitionResponse
ReadS [PropertyDefinitionResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PropertyDefinitionResponse]
$creadListPrec :: ReadPrec [PropertyDefinitionResponse]
readPrec :: ReadPrec PropertyDefinitionResponse
$creadPrec :: ReadPrec PropertyDefinitionResponse
readList :: ReadS [PropertyDefinitionResponse]
$creadList :: ReadS [PropertyDefinitionResponse]
readsPrec :: Int -> ReadS PropertyDefinitionResponse
$creadsPrec :: Int -> ReadS PropertyDefinitionResponse
Prelude.Read, Int -> PropertyDefinitionResponse -> ShowS
[PropertyDefinitionResponse] -> ShowS
PropertyDefinitionResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PropertyDefinitionResponse] -> ShowS
$cshowList :: [PropertyDefinitionResponse] -> ShowS
show :: PropertyDefinitionResponse -> String
$cshow :: PropertyDefinitionResponse -> String
showsPrec :: Int -> PropertyDefinitionResponse -> ShowS
$cshowsPrec :: Int -> PropertyDefinitionResponse -> ShowS
Prelude.Show, forall x.
Rep PropertyDefinitionResponse x -> PropertyDefinitionResponse
forall x.
PropertyDefinitionResponse -> Rep PropertyDefinitionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PropertyDefinitionResponse x -> PropertyDefinitionResponse
$cfrom :: forall x.
PropertyDefinitionResponse -> Rep PropertyDefinitionResponse x
Prelude.Generic)

-- |
-- Create a value of 'PropertyDefinitionResponse' 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', 'propertyDefinitionResponse_configuration' - A mapping that specifies configuration information about the property.
--
-- 'defaultValue', 'propertyDefinitionResponse_defaultValue' - An object that contains the default value.
--
-- 'displayName', 'propertyDefinitionResponse_displayName' - A friendly name for the property.
--
-- 'dataType', 'propertyDefinitionResponse_dataType' - An object that contains information about the data type.
--
-- 'isTimeSeries', 'propertyDefinitionResponse_isTimeSeries' - A Boolean value that specifies whether the property consists of time
-- series data.
--
-- 'isRequiredInEntity', 'propertyDefinitionResponse_isRequiredInEntity' - A Boolean value that specifies whether the property is required in an
-- entity.
--
-- 'isExternalId', 'propertyDefinitionResponse_isExternalId' - A Boolean value that specifies whether the property ID comes from an
-- external data store.
--
-- 'isStoredExternally', 'propertyDefinitionResponse_isStoredExternally' - A Boolean value that specifies whether the property is stored
-- externally.
--
-- 'isImported', 'propertyDefinitionResponse_isImported' - A Boolean value that specifies whether the property definition is
-- imported from an external data store.
--
-- 'isFinal', 'propertyDefinitionResponse_isFinal' - A Boolean value that specifies whether the property definition can be
-- updated.
--
-- 'isInherited', 'propertyDefinitionResponse_isInherited' - A Boolean value that specifies whether the property definition is
-- inherited from a parent entity.
newPropertyDefinitionResponse ::
  -- | 'dataType'
  DataType ->
  -- | 'isTimeSeries'
  Prelude.Bool ->
  -- | 'isRequiredInEntity'
  Prelude.Bool ->
  -- | 'isExternalId'
  Prelude.Bool ->
  -- | 'isStoredExternally'
  Prelude.Bool ->
  -- | 'isImported'
  Prelude.Bool ->
  -- | 'isFinal'
  Prelude.Bool ->
  -- | 'isInherited'
  Prelude.Bool ->
  PropertyDefinitionResponse
newPropertyDefinitionResponse :: DataType
-> Bool
-> Bool
-> Bool
-> Bool
-> Bool
-> Bool
-> Bool
-> PropertyDefinitionResponse
newPropertyDefinitionResponse
  DataType
pDataType_
  Bool
pIsTimeSeries_
  Bool
pIsRequiredInEntity_
  Bool
pIsExternalId_
  Bool
pIsStoredExternally_
  Bool
pIsImported_
  Bool
pIsFinal_
  Bool
pIsInherited_ =
    PropertyDefinitionResponse'
      { $sel:configuration:PropertyDefinitionResponse' :: Maybe (HashMap Text Text)
configuration =
          forall a. Maybe a
Prelude.Nothing,
        $sel:defaultValue:PropertyDefinitionResponse' :: Maybe DataValue
defaultValue = forall a. Maybe a
Prelude.Nothing,
        $sel:displayName:PropertyDefinitionResponse' :: Maybe Text
displayName = forall a. Maybe a
Prelude.Nothing,
        $sel:dataType:PropertyDefinitionResponse' :: DataType
dataType = DataType
pDataType_,
        $sel:isTimeSeries:PropertyDefinitionResponse' :: Bool
isTimeSeries = Bool
pIsTimeSeries_,
        $sel:isRequiredInEntity:PropertyDefinitionResponse' :: Bool
isRequiredInEntity = Bool
pIsRequiredInEntity_,
        $sel:isExternalId:PropertyDefinitionResponse' :: Bool
isExternalId = Bool
pIsExternalId_,
        $sel:isStoredExternally:PropertyDefinitionResponse' :: Bool
isStoredExternally = Bool
pIsStoredExternally_,
        $sel:isImported:PropertyDefinitionResponse' :: Bool
isImported = Bool
pIsImported_,
        $sel:isFinal:PropertyDefinitionResponse' :: Bool
isFinal = Bool
pIsFinal_,
        $sel:isInherited:PropertyDefinitionResponse' :: Bool
isInherited = Bool
pIsInherited_
      }

-- | A mapping that specifies configuration information about the property.
propertyDefinitionResponse_configuration :: Lens.Lens' PropertyDefinitionResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
propertyDefinitionResponse_configuration :: Lens' PropertyDefinitionResponse (Maybe (HashMap Text Text))
propertyDefinitionResponse_configuration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PropertyDefinitionResponse' {Maybe (HashMap Text Text)
configuration :: Maybe (HashMap Text Text)
$sel:configuration:PropertyDefinitionResponse' :: PropertyDefinitionResponse -> Maybe (HashMap Text Text)
configuration} -> Maybe (HashMap Text Text)
configuration) (\s :: PropertyDefinitionResponse
s@PropertyDefinitionResponse' {} Maybe (HashMap Text Text)
a -> PropertyDefinitionResponse
s {$sel:configuration:PropertyDefinitionResponse' :: Maybe (HashMap Text Text)
configuration = Maybe (HashMap Text Text)
a} :: PropertyDefinitionResponse) 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 the default value.
propertyDefinitionResponse_defaultValue :: Lens.Lens' PropertyDefinitionResponse (Prelude.Maybe DataValue)
propertyDefinitionResponse_defaultValue :: Lens' PropertyDefinitionResponse (Maybe DataValue)
propertyDefinitionResponse_defaultValue = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PropertyDefinitionResponse' {Maybe DataValue
defaultValue :: Maybe DataValue
$sel:defaultValue:PropertyDefinitionResponse' :: PropertyDefinitionResponse -> Maybe DataValue
defaultValue} -> Maybe DataValue
defaultValue) (\s :: PropertyDefinitionResponse
s@PropertyDefinitionResponse' {} Maybe DataValue
a -> PropertyDefinitionResponse
s {$sel:defaultValue:PropertyDefinitionResponse' :: Maybe DataValue
defaultValue = Maybe DataValue
a} :: PropertyDefinitionResponse)

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

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

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

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

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

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

-- | A Boolean value that specifies whether the property definition is
-- imported from an external data store.
propertyDefinitionResponse_isImported :: Lens.Lens' PropertyDefinitionResponse Prelude.Bool
propertyDefinitionResponse_isImported :: Lens' PropertyDefinitionResponse Bool
propertyDefinitionResponse_isImported = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PropertyDefinitionResponse' {Bool
isImported :: Bool
$sel:isImported:PropertyDefinitionResponse' :: PropertyDefinitionResponse -> Bool
isImported} -> Bool
isImported) (\s :: PropertyDefinitionResponse
s@PropertyDefinitionResponse' {} Bool
a -> PropertyDefinitionResponse
s {$sel:isImported:PropertyDefinitionResponse' :: Bool
isImported = Bool
a} :: PropertyDefinitionResponse)

-- | A Boolean value that specifies whether the property definition can be
-- updated.
propertyDefinitionResponse_isFinal :: Lens.Lens' PropertyDefinitionResponse Prelude.Bool
propertyDefinitionResponse_isFinal :: Lens' PropertyDefinitionResponse Bool
propertyDefinitionResponse_isFinal = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PropertyDefinitionResponse' {Bool
isFinal :: Bool
$sel:isFinal:PropertyDefinitionResponse' :: PropertyDefinitionResponse -> Bool
isFinal} -> Bool
isFinal) (\s :: PropertyDefinitionResponse
s@PropertyDefinitionResponse' {} Bool
a -> PropertyDefinitionResponse
s {$sel:isFinal:PropertyDefinitionResponse' :: Bool
isFinal = Bool
a} :: PropertyDefinitionResponse)

-- | A Boolean value that specifies whether the property definition is
-- inherited from a parent entity.
propertyDefinitionResponse_isInherited :: Lens.Lens' PropertyDefinitionResponse Prelude.Bool
propertyDefinitionResponse_isInherited :: Lens' PropertyDefinitionResponse Bool
propertyDefinitionResponse_isInherited = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PropertyDefinitionResponse' {Bool
isInherited :: Bool
$sel:isInherited:PropertyDefinitionResponse' :: PropertyDefinitionResponse -> Bool
isInherited} -> Bool
isInherited) (\s :: PropertyDefinitionResponse
s@PropertyDefinitionResponse' {} Bool
a -> PropertyDefinitionResponse
s {$sel:isInherited:PropertyDefinitionResponse' :: Bool
isInherited = Bool
a} :: PropertyDefinitionResponse)

instance Data.FromJSON PropertyDefinitionResponse where
  parseJSON :: Value -> Parser PropertyDefinitionResponse
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"PropertyDefinitionResponse"
      ( \Object
x ->
          Maybe (HashMap Text Text)
-> Maybe DataValue
-> Maybe Text
-> DataType
-> Bool
-> Bool
-> Bool
-> Bool
-> Bool
-> Bool
-> Bool
-> PropertyDefinitionResponse
PropertyDefinitionResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"configuration" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"defaultValue")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"displayName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"dataType")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"isTimeSeries")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"isRequiredInEntity")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"isExternalId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"isStoredExternally")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"isImported")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"isFinal")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"isInherited")
      )

instance Prelude.Hashable PropertyDefinitionResponse where
  hashWithSalt :: Int -> PropertyDefinitionResponse -> Int
hashWithSalt Int
_salt PropertyDefinitionResponse' {Bool
Maybe Text
Maybe (HashMap Text Text)
Maybe DataValue
DataType
isInherited :: Bool
isFinal :: Bool
isImported :: Bool
isStoredExternally :: Bool
isExternalId :: Bool
isRequiredInEntity :: Bool
isTimeSeries :: Bool
dataType :: DataType
displayName :: Maybe Text
defaultValue :: Maybe DataValue
configuration :: Maybe (HashMap Text Text)
$sel:isInherited:PropertyDefinitionResponse' :: PropertyDefinitionResponse -> Bool
$sel:isFinal:PropertyDefinitionResponse' :: PropertyDefinitionResponse -> Bool
$sel:isImported:PropertyDefinitionResponse' :: PropertyDefinitionResponse -> Bool
$sel:isStoredExternally:PropertyDefinitionResponse' :: PropertyDefinitionResponse -> Bool
$sel:isExternalId:PropertyDefinitionResponse' :: PropertyDefinitionResponse -> Bool
$sel:isRequiredInEntity:PropertyDefinitionResponse' :: PropertyDefinitionResponse -> Bool
$sel:isTimeSeries:PropertyDefinitionResponse' :: PropertyDefinitionResponse -> Bool
$sel:dataType:PropertyDefinitionResponse' :: PropertyDefinitionResponse -> DataType
$sel:displayName:PropertyDefinitionResponse' :: PropertyDefinitionResponse -> Maybe Text
$sel:defaultValue:PropertyDefinitionResponse' :: PropertyDefinitionResponse -> Maybe DataValue
$sel:configuration:PropertyDefinitionResponse' :: PropertyDefinitionResponse -> 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 DataValue
defaultValue
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
displayName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` DataType
dataType
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Bool
isTimeSeries
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Bool
isRequiredInEntity
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Bool
isExternalId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Bool
isStoredExternally
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Bool
isImported
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Bool
isFinal
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Bool
isInherited

instance Prelude.NFData PropertyDefinitionResponse where
  rnf :: PropertyDefinitionResponse -> ()
rnf PropertyDefinitionResponse' {Bool
Maybe Text
Maybe (HashMap Text Text)
Maybe DataValue
DataType
isInherited :: Bool
isFinal :: Bool
isImported :: Bool
isStoredExternally :: Bool
isExternalId :: Bool
isRequiredInEntity :: Bool
isTimeSeries :: Bool
dataType :: DataType
displayName :: Maybe Text
defaultValue :: Maybe DataValue
configuration :: Maybe (HashMap Text Text)
$sel:isInherited:PropertyDefinitionResponse' :: PropertyDefinitionResponse -> Bool
$sel:isFinal:PropertyDefinitionResponse' :: PropertyDefinitionResponse -> Bool
$sel:isImported:PropertyDefinitionResponse' :: PropertyDefinitionResponse -> Bool
$sel:isStoredExternally:PropertyDefinitionResponse' :: PropertyDefinitionResponse -> Bool
$sel:isExternalId:PropertyDefinitionResponse' :: PropertyDefinitionResponse -> Bool
$sel:isRequiredInEntity:PropertyDefinitionResponse' :: PropertyDefinitionResponse -> Bool
$sel:isTimeSeries:PropertyDefinitionResponse' :: PropertyDefinitionResponse -> Bool
$sel:dataType:PropertyDefinitionResponse' :: PropertyDefinitionResponse -> DataType
$sel:displayName:PropertyDefinitionResponse' :: PropertyDefinitionResponse -> Maybe Text
$sel:defaultValue:PropertyDefinitionResponse' :: PropertyDefinitionResponse -> Maybe DataValue
$sel:configuration:PropertyDefinitionResponse' :: PropertyDefinitionResponse -> 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 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 DataType
dataType
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Bool
isTimeSeries
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Bool
isRequiredInEntity
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Bool
isExternalId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Bool
isStoredExternally
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Bool
isImported
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Bool
isFinal
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Bool
isInherited