{-# 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.WAFRegional.Types.GeoMatchSetSummary -- 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.WAFRegional.Types.GeoMatchSetSummary 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 -- | This is __AWS WAF Classic__ documentation. For more information, see -- -- in the developer guide. -- -- __For the latest version of AWS WAF__, use the AWS WAFV2 API and see the -- . -- With the latest version, AWS WAF has a single set of endpoints for -- regional and global use. -- -- Contains the identifier and the name of the @GeoMatchSet@. -- -- /See:/ 'newGeoMatchSetSummary' smart constructor. data GeoMatchSetSummary = GeoMatchSetSummary' { -- | The @GeoMatchSetId@ for an GeoMatchSet. You can use @GeoMatchSetId@ in a -- GetGeoMatchSet request to get detailed information about an GeoMatchSet. geoMatchSetId :: Prelude.Text, -- | A friendly name or description of the GeoMatchSet. You can\'t change the -- name of an @GeoMatchSet@ after you create it. name :: Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'GeoMatchSetSummary' 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: -- -- 'geoMatchSetId', 'geoMatchSetSummary_geoMatchSetId' - The @GeoMatchSetId@ for an GeoMatchSet. You can use @GeoMatchSetId@ in a -- GetGeoMatchSet request to get detailed information about an GeoMatchSet. -- -- 'name', 'geoMatchSetSummary_name' - A friendly name or description of the GeoMatchSet. You can\'t change the -- name of an @GeoMatchSet@ after you create it. newGeoMatchSetSummary :: -- | 'geoMatchSetId' Prelude.Text -> -- | 'name' Prelude.Text -> GeoMatchSetSummary newGeoMatchSetSummary pGeoMatchSetId_ pName_ = GeoMatchSetSummary' { geoMatchSetId = pGeoMatchSetId_, name = pName_ } -- | The @GeoMatchSetId@ for an GeoMatchSet. You can use @GeoMatchSetId@ in a -- GetGeoMatchSet request to get detailed information about an GeoMatchSet. geoMatchSetSummary_geoMatchSetId :: Lens.Lens' GeoMatchSetSummary Prelude.Text geoMatchSetSummary_geoMatchSetId = Lens.lens (\GeoMatchSetSummary' {geoMatchSetId} -> geoMatchSetId) (\s@GeoMatchSetSummary' {} a -> s {geoMatchSetId = a} :: GeoMatchSetSummary) -- | A friendly name or description of the GeoMatchSet. You can\'t change the -- name of an @GeoMatchSet@ after you create it. geoMatchSetSummary_name :: Lens.Lens' GeoMatchSetSummary Prelude.Text geoMatchSetSummary_name = Lens.lens (\GeoMatchSetSummary' {name} -> name) (\s@GeoMatchSetSummary' {} a -> s {name = a} :: GeoMatchSetSummary) instance Data.FromJSON GeoMatchSetSummary where parseJSON = Data.withObject "GeoMatchSetSummary" ( \x -> GeoMatchSetSummary' Prelude.<$> (x Data..: "GeoMatchSetId") Prelude.<*> (x Data..: "Name") ) instance Prelude.Hashable GeoMatchSetSummary where hashWithSalt _salt GeoMatchSetSummary' {..} = _salt `Prelude.hashWithSalt` geoMatchSetId `Prelude.hashWithSalt` name instance Prelude.NFData GeoMatchSetSummary where rnf GeoMatchSetSummary' {..} = Prelude.rnf geoMatchSetId `Prelude.seq` Prelude.rnf name