{-# 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.KinesisVideo.Types.ResourceEndpointListItem -- 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.KinesisVideo.Types.ResourceEndpointListItem where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import Amazonka.KinesisVideo.Types.ChannelProtocol import qualified Amazonka.Prelude as Prelude -- | An object that describes the endpoint of the signaling channel returned -- by the @GetSignalingChannelEndpoint@ API. -- -- /See:/ 'newResourceEndpointListItem' smart constructor. data ResourceEndpointListItem = ResourceEndpointListItem' { -- | The protocol of the signaling channel returned by the -- @GetSignalingChannelEndpoint@ API. protocol :: Prelude.Maybe ChannelProtocol, -- | The endpoint of the signaling channel returned by the -- @GetSignalingChannelEndpoint@ API. resourceEndpoint :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'ResourceEndpointListItem' 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: -- -- 'protocol', 'resourceEndpointListItem_protocol' - The protocol of the signaling channel returned by the -- @GetSignalingChannelEndpoint@ API. -- -- 'resourceEndpoint', 'resourceEndpointListItem_resourceEndpoint' - The endpoint of the signaling channel returned by the -- @GetSignalingChannelEndpoint@ API. newResourceEndpointListItem :: ResourceEndpointListItem newResourceEndpointListItem = ResourceEndpointListItem' { protocol = Prelude.Nothing, resourceEndpoint = Prelude.Nothing } -- | The protocol of the signaling channel returned by the -- @GetSignalingChannelEndpoint@ API. resourceEndpointListItem_protocol :: Lens.Lens' ResourceEndpointListItem (Prelude.Maybe ChannelProtocol) resourceEndpointListItem_protocol = Lens.lens (\ResourceEndpointListItem' {protocol} -> protocol) (\s@ResourceEndpointListItem' {} a -> s {protocol = a} :: ResourceEndpointListItem) -- | The endpoint of the signaling channel returned by the -- @GetSignalingChannelEndpoint@ API. resourceEndpointListItem_resourceEndpoint :: Lens.Lens' ResourceEndpointListItem (Prelude.Maybe Prelude.Text) resourceEndpointListItem_resourceEndpoint = Lens.lens (\ResourceEndpointListItem' {resourceEndpoint} -> resourceEndpoint) (\s@ResourceEndpointListItem' {} a -> s {resourceEndpoint = a} :: ResourceEndpointListItem) instance Data.FromJSON ResourceEndpointListItem where parseJSON = Data.withObject "ResourceEndpointListItem" ( \x -> ResourceEndpointListItem' Prelude.<$> (x Data..:? "Protocol") Prelude.<*> (x Data..:? "ResourceEndpoint") ) instance Prelude.Hashable ResourceEndpointListItem where hashWithSalt _salt ResourceEndpointListItem' {..} = _salt `Prelude.hashWithSalt` protocol `Prelude.hashWithSalt` resourceEndpoint instance Prelude.NFData ResourceEndpointListItem where rnf ResourceEndpointListItem' {..} = Prelude.rnf protocol `Prelude.seq` Prelude.rnf resourceEndpoint