{-# 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.AppConfig.Types.Application -- 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.AppConfig.Types.Application 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 -- | /See:/ 'newApplication' smart constructor. data Application = Application' { -- | The description of the application. description :: Prelude.Maybe Prelude.Text, -- | The application ID. id :: Prelude.Maybe Prelude.Text, -- | The application name. name :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'Application' 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: -- -- 'description', 'application_description' - The description of the application. -- -- 'id', 'application_id' - The application ID. -- -- 'name', 'application_name' - The application name. newApplication :: Application newApplication = Application' { description = Prelude.Nothing, id = Prelude.Nothing, name = Prelude.Nothing } -- | The description of the application. application_description :: Lens.Lens' Application (Prelude.Maybe Prelude.Text) application_description = Lens.lens (\Application' {description} -> description) (\s@Application' {} a -> s {description = a} :: Application) -- | The application ID. application_id :: Lens.Lens' Application (Prelude.Maybe Prelude.Text) application_id = Lens.lens (\Application' {id} -> id) (\s@Application' {} a -> s {id = a} :: Application) -- | The application name. application_name :: Lens.Lens' Application (Prelude.Maybe Prelude.Text) application_name = Lens.lens (\Application' {name} -> name) (\s@Application' {} a -> s {name = a} :: Application) instance Data.FromJSON Application where parseJSON = Data.withObject "Application" ( \x -> Application' Prelude.<$> (x Data..:? "Description") Prelude.<*> (x Data..:? "Id") Prelude.<*> (x Data..:? "Name") ) instance Prelude.Hashable Application where hashWithSalt _salt Application' {..} = _salt `Prelude.hashWithSalt` description `Prelude.hashWithSalt` id `Prelude.hashWithSalt` name instance Prelude.NFData Application where rnf Application' {..} = Prelude.rnf description `Prelude.seq` Prelude.rnf id `Prelude.seq` Prelude.rnf name