{-# 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.Personalize.Types.BatchSegmentJobOutput -- 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.Personalize.Types.BatchSegmentJobOutput where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import Amazonka.Personalize.Types.S3DataConfig import qualified Amazonka.Prelude as Prelude -- | The output configuration parameters of a batch segment job. -- -- /See:/ 'newBatchSegmentJobOutput' smart constructor. data BatchSegmentJobOutput = BatchSegmentJobOutput' { s3DataDestination :: S3DataConfig } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'BatchSegmentJobOutput' 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: -- -- 's3DataDestination', 'batchSegmentJobOutput_s3DataDestination' - Undocumented member. newBatchSegmentJobOutput :: -- | 's3DataDestination' S3DataConfig -> BatchSegmentJobOutput newBatchSegmentJobOutput pS3DataDestination_ = BatchSegmentJobOutput' { s3DataDestination = pS3DataDestination_ } -- | Undocumented member. batchSegmentJobOutput_s3DataDestination :: Lens.Lens' BatchSegmentJobOutput S3DataConfig batchSegmentJobOutput_s3DataDestination = Lens.lens (\BatchSegmentJobOutput' {s3DataDestination} -> s3DataDestination) (\s@BatchSegmentJobOutput' {} a -> s {s3DataDestination = a} :: BatchSegmentJobOutput) instance Data.FromJSON BatchSegmentJobOutput where parseJSON = Data.withObject "BatchSegmentJobOutput" ( \x -> BatchSegmentJobOutput' Prelude.<$> (x Data..: "s3DataDestination") ) instance Prelude.Hashable BatchSegmentJobOutput where hashWithSalt _salt BatchSegmentJobOutput' {..} = _salt `Prelude.hashWithSalt` s3DataDestination instance Prelude.NFData BatchSegmentJobOutput where rnf BatchSegmentJobOutput' {..} = Prelude.rnf s3DataDestination instance Data.ToJSON BatchSegmentJobOutput where toJSON BatchSegmentJobOutput' {..} = Data.object ( Prelude.catMaybes [ Prelude.Just ("s3DataDestination" Data..= s3DataDestination) ] )