{-# 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.MediaConnect.Types.Transport
-- 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.MediaConnect.Types.Transport where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.MediaConnect.Types.Protocol
import qualified Amazonka.Prelude as Prelude

-- | Attributes related to the transport stream that are used in a source or
-- output.
--
-- /See:/ 'newTransport' smart constructor.
data Transport = Transport'
  { -- | The range of IP addresses that should be allowed to initiate output
    -- requests to this flow. These IP addresses should be in the form of a
    -- Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0\/16.
    Transport -> Maybe [Text]
cidrAllowList :: Prelude.Maybe [Prelude.Text],
    -- | The smoothing max bitrate for RIST, RTP, and RTP-FEC streams.
    Transport -> Maybe Int
maxBitrate :: Prelude.Maybe Prelude.Int,
    -- | The maximum latency in milliseconds. This parameter applies only to
    -- RIST-based, Zixi-based, and Fujitsu-based streams.
    Transport -> Maybe Int
maxLatency :: Prelude.Maybe Prelude.Int,
    -- | The size of the buffer (in milliseconds) to use to sync incoming source
    -- data.
    Transport -> Maybe Int
maxSyncBuffer :: Prelude.Maybe Prelude.Int,
    -- | The minimum latency in milliseconds for SRT-based streams. In streams
    -- that use the SRT protocol, this value that you set on your MediaConnect
    -- source or output represents the minimal potential latency of that
    -- connection. The latency of the stream is set to the highest number
    -- between the sender’s minimum latency and the receiver’s minimum latency.
    Transport -> Maybe Int
minLatency :: Prelude.Maybe Prelude.Int,
    -- | The remote ID for the Zixi-pull stream.
    Transport -> Maybe Text
remoteId :: Prelude.Maybe Prelude.Text,
    -- | The port that the flow uses to send outbound requests to initiate
    -- connection with the sender.
    Transport -> Maybe Int
senderControlPort :: Prelude.Maybe Prelude.Int,
    -- | The IP address that the flow communicates with to initiate connection
    -- with the sender.
    Transport -> Maybe Text
senderIpAddress :: Prelude.Maybe Prelude.Text,
    -- | The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC
    -- streams.
    Transport -> Maybe Int
smoothingLatency :: Prelude.Maybe Prelude.Int,
    -- | Source IP or domain name for SRT-caller protocol.
    Transport -> Maybe Text
sourceListenerAddress :: Prelude.Maybe Prelude.Text,
    -- | Source port for SRT-caller protocol.
    Transport -> Maybe Int
sourceListenerPort :: Prelude.Maybe Prelude.Int,
    -- | The stream ID that you want to use for this transport. This parameter
    -- applies only to Zixi-based streams.
    Transport -> Maybe Text
streamId :: Prelude.Maybe Prelude.Text,
    -- | The protocol that is used by the source or output.
    Transport -> Protocol
protocol :: Protocol
  }
  deriving (Transport -> Transport -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Transport -> Transport -> Bool
$c/= :: Transport -> Transport -> Bool
== :: Transport -> Transport -> Bool
$c== :: Transport -> Transport -> Bool
Prelude.Eq, ReadPrec [Transport]
ReadPrec Transport
Int -> ReadS Transport
ReadS [Transport]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Transport]
$creadListPrec :: ReadPrec [Transport]
readPrec :: ReadPrec Transport
$creadPrec :: ReadPrec Transport
readList :: ReadS [Transport]
$creadList :: ReadS [Transport]
readsPrec :: Int -> ReadS Transport
$creadsPrec :: Int -> ReadS Transport
Prelude.Read, Int -> Transport -> ShowS
[Transport] -> ShowS
Transport -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Transport] -> ShowS
$cshowList :: [Transport] -> ShowS
show :: Transport -> String
$cshow :: Transport -> String
showsPrec :: Int -> Transport -> ShowS
$cshowsPrec :: Int -> Transport -> ShowS
Prelude.Show, forall x. Rep Transport x -> Transport
forall x. Transport -> Rep Transport x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Transport x -> Transport
$cfrom :: forall x. Transport -> Rep Transport x
Prelude.Generic)

-- |
-- Create a value of 'Transport' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'cidrAllowList', 'transport_cidrAllowList' - The range of IP addresses that should be allowed to initiate output
-- requests to this flow. These IP addresses should be in the form of a
-- Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0\/16.
--
-- 'maxBitrate', 'transport_maxBitrate' - The smoothing max bitrate for RIST, RTP, and RTP-FEC streams.
--
-- 'maxLatency', 'transport_maxLatency' - The maximum latency in milliseconds. This parameter applies only to
-- RIST-based, Zixi-based, and Fujitsu-based streams.
--
-- 'maxSyncBuffer', 'transport_maxSyncBuffer' - The size of the buffer (in milliseconds) to use to sync incoming source
-- data.
--
-- 'minLatency', 'transport_minLatency' - The minimum latency in milliseconds for SRT-based streams. In streams
-- that use the SRT protocol, this value that you set on your MediaConnect
-- source or output represents the minimal potential latency of that
-- connection. The latency of the stream is set to the highest number
-- between the sender’s minimum latency and the receiver’s minimum latency.
--
-- 'remoteId', 'transport_remoteId' - The remote ID for the Zixi-pull stream.
--
-- 'senderControlPort', 'transport_senderControlPort' - The port that the flow uses to send outbound requests to initiate
-- connection with the sender.
--
-- 'senderIpAddress', 'transport_senderIpAddress' - The IP address that the flow communicates with to initiate connection
-- with the sender.
--
-- 'smoothingLatency', 'transport_smoothingLatency' - The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC
-- streams.
--
-- 'sourceListenerAddress', 'transport_sourceListenerAddress' - Source IP or domain name for SRT-caller protocol.
--
-- 'sourceListenerPort', 'transport_sourceListenerPort' - Source port for SRT-caller protocol.
--
-- 'streamId', 'transport_streamId' - The stream ID that you want to use for this transport. This parameter
-- applies only to Zixi-based streams.
--
-- 'protocol', 'transport_protocol' - The protocol that is used by the source or output.
newTransport ::
  -- | 'protocol'
  Protocol ->
  Transport
newTransport :: Protocol -> Transport
newTransport Protocol
pProtocol_ =
  Transport'
    { $sel:cidrAllowList:Transport' :: Maybe [Text]
cidrAllowList = forall a. Maybe a
Prelude.Nothing,
      $sel:maxBitrate:Transport' :: Maybe Int
maxBitrate = forall a. Maybe a
Prelude.Nothing,
      $sel:maxLatency:Transport' :: Maybe Int
maxLatency = forall a. Maybe a
Prelude.Nothing,
      $sel:maxSyncBuffer:Transport' :: Maybe Int
maxSyncBuffer = forall a. Maybe a
Prelude.Nothing,
      $sel:minLatency:Transport' :: Maybe Int
minLatency = forall a. Maybe a
Prelude.Nothing,
      $sel:remoteId:Transport' :: Maybe Text
remoteId = forall a. Maybe a
Prelude.Nothing,
      $sel:senderControlPort:Transport' :: Maybe Int
senderControlPort = forall a. Maybe a
Prelude.Nothing,
      $sel:senderIpAddress:Transport' :: Maybe Text
senderIpAddress = forall a. Maybe a
Prelude.Nothing,
      $sel:smoothingLatency:Transport' :: Maybe Int
smoothingLatency = forall a. Maybe a
Prelude.Nothing,
      $sel:sourceListenerAddress:Transport' :: Maybe Text
sourceListenerAddress = forall a. Maybe a
Prelude.Nothing,
      $sel:sourceListenerPort:Transport' :: Maybe Int
sourceListenerPort = forall a. Maybe a
Prelude.Nothing,
      $sel:streamId:Transport' :: Maybe Text
streamId = forall a. Maybe a
Prelude.Nothing,
      $sel:protocol:Transport' :: Protocol
protocol = Protocol
pProtocol_
    }

-- | The range of IP addresses that should be allowed to initiate output
-- requests to this flow. These IP addresses should be in the form of a
-- Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0\/16.
transport_cidrAllowList :: Lens.Lens' Transport (Prelude.Maybe [Prelude.Text])
transport_cidrAllowList :: Lens' Transport (Maybe [Text])
transport_cidrAllowList = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Transport' {Maybe [Text]
cidrAllowList :: Maybe [Text]
$sel:cidrAllowList:Transport' :: Transport -> Maybe [Text]
cidrAllowList} -> Maybe [Text]
cidrAllowList) (\s :: Transport
s@Transport' {} Maybe [Text]
a -> Transport
s {$sel:cidrAllowList:Transport' :: Maybe [Text]
cidrAllowList = Maybe [Text]
a} :: Transport) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The smoothing max bitrate for RIST, RTP, and RTP-FEC streams.
transport_maxBitrate :: Lens.Lens' Transport (Prelude.Maybe Prelude.Int)
transport_maxBitrate :: Lens' Transport (Maybe Int)
transport_maxBitrate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Transport' {Maybe Int
maxBitrate :: Maybe Int
$sel:maxBitrate:Transport' :: Transport -> Maybe Int
maxBitrate} -> Maybe Int
maxBitrate) (\s :: Transport
s@Transport' {} Maybe Int
a -> Transport
s {$sel:maxBitrate:Transport' :: Maybe Int
maxBitrate = Maybe Int
a} :: Transport)

-- | The maximum latency in milliseconds. This parameter applies only to
-- RIST-based, Zixi-based, and Fujitsu-based streams.
transport_maxLatency :: Lens.Lens' Transport (Prelude.Maybe Prelude.Int)
transport_maxLatency :: Lens' Transport (Maybe Int)
transport_maxLatency = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Transport' {Maybe Int
maxLatency :: Maybe Int
$sel:maxLatency:Transport' :: Transport -> Maybe Int
maxLatency} -> Maybe Int
maxLatency) (\s :: Transport
s@Transport' {} Maybe Int
a -> Transport
s {$sel:maxLatency:Transport' :: Maybe Int
maxLatency = Maybe Int
a} :: Transport)

-- | The size of the buffer (in milliseconds) to use to sync incoming source
-- data.
transport_maxSyncBuffer :: Lens.Lens' Transport (Prelude.Maybe Prelude.Int)
transport_maxSyncBuffer :: Lens' Transport (Maybe Int)
transport_maxSyncBuffer = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Transport' {Maybe Int
maxSyncBuffer :: Maybe Int
$sel:maxSyncBuffer:Transport' :: Transport -> Maybe Int
maxSyncBuffer} -> Maybe Int
maxSyncBuffer) (\s :: Transport
s@Transport' {} Maybe Int
a -> Transport
s {$sel:maxSyncBuffer:Transport' :: Maybe Int
maxSyncBuffer = Maybe Int
a} :: Transport)

-- | The minimum latency in milliseconds for SRT-based streams. In streams
-- that use the SRT protocol, this value that you set on your MediaConnect
-- source or output represents the minimal potential latency of that
-- connection. The latency of the stream is set to the highest number
-- between the sender’s minimum latency and the receiver’s minimum latency.
transport_minLatency :: Lens.Lens' Transport (Prelude.Maybe Prelude.Int)
transport_minLatency :: Lens' Transport (Maybe Int)
transport_minLatency = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Transport' {Maybe Int
minLatency :: Maybe Int
$sel:minLatency:Transport' :: Transport -> Maybe Int
minLatency} -> Maybe Int
minLatency) (\s :: Transport
s@Transport' {} Maybe Int
a -> Transport
s {$sel:minLatency:Transport' :: Maybe Int
minLatency = Maybe Int
a} :: Transport)

-- | The remote ID for the Zixi-pull stream.
transport_remoteId :: Lens.Lens' Transport (Prelude.Maybe Prelude.Text)
transport_remoteId :: Lens' Transport (Maybe Text)
transport_remoteId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Transport' {Maybe Text
remoteId :: Maybe Text
$sel:remoteId:Transport' :: Transport -> Maybe Text
remoteId} -> Maybe Text
remoteId) (\s :: Transport
s@Transport' {} Maybe Text
a -> Transport
s {$sel:remoteId:Transport' :: Maybe Text
remoteId = Maybe Text
a} :: Transport)

-- | The port that the flow uses to send outbound requests to initiate
-- connection with the sender.
transport_senderControlPort :: Lens.Lens' Transport (Prelude.Maybe Prelude.Int)
transport_senderControlPort :: Lens' Transport (Maybe Int)
transport_senderControlPort = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Transport' {Maybe Int
senderControlPort :: Maybe Int
$sel:senderControlPort:Transport' :: Transport -> Maybe Int
senderControlPort} -> Maybe Int
senderControlPort) (\s :: Transport
s@Transport' {} Maybe Int
a -> Transport
s {$sel:senderControlPort:Transport' :: Maybe Int
senderControlPort = Maybe Int
a} :: Transport)

-- | The IP address that the flow communicates with to initiate connection
-- with the sender.
transport_senderIpAddress :: Lens.Lens' Transport (Prelude.Maybe Prelude.Text)
transport_senderIpAddress :: Lens' Transport (Maybe Text)
transport_senderIpAddress = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Transport' {Maybe Text
senderIpAddress :: Maybe Text
$sel:senderIpAddress:Transport' :: Transport -> Maybe Text
senderIpAddress} -> Maybe Text
senderIpAddress) (\s :: Transport
s@Transport' {} Maybe Text
a -> Transport
s {$sel:senderIpAddress:Transport' :: Maybe Text
senderIpAddress = Maybe Text
a} :: Transport)

-- | The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC
-- streams.
transport_smoothingLatency :: Lens.Lens' Transport (Prelude.Maybe Prelude.Int)
transport_smoothingLatency :: Lens' Transport (Maybe Int)
transport_smoothingLatency = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Transport' {Maybe Int
smoothingLatency :: Maybe Int
$sel:smoothingLatency:Transport' :: Transport -> Maybe Int
smoothingLatency} -> Maybe Int
smoothingLatency) (\s :: Transport
s@Transport' {} Maybe Int
a -> Transport
s {$sel:smoothingLatency:Transport' :: Maybe Int
smoothingLatency = Maybe Int
a} :: Transport)

-- | Source IP or domain name for SRT-caller protocol.
transport_sourceListenerAddress :: Lens.Lens' Transport (Prelude.Maybe Prelude.Text)
transport_sourceListenerAddress :: Lens' Transport (Maybe Text)
transport_sourceListenerAddress = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Transport' {Maybe Text
sourceListenerAddress :: Maybe Text
$sel:sourceListenerAddress:Transport' :: Transport -> Maybe Text
sourceListenerAddress} -> Maybe Text
sourceListenerAddress) (\s :: Transport
s@Transport' {} Maybe Text
a -> Transport
s {$sel:sourceListenerAddress:Transport' :: Maybe Text
sourceListenerAddress = Maybe Text
a} :: Transport)

-- | Source port for SRT-caller protocol.
transport_sourceListenerPort :: Lens.Lens' Transport (Prelude.Maybe Prelude.Int)
transport_sourceListenerPort :: Lens' Transport (Maybe Int)
transport_sourceListenerPort = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Transport' {Maybe Int
sourceListenerPort :: Maybe Int
$sel:sourceListenerPort:Transport' :: Transport -> Maybe Int
sourceListenerPort} -> Maybe Int
sourceListenerPort) (\s :: Transport
s@Transport' {} Maybe Int
a -> Transport
s {$sel:sourceListenerPort:Transport' :: Maybe Int
sourceListenerPort = Maybe Int
a} :: Transport)

-- | The stream ID that you want to use for this transport. This parameter
-- applies only to Zixi-based streams.
transport_streamId :: Lens.Lens' Transport (Prelude.Maybe Prelude.Text)
transport_streamId :: Lens' Transport (Maybe Text)
transport_streamId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Transport' {Maybe Text
streamId :: Maybe Text
$sel:streamId:Transport' :: Transport -> Maybe Text
streamId} -> Maybe Text
streamId) (\s :: Transport
s@Transport' {} Maybe Text
a -> Transport
s {$sel:streamId:Transport' :: Maybe Text
streamId = Maybe Text
a} :: Transport)

-- | The protocol that is used by the source or output.
transport_protocol :: Lens.Lens' Transport Protocol
transport_protocol :: Lens' Transport Protocol
transport_protocol = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Transport' {Protocol
protocol :: Protocol
$sel:protocol:Transport' :: Transport -> Protocol
protocol} -> Protocol
protocol) (\s :: Transport
s@Transport' {} Protocol
a -> Transport
s {$sel:protocol:Transport' :: Protocol
protocol = Protocol
a} :: Transport)

instance Data.FromJSON Transport where
  parseJSON :: Value -> Parser Transport
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"Transport"
      ( \Object
x ->
          Maybe [Text]
-> Maybe Int
-> Maybe Int
-> Maybe Int
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Protocol
-> Transport
Transport'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"cidrAllowList" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"maxBitrate")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"maxLatency")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"maxSyncBuffer")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"minLatency")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"remoteId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"senderControlPort")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"senderIpAddress")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"smoothingLatency")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"sourceListenerAddress")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"sourceListenerPort")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"streamId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"protocol")
      )

instance Prelude.Hashable Transport where
  hashWithSalt :: Int -> Transport -> Int
hashWithSalt Int
_salt Transport' {Maybe Int
Maybe [Text]
Maybe Text
Protocol
protocol :: Protocol
streamId :: Maybe Text
sourceListenerPort :: Maybe Int
sourceListenerAddress :: Maybe Text
smoothingLatency :: Maybe Int
senderIpAddress :: Maybe Text
senderControlPort :: Maybe Int
remoteId :: Maybe Text
minLatency :: Maybe Int
maxSyncBuffer :: Maybe Int
maxLatency :: Maybe Int
maxBitrate :: Maybe Int
cidrAllowList :: Maybe [Text]
$sel:protocol:Transport' :: Transport -> Protocol
$sel:streamId:Transport' :: Transport -> Maybe Text
$sel:sourceListenerPort:Transport' :: Transport -> Maybe Int
$sel:sourceListenerAddress:Transport' :: Transport -> Maybe Text
$sel:smoothingLatency:Transport' :: Transport -> Maybe Int
$sel:senderIpAddress:Transport' :: Transport -> Maybe Text
$sel:senderControlPort:Transport' :: Transport -> Maybe Int
$sel:remoteId:Transport' :: Transport -> Maybe Text
$sel:minLatency:Transport' :: Transport -> Maybe Int
$sel:maxSyncBuffer:Transport' :: Transport -> Maybe Int
$sel:maxLatency:Transport' :: Transport -> Maybe Int
$sel:maxBitrate:Transport' :: Transport -> Maybe Int
$sel:cidrAllowList:Transport' :: Transport -> Maybe [Text]
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
cidrAllowList
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
maxBitrate
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
maxLatency
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
maxSyncBuffer
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
minLatency
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
remoteId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
senderControlPort
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
senderIpAddress
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
smoothingLatency
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
sourceListenerAddress
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
sourceListenerPort
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
streamId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Protocol
protocol

instance Prelude.NFData Transport where
  rnf :: Transport -> ()
rnf Transport' {Maybe Int
Maybe [Text]
Maybe Text
Protocol
protocol :: Protocol
streamId :: Maybe Text
sourceListenerPort :: Maybe Int
sourceListenerAddress :: Maybe Text
smoothingLatency :: Maybe Int
senderIpAddress :: Maybe Text
senderControlPort :: Maybe Int
remoteId :: Maybe Text
minLatency :: Maybe Int
maxSyncBuffer :: Maybe Int
maxLatency :: Maybe Int
maxBitrate :: Maybe Int
cidrAllowList :: Maybe [Text]
$sel:protocol:Transport' :: Transport -> Protocol
$sel:streamId:Transport' :: Transport -> Maybe Text
$sel:sourceListenerPort:Transport' :: Transport -> Maybe Int
$sel:sourceListenerAddress:Transport' :: Transport -> Maybe Text
$sel:smoothingLatency:Transport' :: Transport -> Maybe Int
$sel:senderIpAddress:Transport' :: Transport -> Maybe Text
$sel:senderControlPort:Transport' :: Transport -> Maybe Int
$sel:remoteId:Transport' :: Transport -> Maybe Text
$sel:minLatency:Transport' :: Transport -> Maybe Int
$sel:maxSyncBuffer:Transport' :: Transport -> Maybe Int
$sel:maxLatency:Transport' :: Transport -> Maybe Int
$sel:maxBitrate:Transport' :: Transport -> Maybe Int
$sel:cidrAllowList:Transport' :: Transport -> Maybe [Text]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
cidrAllowList
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
maxBitrate
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
maxLatency
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
maxSyncBuffer
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
minLatency
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
remoteId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
senderControlPort
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
senderIpAddress
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
smoothingLatency
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
sourceListenerAddress
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
sourceListenerPort
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
streamId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Protocol
protocol