{-# 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.AWSHealth.Types.EventDescription -- 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.AWSHealth.Types.EventDescription 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 -- | The detailed description of the event. Included in the information -- returned by the -- -- operation. -- -- /See:/ 'newEventDescription' smart constructor. data EventDescription = EventDescription' { -- | The most recent description of the event. latestDescription :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'EventDescription' 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: -- -- 'latestDescription', 'eventDescription_latestDescription' - The most recent description of the event. newEventDescription :: EventDescription newEventDescription = EventDescription' { latestDescription = Prelude.Nothing } -- | The most recent description of the event. eventDescription_latestDescription :: Lens.Lens' EventDescription (Prelude.Maybe Prelude.Text) eventDescription_latestDescription = Lens.lens (\EventDescription' {latestDescription} -> latestDescription) (\s@EventDescription' {} a -> s {latestDescription = a} :: EventDescription) instance Data.FromJSON EventDescription where parseJSON = Data.withObject "EventDescription" ( \x -> EventDescription' Prelude.<$> (x Data..:? "latestDescription") ) instance Prelude.Hashable EventDescription where hashWithSalt _salt EventDescription' {..} = _salt `Prelude.hashWithSalt` latestDescription instance Prelude.NFData EventDescription where rnf EventDescription' {..} = Prelude.rnf latestDescription