{-# 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.Mobile.Types.ProjectSummary -- 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.Mobile.Types.ProjectSummary 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 -- | Summary information about an AWS Mobile Hub project. -- -- /See:/ 'newProjectSummary' smart constructor. data ProjectSummary = ProjectSummary' { -- | Name of the project. name :: Prelude.Maybe Prelude.Text, -- | Unique project identifier. projectId :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'ProjectSummary' 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: -- -- 'name', 'projectSummary_name' - Name of the project. -- -- 'projectId', 'projectSummary_projectId' - Unique project identifier. newProjectSummary :: ProjectSummary newProjectSummary = ProjectSummary' { name = Prelude.Nothing, projectId = Prelude.Nothing } -- | Name of the project. projectSummary_name :: Lens.Lens' ProjectSummary (Prelude.Maybe Prelude.Text) projectSummary_name = Lens.lens (\ProjectSummary' {name} -> name) (\s@ProjectSummary' {} a -> s {name = a} :: ProjectSummary) -- | Unique project identifier. projectSummary_projectId :: Lens.Lens' ProjectSummary (Prelude.Maybe Prelude.Text) projectSummary_projectId = Lens.lens (\ProjectSummary' {projectId} -> projectId) (\s@ProjectSummary' {} a -> s {projectId = a} :: ProjectSummary) instance Data.FromJSON ProjectSummary where parseJSON = Data.withObject "ProjectSummary" ( \x -> ProjectSummary' Prelude.<$> (x Data..:? "name") Prelude.<*> (x Data..:? "projectId") ) instance Prelude.Hashable ProjectSummary where hashWithSalt _salt ProjectSummary' {..} = _salt `Prelude.hashWithSalt` name `Prelude.hashWithSalt` projectId instance Prelude.NFData ProjectSummary where rnf ProjectSummary' {..} = Prelude.rnf name `Prelude.seq` Prelude.rnf projectId