{-# 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.LookoutEquipment.Types.UnsupportedTimestamps
-- 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.LookoutEquipment.Types.UnsupportedTimestamps 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

-- | Entity that comprises information abount unsupported timestamps in the
-- dataset.
--
-- /See:/ 'newUnsupportedTimestamps' smart constructor.
data UnsupportedTimestamps = UnsupportedTimestamps'
  { -- | Indicates the total number of unsupported timestamps across the ingested
    -- data.
    UnsupportedTimestamps -> Int
totalNumberOfUnsupportedTimestamps :: Prelude.Int
  }
  deriving (UnsupportedTimestamps -> UnsupportedTimestamps -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UnsupportedTimestamps -> UnsupportedTimestamps -> Bool
$c/= :: UnsupportedTimestamps -> UnsupportedTimestamps -> Bool
== :: UnsupportedTimestamps -> UnsupportedTimestamps -> Bool
$c== :: UnsupportedTimestamps -> UnsupportedTimestamps -> Bool
Prelude.Eq, ReadPrec [UnsupportedTimestamps]
ReadPrec UnsupportedTimestamps
Int -> ReadS UnsupportedTimestamps
ReadS [UnsupportedTimestamps]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UnsupportedTimestamps]
$creadListPrec :: ReadPrec [UnsupportedTimestamps]
readPrec :: ReadPrec UnsupportedTimestamps
$creadPrec :: ReadPrec UnsupportedTimestamps
readList :: ReadS [UnsupportedTimestamps]
$creadList :: ReadS [UnsupportedTimestamps]
readsPrec :: Int -> ReadS UnsupportedTimestamps
$creadsPrec :: Int -> ReadS UnsupportedTimestamps
Prelude.Read, Int -> UnsupportedTimestamps -> ShowS
[UnsupportedTimestamps] -> ShowS
UnsupportedTimestamps -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UnsupportedTimestamps] -> ShowS
$cshowList :: [UnsupportedTimestamps] -> ShowS
show :: UnsupportedTimestamps -> String
$cshow :: UnsupportedTimestamps -> String
showsPrec :: Int -> UnsupportedTimestamps -> ShowS
$cshowsPrec :: Int -> UnsupportedTimestamps -> ShowS
Prelude.Show, forall x. Rep UnsupportedTimestamps x -> UnsupportedTimestamps
forall x. UnsupportedTimestamps -> Rep UnsupportedTimestamps x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UnsupportedTimestamps x -> UnsupportedTimestamps
$cfrom :: forall x. UnsupportedTimestamps -> Rep UnsupportedTimestamps x
Prelude.Generic)

-- |
-- Create a value of 'UnsupportedTimestamps' 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:
--
-- 'totalNumberOfUnsupportedTimestamps', 'unsupportedTimestamps_totalNumberOfUnsupportedTimestamps' - Indicates the total number of unsupported timestamps across the ingested
-- data.
newUnsupportedTimestamps ::
  -- | 'totalNumberOfUnsupportedTimestamps'
  Prelude.Int ->
  UnsupportedTimestamps
newUnsupportedTimestamps :: Int -> UnsupportedTimestamps
newUnsupportedTimestamps
  Int
pTotalNumberOfUnsupportedTimestamps_ =
    UnsupportedTimestamps'
      { $sel:totalNumberOfUnsupportedTimestamps:UnsupportedTimestamps' :: Int
totalNumberOfUnsupportedTimestamps =
          Int
pTotalNumberOfUnsupportedTimestamps_
      }

-- | Indicates the total number of unsupported timestamps across the ingested
-- data.
unsupportedTimestamps_totalNumberOfUnsupportedTimestamps :: Lens.Lens' UnsupportedTimestamps Prelude.Int
unsupportedTimestamps_totalNumberOfUnsupportedTimestamps :: Lens' UnsupportedTimestamps Int
unsupportedTimestamps_totalNumberOfUnsupportedTimestamps = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UnsupportedTimestamps' {Int
totalNumberOfUnsupportedTimestamps :: Int
$sel:totalNumberOfUnsupportedTimestamps:UnsupportedTimestamps' :: UnsupportedTimestamps -> Int
totalNumberOfUnsupportedTimestamps} -> Int
totalNumberOfUnsupportedTimestamps) (\s :: UnsupportedTimestamps
s@UnsupportedTimestamps' {} Int
a -> UnsupportedTimestamps
s {$sel:totalNumberOfUnsupportedTimestamps:UnsupportedTimestamps' :: Int
totalNumberOfUnsupportedTimestamps = Int
a} :: UnsupportedTimestamps)

instance Data.FromJSON UnsupportedTimestamps where
  parseJSON :: Value -> Parser UnsupportedTimestamps
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"UnsupportedTimestamps"
      ( \Object
x ->
          Int -> UnsupportedTimestamps
UnsupportedTimestamps'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"TotalNumberOfUnsupportedTimestamps")
      )

instance Prelude.Hashable UnsupportedTimestamps where
  hashWithSalt :: Int -> UnsupportedTimestamps -> Int
hashWithSalt Int
_salt UnsupportedTimestamps' {Int
totalNumberOfUnsupportedTimestamps :: Int
$sel:totalNumberOfUnsupportedTimestamps:UnsupportedTimestamps' :: UnsupportedTimestamps -> Int
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Int
totalNumberOfUnsupportedTimestamps

instance Prelude.NFData UnsupportedTimestamps where
  rnf :: UnsupportedTimestamps -> ()
rnf UnsupportedTimestamps' {Int
totalNumberOfUnsupportedTimestamps :: Int
$sel:totalNumberOfUnsupportedTimestamps:UnsupportedTimestamps' :: UnsupportedTimestamps -> Int
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Int
totalNumberOfUnsupportedTimestamps