{-# 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.CloudSearch.Types.ServiceEndpoint -- 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.CloudSearch.Types.ServiceEndpoint 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 -- | The endpoint to which service requests can be submitted. -- -- /See:/ 'newServiceEndpoint' smart constructor. data ServiceEndpoint = ServiceEndpoint' { endpoint :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'ServiceEndpoint' 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: -- -- 'endpoint', 'serviceEndpoint_endpoint' - Undocumented member. newServiceEndpoint :: ServiceEndpoint newServiceEndpoint = ServiceEndpoint' {endpoint = Prelude.Nothing} -- | Undocumented member. serviceEndpoint_endpoint :: Lens.Lens' ServiceEndpoint (Prelude.Maybe Prelude.Text) serviceEndpoint_endpoint = Lens.lens (\ServiceEndpoint' {endpoint} -> endpoint) (\s@ServiceEndpoint' {} a -> s {endpoint = a} :: ServiceEndpoint) instance Data.FromXML ServiceEndpoint where parseXML x = ServiceEndpoint' Prelude.<$> (x Data..@? "Endpoint") instance Prelude.Hashable ServiceEndpoint where hashWithSalt _salt ServiceEndpoint' {..} = _salt `Prelude.hashWithSalt` endpoint instance Prelude.NFData ServiceEndpoint where rnf ServiceEndpoint' {..} = Prelude.rnf endpoint