{-# 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.FraudDetector.Types.BatchCreateVariableError -- 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.FraudDetector.Types.BatchCreateVariableError 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 -- | Provides the error of the batch create variable API. -- -- /See:/ 'newBatchCreateVariableError' smart constructor. data BatchCreateVariableError = BatchCreateVariableError' { -- | The error code. code :: Prelude.Maybe Prelude.Int, -- | The error message. message :: Prelude.Maybe Prelude.Text, -- | The name. name :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'BatchCreateVariableError' 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: -- -- 'code', 'batchCreateVariableError_code' - The error code. -- -- 'message', 'batchCreateVariableError_message' - The error message. -- -- 'name', 'batchCreateVariableError_name' - The name. newBatchCreateVariableError :: BatchCreateVariableError newBatchCreateVariableError = BatchCreateVariableError' { code = Prelude.Nothing, message = Prelude.Nothing, name = Prelude.Nothing } -- | The error code. batchCreateVariableError_code :: Lens.Lens' BatchCreateVariableError (Prelude.Maybe Prelude.Int) batchCreateVariableError_code = Lens.lens (\BatchCreateVariableError' {code} -> code) (\s@BatchCreateVariableError' {} a -> s {code = a} :: BatchCreateVariableError) -- | The error message. batchCreateVariableError_message :: Lens.Lens' BatchCreateVariableError (Prelude.Maybe Prelude.Text) batchCreateVariableError_message = Lens.lens (\BatchCreateVariableError' {message} -> message) (\s@BatchCreateVariableError' {} a -> s {message = a} :: BatchCreateVariableError) -- | The name. batchCreateVariableError_name :: Lens.Lens' BatchCreateVariableError (Prelude.Maybe Prelude.Text) batchCreateVariableError_name = Lens.lens (\BatchCreateVariableError' {name} -> name) (\s@BatchCreateVariableError' {} a -> s {name = a} :: BatchCreateVariableError) instance Data.FromJSON BatchCreateVariableError where parseJSON = Data.withObject "BatchCreateVariableError" ( \x -> BatchCreateVariableError' Prelude.<$> (x Data..:? "code") Prelude.<*> (x Data..:? "message") Prelude.<*> (x Data..:? "name") ) instance Prelude.Hashable BatchCreateVariableError where hashWithSalt _salt BatchCreateVariableError' {..} = _salt `Prelude.hashWithSalt` code `Prelude.hashWithSalt` message `Prelude.hashWithSalt` name instance Prelude.NFData BatchCreateVariableError where rnf BatchCreateVariableError' {..} = Prelude.rnf code `Prelude.seq` Prelude.rnf message `Prelude.seq` Prelude.rnf name