{-# 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.MediaConvert.Types.Endpoint -- 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.MediaConvert.Types.Endpoint 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 -- | Describes an account-specific API endpoint. -- -- /See:/ 'newEndpoint' smart constructor. data Endpoint = Endpoint' { -- | URL of endpoint url :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'Endpoint' 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: -- -- 'url', 'endpoint_url' - URL of endpoint newEndpoint :: Endpoint newEndpoint = Endpoint' {url = Prelude.Nothing} -- | URL of endpoint endpoint_url :: Lens.Lens' Endpoint (Prelude.Maybe Prelude.Text) endpoint_url = Lens.lens (\Endpoint' {url} -> url) (\s@Endpoint' {} a -> s {url = a} :: Endpoint) instance Data.FromJSON Endpoint where parseJSON = Data.withObject "Endpoint" (\x -> Endpoint' Prelude.<$> (x Data..:? "url")) instance Prelude.Hashable Endpoint where hashWithSalt _salt Endpoint' {..} = _salt `Prelude.hashWithSalt` url instance Prelude.NFData Endpoint where rnf Endpoint' {..} = Prelude.rnf url