{-# 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.LookoutVision.Types.DatasetSource -- 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.LookoutVision.Types.DatasetSource where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import Amazonka.LookoutVision.Types.DatasetGroundTruthManifest import qualified Amazonka.Prelude as Prelude -- | Information about the location of a manifest file that Amazon Lookout -- for Vision uses to to create a dataset. -- -- /See:/ 'newDatasetSource' smart constructor. data DatasetSource = DatasetSource' { -- | Location information for the manifest file. groundTruthManifest :: Prelude.Maybe DatasetGroundTruthManifest } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'DatasetSource' with all optional fields omitted. -- -- Use or to modify other optional fields. -- -- The following record fields are available, with the corresponding lenses provided -- for backwards compatibility: -- -- 'groundTruthManifest', 'datasetSource_groundTruthManifest' - Location information for the manifest file. newDatasetSource :: DatasetSource newDatasetSource = DatasetSource' { groundTruthManifest = Prelude.Nothing } -- | Location information for the manifest file. datasetSource_groundTruthManifest :: Lens.Lens' DatasetSource (Prelude.Maybe DatasetGroundTruthManifest) datasetSource_groundTruthManifest = Lens.lens (\DatasetSource' {groundTruthManifest} -> groundTruthManifest) (\s@DatasetSource' {} a -> s {groundTruthManifest = a} :: DatasetSource) instance Prelude.Hashable DatasetSource where hashWithSalt _salt DatasetSource' {..} = _salt `Prelude.hashWithSalt` groundTruthManifest instance Prelude.NFData DatasetSource where rnf DatasetSource' {..} = Prelude.rnf groundTruthManifest instance Data.ToJSON DatasetSource where toJSON DatasetSource' {..} = Data.object ( Prelude.catMaybes [ ("GroundTruthManifest" Data..=) Prelude.<$> groundTruthManifest ] )