{-# 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.LakeFormation.Types.TableObject -- 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.LakeFormation.Types.TableObject 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 -- | Specifies the details of a governed table. -- -- /See:/ 'newTableObject' smart constructor. data TableObject = TableObject' { -- | The Amazon S3 ETag of the object. Returned by @GetTableObjects@ for -- validation and used to identify changes to the underlying data. eTag :: Prelude.Maybe Prelude.Text, -- | The size of the Amazon S3 object in bytes. size :: Prelude.Maybe Prelude.Integer, -- | The Amazon S3 location of the object. uri :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'TableObject' 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: -- -- 'eTag', 'tableObject_eTag' - The Amazon S3 ETag of the object. Returned by @GetTableObjects@ for -- validation and used to identify changes to the underlying data. -- -- 'size', 'tableObject_size' - The size of the Amazon S3 object in bytes. -- -- 'uri', 'tableObject_uri' - The Amazon S3 location of the object. newTableObject :: TableObject newTableObject = TableObject' { eTag = Prelude.Nothing, size = Prelude.Nothing, uri = Prelude.Nothing } -- | The Amazon S3 ETag of the object. Returned by @GetTableObjects@ for -- validation and used to identify changes to the underlying data. tableObject_eTag :: Lens.Lens' TableObject (Prelude.Maybe Prelude.Text) tableObject_eTag = Lens.lens (\TableObject' {eTag} -> eTag) (\s@TableObject' {} a -> s {eTag = a} :: TableObject) -- | The size of the Amazon S3 object in bytes. tableObject_size :: Lens.Lens' TableObject (Prelude.Maybe Prelude.Integer) tableObject_size = Lens.lens (\TableObject' {size} -> size) (\s@TableObject' {} a -> s {size = a} :: TableObject) -- | The Amazon S3 location of the object. tableObject_uri :: Lens.Lens' TableObject (Prelude.Maybe Prelude.Text) tableObject_uri = Lens.lens (\TableObject' {uri} -> uri) (\s@TableObject' {} a -> s {uri = a} :: TableObject) instance Data.FromJSON TableObject where parseJSON = Data.withObject "TableObject" ( \x -> TableObject' Prelude.<$> (x Data..:? "ETag") Prelude.<*> (x Data..:? "Size") Prelude.<*> (x Data..:? "Uri") ) instance Prelude.Hashable TableObject where hashWithSalt _salt TableObject' {..} = _salt `Prelude.hashWithSalt` eTag `Prelude.hashWithSalt` size `Prelude.hashWithSalt` uri instance Prelude.NFData TableObject where rnf TableObject' {..} = Prelude.rnf eTag `Prelude.seq` Prelude.rnf size `Prelude.seq` Prelude.rnf uri