{-# 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.SageMakerGeoSpatial.Types.StackConfigInput -- 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.SageMakerGeoSpatial.Types.StackConfigInput 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 import Amazonka.SageMakerGeoSpatial.Types.OutputResolutionStackInput -- | -- -- /See:/ 'newStackConfigInput' smart constructor. data StackConfigInput = StackConfigInput' { outputResolution :: Prelude.Maybe OutputResolutionStackInput, targetBands :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text) } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'StackConfigInput' 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: -- -- 'outputResolution', 'stackConfigInput_outputResolution' - -- -- 'targetBands', 'stackConfigInput_targetBands' - newStackConfigInput :: StackConfigInput newStackConfigInput = StackConfigInput' { outputResolution = Prelude.Nothing, targetBands = Prelude.Nothing } stackConfigInput_outputResolution :: Lens.Lens' StackConfigInput (Prelude.Maybe OutputResolutionStackInput) stackConfigInput_outputResolution = Lens.lens (\StackConfigInput' {outputResolution} -> outputResolution) (\s@StackConfigInput' {} a -> s {outputResolution = a} :: StackConfigInput) stackConfigInput_targetBands :: Lens.Lens' StackConfigInput (Prelude.Maybe (Prelude.NonEmpty Prelude.Text)) stackConfigInput_targetBands = Lens.lens (\StackConfigInput' {targetBands} -> targetBands) (\s@StackConfigInput' {} a -> s {targetBands = a} :: StackConfigInput) Prelude.. Lens.mapping Lens.coerced instance Data.FromJSON StackConfigInput where parseJSON = Data.withObject "StackConfigInput" ( \x -> StackConfigInput' Prelude.<$> (x Data..:? "OutputResolution") Prelude.<*> (x Data..:? "TargetBands") ) instance Prelude.Hashable StackConfigInput where hashWithSalt _salt StackConfigInput' {..} = _salt `Prelude.hashWithSalt` outputResolution `Prelude.hashWithSalt` targetBands instance Prelude.NFData StackConfigInput where rnf StackConfigInput' {..} = Prelude.rnf outputResolution `Prelude.seq` Prelude.rnf targetBands instance Data.ToJSON StackConfigInput where toJSON StackConfigInput' {..} = Data.object ( Prelude.catMaybes [ ("OutputResolution" Data..=) Prelude.<$> outputResolution, ("TargetBands" Data..=) Prelude.<$> targetBands ] )