{-# 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.MigrationHubOrchestrator.Types.MigrationWorkflowSummary -- 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.MigrationHubOrchestrator.Types.MigrationWorkflowSummary where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import Amazonka.MigrationHubOrchestrator.Types.MigrationWorkflowStatusEnum import qualified Amazonka.Prelude as Prelude -- | The summary of a migration workflow. -- -- /See:/ 'newMigrationWorkflowSummary' smart constructor. data MigrationWorkflowSummary = MigrationWorkflowSummary' { -- | The name of the application configured in Application Discovery Service. adsApplicationConfigurationName :: Prelude.Maybe Prelude.Text, -- | The steps completed in the migration workflow. completedSteps :: Prelude.Maybe Prelude.Int, -- | The time at which the migration workflow was created. creationTime :: Prelude.Maybe Data.POSIX, -- | The time at which the migration workflow ended. endTime :: Prelude.Maybe Data.POSIX, -- | The ID of the migration workflow. id :: Prelude.Maybe Prelude.Text, -- | The name of the migration workflow. name :: Prelude.Maybe Prelude.Text, -- | The status of the migration workflow. status :: Prelude.Maybe MigrationWorkflowStatusEnum, -- | The status message of the migration workflow. statusMessage :: Prelude.Maybe Prelude.Text, -- | The ID of the template. templateId :: Prelude.Maybe Prelude.Text, -- | All the steps in a migration workflow. totalSteps :: Prelude.Maybe Prelude.Int } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'MigrationWorkflowSummary' 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: -- -- 'adsApplicationConfigurationName', 'migrationWorkflowSummary_adsApplicationConfigurationName' - The name of the application configured in Application Discovery Service. -- -- 'completedSteps', 'migrationWorkflowSummary_completedSteps' - The steps completed in the migration workflow. -- -- 'creationTime', 'migrationWorkflowSummary_creationTime' - The time at which the migration workflow was created. -- -- 'endTime', 'migrationWorkflowSummary_endTime' - The time at which the migration workflow ended. -- -- 'id', 'migrationWorkflowSummary_id' - The ID of the migration workflow. -- -- 'name', 'migrationWorkflowSummary_name' - The name of the migration workflow. -- -- 'status', 'migrationWorkflowSummary_status' - The status of the migration workflow. -- -- 'statusMessage', 'migrationWorkflowSummary_statusMessage' - The status message of the migration workflow. -- -- 'templateId', 'migrationWorkflowSummary_templateId' - The ID of the template. -- -- 'totalSteps', 'migrationWorkflowSummary_totalSteps' - All the steps in a migration workflow. newMigrationWorkflowSummary :: MigrationWorkflowSummary newMigrationWorkflowSummary = MigrationWorkflowSummary' { adsApplicationConfigurationName = Prelude.Nothing, completedSteps = Prelude.Nothing, creationTime = Prelude.Nothing, endTime = Prelude.Nothing, id = Prelude.Nothing, name = Prelude.Nothing, status = Prelude.Nothing, statusMessage = Prelude.Nothing, templateId = Prelude.Nothing, totalSteps = Prelude.Nothing } -- | The name of the application configured in Application Discovery Service. migrationWorkflowSummary_adsApplicationConfigurationName :: Lens.Lens' MigrationWorkflowSummary (Prelude.Maybe Prelude.Text) migrationWorkflowSummary_adsApplicationConfigurationName = Lens.lens (\MigrationWorkflowSummary' {adsApplicationConfigurationName} -> adsApplicationConfigurationName) (\s@MigrationWorkflowSummary' {} a -> s {adsApplicationConfigurationName = a} :: MigrationWorkflowSummary) -- | The steps completed in the migration workflow. migrationWorkflowSummary_completedSteps :: Lens.Lens' MigrationWorkflowSummary (Prelude.Maybe Prelude.Int) migrationWorkflowSummary_completedSteps = Lens.lens (\MigrationWorkflowSummary' {completedSteps} -> completedSteps) (\s@MigrationWorkflowSummary' {} a -> s {completedSteps = a} :: MigrationWorkflowSummary) -- | The time at which the migration workflow was created. migrationWorkflowSummary_creationTime :: Lens.Lens' MigrationWorkflowSummary (Prelude.Maybe Prelude.UTCTime) migrationWorkflowSummary_creationTime = Lens.lens (\MigrationWorkflowSummary' {creationTime} -> creationTime) (\s@MigrationWorkflowSummary' {} a -> s {creationTime = a} :: MigrationWorkflowSummary) Prelude.. Lens.mapping Data._Time -- | The time at which the migration workflow ended. migrationWorkflowSummary_endTime :: Lens.Lens' MigrationWorkflowSummary (Prelude.Maybe Prelude.UTCTime) migrationWorkflowSummary_endTime = Lens.lens (\MigrationWorkflowSummary' {endTime} -> endTime) (\s@MigrationWorkflowSummary' {} a -> s {endTime = a} :: MigrationWorkflowSummary) Prelude.. Lens.mapping Data._Time -- | The ID of the migration workflow. migrationWorkflowSummary_id :: Lens.Lens' MigrationWorkflowSummary (Prelude.Maybe Prelude.Text) migrationWorkflowSummary_id = Lens.lens (\MigrationWorkflowSummary' {id} -> id) (\s@MigrationWorkflowSummary' {} a -> s {id = a} :: MigrationWorkflowSummary) -- | The name of the migration workflow. migrationWorkflowSummary_name :: Lens.Lens' MigrationWorkflowSummary (Prelude.Maybe Prelude.Text) migrationWorkflowSummary_name = Lens.lens (\MigrationWorkflowSummary' {name} -> name) (\s@MigrationWorkflowSummary' {} a -> s {name = a} :: MigrationWorkflowSummary) -- | The status of the migration workflow. migrationWorkflowSummary_status :: Lens.Lens' MigrationWorkflowSummary (Prelude.Maybe MigrationWorkflowStatusEnum) migrationWorkflowSummary_status = Lens.lens (\MigrationWorkflowSummary' {status} -> status) (\s@MigrationWorkflowSummary' {} a -> s {status = a} :: MigrationWorkflowSummary) -- | The status message of the migration workflow. migrationWorkflowSummary_statusMessage :: Lens.Lens' MigrationWorkflowSummary (Prelude.Maybe Prelude.Text) migrationWorkflowSummary_statusMessage = Lens.lens (\MigrationWorkflowSummary' {statusMessage} -> statusMessage) (\s@MigrationWorkflowSummary' {} a -> s {statusMessage = a} :: MigrationWorkflowSummary) -- | The ID of the template. migrationWorkflowSummary_templateId :: Lens.Lens' MigrationWorkflowSummary (Prelude.Maybe Prelude.Text) migrationWorkflowSummary_templateId = Lens.lens (\MigrationWorkflowSummary' {templateId} -> templateId) (\s@MigrationWorkflowSummary' {} a -> s {templateId = a} :: MigrationWorkflowSummary) -- | All the steps in a migration workflow. migrationWorkflowSummary_totalSteps :: Lens.Lens' MigrationWorkflowSummary (Prelude.Maybe Prelude.Int) migrationWorkflowSummary_totalSteps = Lens.lens (\MigrationWorkflowSummary' {totalSteps} -> totalSteps) (\s@MigrationWorkflowSummary' {} a -> s {totalSteps = a} :: MigrationWorkflowSummary) instance Data.FromJSON MigrationWorkflowSummary where parseJSON = Data.withObject "MigrationWorkflowSummary" ( \x -> MigrationWorkflowSummary' Prelude.<$> (x Data..:? "adsApplicationConfigurationName") Prelude.<*> (x Data..:? "completedSteps") Prelude.<*> (x Data..:? "creationTime") Prelude.<*> (x Data..:? "endTime") Prelude.<*> (x Data..:? "id") Prelude.<*> (x Data..:? "name") Prelude.<*> (x Data..:? "status") Prelude.<*> (x Data..:? "statusMessage") Prelude.<*> (x Data..:? "templateId") Prelude.<*> (x Data..:? "totalSteps") ) instance Prelude.Hashable MigrationWorkflowSummary where hashWithSalt _salt MigrationWorkflowSummary' {..} = _salt `Prelude.hashWithSalt` adsApplicationConfigurationName `Prelude.hashWithSalt` completedSteps `Prelude.hashWithSalt` creationTime `Prelude.hashWithSalt` endTime `Prelude.hashWithSalt` id `Prelude.hashWithSalt` name `Prelude.hashWithSalt` status `Prelude.hashWithSalt` statusMessage `Prelude.hashWithSalt` templateId `Prelude.hashWithSalt` totalSteps instance Prelude.NFData MigrationWorkflowSummary where rnf MigrationWorkflowSummary' {..} = Prelude.rnf adsApplicationConfigurationName `Prelude.seq` Prelude.rnf completedSteps `Prelude.seq` Prelude.rnf creationTime `Prelude.seq` Prelude.rnf endTime `Prelude.seq` Prelude.rnf id `Prelude.seq` Prelude.rnf name `Prelude.seq` Prelude.rnf status `Prelude.seq` Prelude.rnf statusMessage `Prelude.seq` Prelude.rnf templateId `Prelude.seq` Prelude.rnf totalSteps