{-# 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.LexV2Models.Types.BotLocaleSummary -- 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.LexV2Models.Types.BotLocaleSummary where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import Amazonka.LexV2Models.Types.BotLocaleStatus import qualified Amazonka.Prelude as Prelude -- | Summary information about bot locales returned by the -- -- operation. -- -- /See:/ 'newBotLocaleSummary' smart constructor. data BotLocaleSummary = BotLocaleSummary' { -- | The current status of the bot locale. When the status is @Built@ the -- locale is ready for use. botLocaleStatus :: Prelude.Maybe BotLocaleStatus, -- | The description of the bot locale. description :: Prelude.Maybe Prelude.Text, -- | A timestamp of the date and time that the bot locale was last built. lastBuildSubmittedDateTime :: Prelude.Maybe Data.POSIX, -- | A timestamp of the date and time that the bot locale was last updated. lastUpdatedDateTime :: Prelude.Maybe Data.POSIX, -- | The language and locale of the bot locale. localeId :: Prelude.Maybe Prelude.Text, -- | The name of the bot locale. localeName :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'BotLocaleSummary' 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: -- -- 'botLocaleStatus', 'botLocaleSummary_botLocaleStatus' - The current status of the bot locale. When the status is @Built@ the -- locale is ready for use. -- -- 'description', 'botLocaleSummary_description' - The description of the bot locale. -- -- 'lastBuildSubmittedDateTime', 'botLocaleSummary_lastBuildSubmittedDateTime' - A timestamp of the date and time that the bot locale was last built. -- -- 'lastUpdatedDateTime', 'botLocaleSummary_lastUpdatedDateTime' - A timestamp of the date and time that the bot locale was last updated. -- -- 'localeId', 'botLocaleSummary_localeId' - The language and locale of the bot locale. -- -- 'localeName', 'botLocaleSummary_localeName' - The name of the bot locale. newBotLocaleSummary :: BotLocaleSummary newBotLocaleSummary = BotLocaleSummary' { botLocaleStatus = Prelude.Nothing, description = Prelude.Nothing, lastBuildSubmittedDateTime = Prelude.Nothing, lastUpdatedDateTime = Prelude.Nothing, localeId = Prelude.Nothing, localeName = Prelude.Nothing } -- | The current status of the bot locale. When the status is @Built@ the -- locale is ready for use. botLocaleSummary_botLocaleStatus :: Lens.Lens' BotLocaleSummary (Prelude.Maybe BotLocaleStatus) botLocaleSummary_botLocaleStatus = Lens.lens (\BotLocaleSummary' {botLocaleStatus} -> botLocaleStatus) (\s@BotLocaleSummary' {} a -> s {botLocaleStatus = a} :: BotLocaleSummary) -- | The description of the bot locale. botLocaleSummary_description :: Lens.Lens' BotLocaleSummary (Prelude.Maybe Prelude.Text) botLocaleSummary_description = Lens.lens (\BotLocaleSummary' {description} -> description) (\s@BotLocaleSummary' {} a -> s {description = a} :: BotLocaleSummary) -- | A timestamp of the date and time that the bot locale was last built. botLocaleSummary_lastBuildSubmittedDateTime :: Lens.Lens' BotLocaleSummary (Prelude.Maybe Prelude.UTCTime) botLocaleSummary_lastBuildSubmittedDateTime = Lens.lens (\BotLocaleSummary' {lastBuildSubmittedDateTime} -> lastBuildSubmittedDateTime) (\s@BotLocaleSummary' {} a -> s {lastBuildSubmittedDateTime = a} :: BotLocaleSummary) Prelude.. Lens.mapping Data._Time -- | A timestamp of the date and time that the bot locale was last updated. botLocaleSummary_lastUpdatedDateTime :: Lens.Lens' BotLocaleSummary (Prelude.Maybe Prelude.UTCTime) botLocaleSummary_lastUpdatedDateTime = Lens.lens (\BotLocaleSummary' {lastUpdatedDateTime} -> lastUpdatedDateTime) (\s@BotLocaleSummary' {} a -> s {lastUpdatedDateTime = a} :: BotLocaleSummary) Prelude.. Lens.mapping Data._Time -- | The language and locale of the bot locale. botLocaleSummary_localeId :: Lens.Lens' BotLocaleSummary (Prelude.Maybe Prelude.Text) botLocaleSummary_localeId = Lens.lens (\BotLocaleSummary' {localeId} -> localeId) (\s@BotLocaleSummary' {} a -> s {localeId = a} :: BotLocaleSummary) -- | The name of the bot locale. botLocaleSummary_localeName :: Lens.Lens' BotLocaleSummary (Prelude.Maybe Prelude.Text) botLocaleSummary_localeName = Lens.lens (\BotLocaleSummary' {localeName} -> localeName) (\s@BotLocaleSummary' {} a -> s {localeName = a} :: BotLocaleSummary) instance Data.FromJSON BotLocaleSummary where parseJSON = Data.withObject "BotLocaleSummary" ( \x -> BotLocaleSummary' Prelude.<$> (x Data..:? "botLocaleStatus") Prelude.<*> (x Data..:? "description") Prelude.<*> (x Data..:? "lastBuildSubmittedDateTime") Prelude.<*> (x Data..:? "lastUpdatedDateTime") Prelude.<*> (x Data..:? "localeId") Prelude.<*> (x Data..:? "localeName") ) instance Prelude.Hashable BotLocaleSummary where hashWithSalt _salt BotLocaleSummary' {..} = _salt `Prelude.hashWithSalt` botLocaleStatus `Prelude.hashWithSalt` description `Prelude.hashWithSalt` lastBuildSubmittedDateTime `Prelude.hashWithSalt` lastUpdatedDateTime `Prelude.hashWithSalt` localeId `Prelude.hashWithSalt` localeName instance Prelude.NFData BotLocaleSummary where rnf BotLocaleSummary' {..} = Prelude.rnf botLocaleStatus `Prelude.seq` Prelude.rnf description `Prelude.seq` Prelude.rnf lastBuildSubmittedDateTime `Prelude.seq` Prelude.rnf lastUpdatedDateTime `Prelude.seq` Prelude.rnf localeId `Prelude.seq` Prelude.rnf localeName