{-# 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.StepFunctions.Types.MapStateStartedEventDetails -- 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.StepFunctions.Types.MapStateStartedEventDetails 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 -- | Details about a Map state that was started. -- -- /See:/ 'newMapStateStartedEventDetails' smart constructor. data MapStateStartedEventDetails = MapStateStartedEventDetails' { -- | The size of the array for Map state iterations. length :: Prelude.Maybe Prelude.Natural } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'MapStateStartedEventDetails' 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: -- -- 'length', 'mapStateStartedEventDetails_length' - The size of the array for Map state iterations. newMapStateStartedEventDetails :: MapStateStartedEventDetails newMapStateStartedEventDetails = MapStateStartedEventDetails' { length = Prelude.Nothing } -- | The size of the array for Map state iterations. mapStateStartedEventDetails_length :: Lens.Lens' MapStateStartedEventDetails (Prelude.Maybe Prelude.Natural) mapStateStartedEventDetails_length = Lens.lens (\MapStateStartedEventDetails' {length} -> length) (\s@MapStateStartedEventDetails' {} a -> s {length = a} :: MapStateStartedEventDetails) instance Data.FromJSON MapStateStartedEventDetails where parseJSON = Data.withObject "MapStateStartedEventDetails" ( \x -> MapStateStartedEventDetails' Prelude.<$> (x Data..:? "length") ) instance Prelude.Hashable MapStateStartedEventDetails where hashWithSalt _salt MapStateStartedEventDetails' {..} = _salt `Prelude.hashWithSalt` length instance Prelude.NFData MapStateStartedEventDetails where rnf MapStateStartedEventDetails' {..} = Prelude.rnf length