{-# 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.Redshift.Types.AttributeValueTarget -- 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.Redshift.Types.AttributeValueTarget 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.Redshift.Internal -- | Describes an attribute value. -- -- /See:/ 'newAttributeValueTarget' smart constructor. data AttributeValueTarget = AttributeValueTarget' { -- | The value of the attribute. attributeValue :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'AttributeValueTarget' 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: -- -- 'attributeValue', 'attributeValueTarget_attributeValue' - The value of the attribute. newAttributeValueTarget :: AttributeValueTarget newAttributeValueTarget = AttributeValueTarget' { attributeValue = Prelude.Nothing } -- | The value of the attribute. attributeValueTarget_attributeValue :: Lens.Lens' AttributeValueTarget (Prelude.Maybe Prelude.Text) attributeValueTarget_attributeValue = Lens.lens (\AttributeValueTarget' {attributeValue} -> attributeValue) (\s@AttributeValueTarget' {} a -> s {attributeValue = a} :: AttributeValueTarget) instance Data.FromXML AttributeValueTarget where parseXML x = AttributeValueTarget' Prelude.<$> (x Data..@? "AttributeValue") instance Prelude.Hashable AttributeValueTarget where hashWithSalt _salt AttributeValueTarget' {..} = _salt `Prelude.hashWithSalt` attributeValue instance Prelude.NFData AttributeValueTarget where rnf AttributeValueTarget' {..} = Prelude.rnf attributeValue