{-# 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 #-}
module Amazonka.MediaConnect.Types.SetSourceRequest where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MediaConnect.Types.Encryption
import Amazonka.MediaConnect.Types.MediaStreamSourceConfigurationRequest
import Amazonka.MediaConnect.Types.Protocol
import qualified Amazonka.Prelude as Prelude
data SetSourceRequest = SetSourceRequest'
{
SetSourceRequest -> Maybe Text
entitlementArn :: Prelude.Maybe Prelude.Text,
SetSourceRequest -> Maybe Int
maxLatency :: Prelude.Maybe Prelude.Int,
SetSourceRequest -> Maybe Text
vpcInterfaceName :: Prelude.Maybe Prelude.Text,
SetSourceRequest -> Maybe Encryption
decryption :: Prelude.Maybe Encryption,
SetSourceRequest -> Maybe Int
maxSyncBuffer :: Prelude.Maybe Prelude.Int,
SetSourceRequest -> Maybe Protocol
protocol :: Prelude.Maybe Protocol,
SetSourceRequest -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
SetSourceRequest -> Maybe Int
minLatency :: Prelude.Maybe Prelude.Int,
SetSourceRequest -> Maybe Int
ingestPort :: Prelude.Maybe Prelude.Int,
SetSourceRequest -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
SetSourceRequest -> Maybe [MediaStreamSourceConfigurationRequest]
mediaStreamSourceConfigurations :: Prelude.Maybe [MediaStreamSourceConfigurationRequest],
SetSourceRequest -> Maybe Text
whitelistCidr :: Prelude.Maybe Prelude.Text,
SetSourceRequest -> Maybe Int
maxBitrate :: Prelude.Maybe Prelude.Int,
SetSourceRequest -> Maybe Text
streamId :: Prelude.Maybe Prelude.Text
}
deriving (SetSourceRequest -> SetSourceRequest -> Bool
(SetSourceRequest -> SetSourceRequest -> Bool)
-> (SetSourceRequest -> SetSourceRequest -> Bool)
-> Eq SetSourceRequest
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SetSourceRequest -> SetSourceRequest -> Bool
$c/= :: SetSourceRequest -> SetSourceRequest -> Bool
== :: SetSourceRequest -> SetSourceRequest -> Bool
$c== :: SetSourceRequest -> SetSourceRequest -> Bool
Prelude.Eq, ReadPrec [SetSourceRequest]
ReadPrec SetSourceRequest
Int -> ReadS SetSourceRequest
ReadS [SetSourceRequest]
(Int -> ReadS SetSourceRequest)
-> ReadS [SetSourceRequest]
-> ReadPrec SetSourceRequest
-> ReadPrec [SetSourceRequest]
-> Read SetSourceRequest
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SetSourceRequest]
$creadListPrec :: ReadPrec [SetSourceRequest]
readPrec :: ReadPrec SetSourceRequest
$creadPrec :: ReadPrec SetSourceRequest
readList :: ReadS [SetSourceRequest]
$creadList :: ReadS [SetSourceRequest]
readsPrec :: Int -> ReadS SetSourceRequest
$creadsPrec :: Int -> ReadS SetSourceRequest
Prelude.Read, Int -> SetSourceRequest -> ShowS
[SetSourceRequest] -> ShowS
SetSourceRequest -> String
(Int -> SetSourceRequest -> ShowS)
-> (SetSourceRequest -> String)
-> ([SetSourceRequest] -> ShowS)
-> Show SetSourceRequest
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SetSourceRequest] -> ShowS
$cshowList :: [SetSourceRequest] -> ShowS
show :: SetSourceRequest -> String
$cshow :: SetSourceRequest -> String
showsPrec :: Int -> SetSourceRequest -> ShowS
$cshowsPrec :: Int -> SetSourceRequest -> ShowS
Prelude.Show, (forall x. SetSourceRequest -> Rep SetSourceRequest x)
-> (forall x. Rep SetSourceRequest x -> SetSourceRequest)
-> Generic SetSourceRequest
forall x. Rep SetSourceRequest x -> SetSourceRequest
forall x. SetSourceRequest -> Rep SetSourceRequest x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep SetSourceRequest x -> SetSourceRequest
$cfrom :: forall x. SetSourceRequest -> Rep SetSourceRequest x
Prelude.Generic)
newSetSourceRequest ::
SetSourceRequest
newSetSourceRequest :: SetSourceRequest
newSetSourceRequest =
SetSourceRequest' :: Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Encryption
-> Maybe Int
-> Maybe Protocol
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Text
-> Maybe [MediaStreamSourceConfigurationRequest]
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> SetSourceRequest
SetSourceRequest'
{ $sel:entitlementArn:SetSourceRequest' :: Maybe Text
entitlementArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxLatency:SetSourceRequest' :: Maybe Int
maxLatency = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:vpcInterfaceName:SetSourceRequest' :: Maybe Text
vpcInterfaceName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:decryption:SetSourceRequest' :: Maybe Encryption
decryption = Maybe Encryption
forall a. Maybe a
Prelude.Nothing,
$sel:maxSyncBuffer:SetSourceRequest' :: Maybe Int
maxSyncBuffer = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:protocol:SetSourceRequest' :: Maybe Protocol
protocol = Maybe Protocol
forall a. Maybe a
Prelude.Nothing,
$sel:name:SetSourceRequest' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:minLatency:SetSourceRequest' :: Maybe Int
minLatency = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:ingestPort:SetSourceRequest' :: Maybe Int
ingestPort = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:description:SetSourceRequest' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:mediaStreamSourceConfigurations:SetSourceRequest' :: Maybe [MediaStreamSourceConfigurationRequest]
mediaStreamSourceConfigurations = Maybe [MediaStreamSourceConfigurationRequest]
forall a. Maybe a
Prelude.Nothing,
$sel:whitelistCidr:SetSourceRequest' :: Maybe Text
whitelistCidr = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxBitrate:SetSourceRequest' :: Maybe Int
maxBitrate = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:streamId:SetSourceRequest' :: Maybe Text
streamId = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
setSourceRequest_entitlementArn :: Lens.Lens' SetSourceRequest (Prelude.Maybe Prelude.Text)
setSourceRequest_entitlementArn :: (Maybe Text -> f (Maybe Text))
-> SetSourceRequest -> f SetSourceRequest
setSourceRequest_entitlementArn = (SetSourceRequest -> Maybe Text)
-> (SetSourceRequest -> Maybe Text -> SetSourceRequest)
-> Lens SetSourceRequest SetSourceRequest (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SetSourceRequest' {Maybe Text
entitlementArn :: Maybe Text
$sel:entitlementArn:SetSourceRequest' :: SetSourceRequest -> Maybe Text
entitlementArn} -> Maybe Text
entitlementArn) (\s :: SetSourceRequest
s@SetSourceRequest' {} Maybe Text
a -> SetSourceRequest
s {$sel:entitlementArn:SetSourceRequest' :: Maybe Text
entitlementArn = Maybe Text
a} :: SetSourceRequest)
setSourceRequest_maxLatency :: Lens.Lens' SetSourceRequest (Prelude.Maybe Prelude.Int)
setSourceRequest_maxLatency :: (Maybe Int -> f (Maybe Int))
-> SetSourceRequest -> f SetSourceRequest
setSourceRequest_maxLatency = (SetSourceRequest -> Maybe Int)
-> (SetSourceRequest -> Maybe Int -> SetSourceRequest)
-> Lens SetSourceRequest SetSourceRequest (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SetSourceRequest' {Maybe Int
maxLatency :: Maybe Int
$sel:maxLatency:SetSourceRequest' :: SetSourceRequest -> Maybe Int
maxLatency} -> Maybe Int
maxLatency) (\s :: SetSourceRequest
s@SetSourceRequest' {} Maybe Int
a -> SetSourceRequest
s {$sel:maxLatency:SetSourceRequest' :: Maybe Int
maxLatency = Maybe Int
a} :: SetSourceRequest)
setSourceRequest_vpcInterfaceName :: Lens.Lens' SetSourceRequest (Prelude.Maybe Prelude.Text)
setSourceRequest_vpcInterfaceName :: (Maybe Text -> f (Maybe Text))
-> SetSourceRequest -> f SetSourceRequest
setSourceRequest_vpcInterfaceName = (SetSourceRequest -> Maybe Text)
-> (SetSourceRequest -> Maybe Text -> SetSourceRequest)
-> Lens SetSourceRequest SetSourceRequest (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SetSourceRequest' {Maybe Text
vpcInterfaceName :: Maybe Text
$sel:vpcInterfaceName:SetSourceRequest' :: SetSourceRequest -> Maybe Text
vpcInterfaceName} -> Maybe Text
vpcInterfaceName) (\s :: SetSourceRequest
s@SetSourceRequest' {} Maybe Text
a -> SetSourceRequest
s {$sel:vpcInterfaceName:SetSourceRequest' :: Maybe Text
vpcInterfaceName = Maybe Text
a} :: SetSourceRequest)
setSourceRequest_decryption :: Lens.Lens' SetSourceRequest (Prelude.Maybe Encryption)
setSourceRequest_decryption :: (Maybe Encryption -> f (Maybe Encryption))
-> SetSourceRequest -> f SetSourceRequest
setSourceRequest_decryption = (SetSourceRequest -> Maybe Encryption)
-> (SetSourceRequest -> Maybe Encryption -> SetSourceRequest)
-> Lens
SetSourceRequest
SetSourceRequest
(Maybe Encryption)
(Maybe Encryption)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SetSourceRequest' {Maybe Encryption
decryption :: Maybe Encryption
$sel:decryption:SetSourceRequest' :: SetSourceRequest -> Maybe Encryption
decryption} -> Maybe Encryption
decryption) (\s :: SetSourceRequest
s@SetSourceRequest' {} Maybe Encryption
a -> SetSourceRequest
s {$sel:decryption:SetSourceRequest' :: Maybe Encryption
decryption = Maybe Encryption
a} :: SetSourceRequest)
setSourceRequest_maxSyncBuffer :: Lens.Lens' SetSourceRequest (Prelude.Maybe Prelude.Int)
setSourceRequest_maxSyncBuffer :: (Maybe Int -> f (Maybe Int))
-> SetSourceRequest -> f SetSourceRequest
setSourceRequest_maxSyncBuffer = (SetSourceRequest -> Maybe Int)
-> (SetSourceRequest -> Maybe Int -> SetSourceRequest)
-> Lens SetSourceRequest SetSourceRequest (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SetSourceRequest' {Maybe Int
maxSyncBuffer :: Maybe Int
$sel:maxSyncBuffer:SetSourceRequest' :: SetSourceRequest -> Maybe Int
maxSyncBuffer} -> Maybe Int
maxSyncBuffer) (\s :: SetSourceRequest
s@SetSourceRequest' {} Maybe Int
a -> SetSourceRequest
s {$sel:maxSyncBuffer:SetSourceRequest' :: Maybe Int
maxSyncBuffer = Maybe Int
a} :: SetSourceRequest)
setSourceRequest_protocol :: Lens.Lens' SetSourceRequest (Prelude.Maybe Protocol)
setSourceRequest_protocol :: (Maybe Protocol -> f (Maybe Protocol))
-> SetSourceRequest -> f SetSourceRequest
setSourceRequest_protocol = (SetSourceRequest -> Maybe Protocol)
-> (SetSourceRequest -> Maybe Protocol -> SetSourceRequest)
-> Lens
SetSourceRequest SetSourceRequest (Maybe Protocol) (Maybe Protocol)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SetSourceRequest' {Maybe Protocol
protocol :: Maybe Protocol
$sel:protocol:SetSourceRequest' :: SetSourceRequest -> Maybe Protocol
protocol} -> Maybe Protocol
protocol) (\s :: SetSourceRequest
s@SetSourceRequest' {} Maybe Protocol
a -> SetSourceRequest
s {$sel:protocol:SetSourceRequest' :: Maybe Protocol
protocol = Maybe Protocol
a} :: SetSourceRequest)
setSourceRequest_name :: Lens.Lens' SetSourceRequest (Prelude.Maybe Prelude.Text)
setSourceRequest_name :: (Maybe Text -> f (Maybe Text))
-> SetSourceRequest -> f SetSourceRequest
setSourceRequest_name = (SetSourceRequest -> Maybe Text)
-> (SetSourceRequest -> Maybe Text -> SetSourceRequest)
-> Lens SetSourceRequest SetSourceRequest (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SetSourceRequest' {Maybe Text
name :: Maybe Text
$sel:name:SetSourceRequest' :: SetSourceRequest -> Maybe Text
name} -> Maybe Text
name) (\s :: SetSourceRequest
s@SetSourceRequest' {} Maybe Text
a -> SetSourceRequest
s {$sel:name:SetSourceRequest' :: Maybe Text
name = Maybe Text
a} :: SetSourceRequest)
setSourceRequest_minLatency :: Lens.Lens' SetSourceRequest (Prelude.Maybe Prelude.Int)
setSourceRequest_minLatency :: (Maybe Int -> f (Maybe Int))
-> SetSourceRequest -> f SetSourceRequest
setSourceRequest_minLatency = (SetSourceRequest -> Maybe Int)
-> (SetSourceRequest -> Maybe Int -> SetSourceRequest)
-> Lens SetSourceRequest SetSourceRequest (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SetSourceRequest' {Maybe Int
minLatency :: Maybe Int
$sel:minLatency:SetSourceRequest' :: SetSourceRequest -> Maybe Int
minLatency} -> Maybe Int
minLatency) (\s :: SetSourceRequest
s@SetSourceRequest' {} Maybe Int
a -> SetSourceRequest
s {$sel:minLatency:SetSourceRequest' :: Maybe Int
minLatency = Maybe Int
a} :: SetSourceRequest)
setSourceRequest_ingestPort :: Lens.Lens' SetSourceRequest (Prelude.Maybe Prelude.Int)
setSourceRequest_ingestPort :: (Maybe Int -> f (Maybe Int))
-> SetSourceRequest -> f SetSourceRequest
setSourceRequest_ingestPort = (SetSourceRequest -> Maybe Int)
-> (SetSourceRequest -> Maybe Int -> SetSourceRequest)
-> Lens SetSourceRequest SetSourceRequest (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SetSourceRequest' {Maybe Int
ingestPort :: Maybe Int
$sel:ingestPort:SetSourceRequest' :: SetSourceRequest -> Maybe Int
ingestPort} -> Maybe Int
ingestPort) (\s :: SetSourceRequest
s@SetSourceRequest' {} Maybe Int
a -> SetSourceRequest
s {$sel:ingestPort:SetSourceRequest' :: Maybe Int
ingestPort = Maybe Int
a} :: SetSourceRequest)
setSourceRequest_description :: Lens.Lens' SetSourceRequest (Prelude.Maybe Prelude.Text)
setSourceRequest_description :: (Maybe Text -> f (Maybe Text))
-> SetSourceRequest -> f SetSourceRequest
setSourceRequest_description = (SetSourceRequest -> Maybe Text)
-> (SetSourceRequest -> Maybe Text -> SetSourceRequest)
-> Lens SetSourceRequest SetSourceRequest (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SetSourceRequest' {Maybe Text
description :: Maybe Text
$sel:description:SetSourceRequest' :: SetSourceRequest -> Maybe Text
description} -> Maybe Text
description) (\s :: SetSourceRequest
s@SetSourceRequest' {} Maybe Text
a -> SetSourceRequest
s {$sel:description:SetSourceRequest' :: Maybe Text
description = Maybe Text
a} :: SetSourceRequest)
setSourceRequest_mediaStreamSourceConfigurations :: Lens.Lens' SetSourceRequest (Prelude.Maybe [MediaStreamSourceConfigurationRequest])
setSourceRequest_mediaStreamSourceConfigurations :: (Maybe [MediaStreamSourceConfigurationRequest]
-> f (Maybe [MediaStreamSourceConfigurationRequest]))
-> SetSourceRequest -> f SetSourceRequest
setSourceRequest_mediaStreamSourceConfigurations = (SetSourceRequest -> Maybe [MediaStreamSourceConfigurationRequest])
-> (SetSourceRequest
-> Maybe [MediaStreamSourceConfigurationRequest]
-> SetSourceRequest)
-> Lens
SetSourceRequest
SetSourceRequest
(Maybe [MediaStreamSourceConfigurationRequest])
(Maybe [MediaStreamSourceConfigurationRequest])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SetSourceRequest' {Maybe [MediaStreamSourceConfigurationRequest]
mediaStreamSourceConfigurations :: Maybe [MediaStreamSourceConfigurationRequest]
$sel:mediaStreamSourceConfigurations:SetSourceRequest' :: SetSourceRequest -> Maybe [MediaStreamSourceConfigurationRequest]
mediaStreamSourceConfigurations} -> Maybe [MediaStreamSourceConfigurationRequest]
mediaStreamSourceConfigurations) (\s :: SetSourceRequest
s@SetSourceRequest' {} Maybe [MediaStreamSourceConfigurationRequest]
a -> SetSourceRequest
s {$sel:mediaStreamSourceConfigurations:SetSourceRequest' :: Maybe [MediaStreamSourceConfigurationRequest]
mediaStreamSourceConfigurations = Maybe [MediaStreamSourceConfigurationRequest]
a} :: SetSourceRequest) ((Maybe [MediaStreamSourceConfigurationRequest]
-> f (Maybe [MediaStreamSourceConfigurationRequest]))
-> SetSourceRequest -> f SetSourceRequest)
-> ((Maybe [MediaStreamSourceConfigurationRequest]
-> f (Maybe [MediaStreamSourceConfigurationRequest]))
-> Maybe [MediaStreamSourceConfigurationRequest]
-> f (Maybe [MediaStreamSourceConfigurationRequest]))
-> (Maybe [MediaStreamSourceConfigurationRequest]
-> f (Maybe [MediaStreamSourceConfigurationRequest]))
-> SetSourceRequest
-> f SetSourceRequest
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[MediaStreamSourceConfigurationRequest]
[MediaStreamSourceConfigurationRequest]
[MediaStreamSourceConfigurationRequest]
[MediaStreamSourceConfigurationRequest]
-> Iso
(Maybe [MediaStreamSourceConfigurationRequest])
(Maybe [MediaStreamSourceConfigurationRequest])
(Maybe [MediaStreamSourceConfigurationRequest])
(Maybe [MediaStreamSourceConfigurationRequest])
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 AnIso
[MediaStreamSourceConfigurationRequest]
[MediaStreamSourceConfigurationRequest]
[MediaStreamSourceConfigurationRequest]
[MediaStreamSourceConfigurationRequest]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
setSourceRequest_whitelistCidr :: Lens.Lens' SetSourceRequest (Prelude.Maybe Prelude.Text)
setSourceRequest_whitelistCidr :: (Maybe Text -> f (Maybe Text))
-> SetSourceRequest -> f SetSourceRequest
setSourceRequest_whitelistCidr = (SetSourceRequest -> Maybe Text)
-> (SetSourceRequest -> Maybe Text -> SetSourceRequest)
-> Lens SetSourceRequest SetSourceRequest (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SetSourceRequest' {Maybe Text
whitelistCidr :: Maybe Text
$sel:whitelistCidr:SetSourceRequest' :: SetSourceRequest -> Maybe Text
whitelistCidr} -> Maybe Text
whitelistCidr) (\s :: SetSourceRequest
s@SetSourceRequest' {} Maybe Text
a -> SetSourceRequest
s {$sel:whitelistCidr:SetSourceRequest' :: Maybe Text
whitelistCidr = Maybe Text
a} :: SetSourceRequest)
setSourceRequest_maxBitrate :: Lens.Lens' SetSourceRequest (Prelude.Maybe Prelude.Int)
setSourceRequest_maxBitrate :: (Maybe Int -> f (Maybe Int))
-> SetSourceRequest -> f SetSourceRequest
setSourceRequest_maxBitrate = (SetSourceRequest -> Maybe Int)
-> (SetSourceRequest -> Maybe Int -> SetSourceRequest)
-> Lens SetSourceRequest SetSourceRequest (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SetSourceRequest' {Maybe Int
maxBitrate :: Maybe Int
$sel:maxBitrate:SetSourceRequest' :: SetSourceRequest -> Maybe Int
maxBitrate} -> Maybe Int
maxBitrate) (\s :: SetSourceRequest
s@SetSourceRequest' {} Maybe Int
a -> SetSourceRequest
s {$sel:maxBitrate:SetSourceRequest' :: Maybe Int
maxBitrate = Maybe Int
a} :: SetSourceRequest)
setSourceRequest_streamId :: Lens.Lens' SetSourceRequest (Prelude.Maybe Prelude.Text)
setSourceRequest_streamId :: (Maybe Text -> f (Maybe Text))
-> SetSourceRequest -> f SetSourceRequest
setSourceRequest_streamId = (SetSourceRequest -> Maybe Text)
-> (SetSourceRequest -> Maybe Text -> SetSourceRequest)
-> Lens SetSourceRequest SetSourceRequest (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SetSourceRequest' {Maybe Text
streamId :: Maybe Text
$sel:streamId:SetSourceRequest' :: SetSourceRequest -> Maybe Text
streamId} -> Maybe Text
streamId) (\s :: SetSourceRequest
s@SetSourceRequest' {} Maybe Text
a -> SetSourceRequest
s {$sel:streamId:SetSourceRequest' :: Maybe Text
streamId = Maybe Text
a} :: SetSourceRequest)
instance Prelude.Hashable SetSourceRequest
instance Prelude.NFData SetSourceRequest
instance Core.ToJSON SetSourceRequest where
toJSON :: SetSourceRequest -> Value
toJSON SetSourceRequest' {Maybe Int
Maybe [MediaStreamSourceConfigurationRequest]
Maybe Text
Maybe Encryption
Maybe Protocol
streamId :: Maybe Text
maxBitrate :: Maybe Int
whitelistCidr :: Maybe Text
mediaStreamSourceConfigurations :: Maybe [MediaStreamSourceConfigurationRequest]
description :: Maybe Text
ingestPort :: Maybe Int
minLatency :: Maybe Int
name :: Maybe Text
protocol :: Maybe Protocol
maxSyncBuffer :: Maybe Int
decryption :: Maybe Encryption
vpcInterfaceName :: Maybe Text
maxLatency :: Maybe Int
entitlementArn :: Maybe Text
$sel:streamId:SetSourceRequest' :: SetSourceRequest -> Maybe Text
$sel:maxBitrate:SetSourceRequest' :: SetSourceRequest -> Maybe Int
$sel:whitelistCidr:SetSourceRequest' :: SetSourceRequest -> Maybe Text
$sel:mediaStreamSourceConfigurations:SetSourceRequest' :: SetSourceRequest -> Maybe [MediaStreamSourceConfigurationRequest]
$sel:description:SetSourceRequest' :: SetSourceRequest -> Maybe Text
$sel:ingestPort:SetSourceRequest' :: SetSourceRequest -> Maybe Int
$sel:minLatency:SetSourceRequest' :: SetSourceRequest -> Maybe Int
$sel:name:SetSourceRequest' :: SetSourceRequest -> Maybe Text
$sel:protocol:SetSourceRequest' :: SetSourceRequest -> Maybe Protocol
$sel:maxSyncBuffer:SetSourceRequest' :: SetSourceRequest -> Maybe Int
$sel:decryption:SetSourceRequest' :: SetSourceRequest -> Maybe Encryption
$sel:vpcInterfaceName:SetSourceRequest' :: SetSourceRequest -> Maybe Text
$sel:maxLatency:SetSourceRequest' :: SetSourceRequest -> Maybe Int
$sel:entitlementArn:SetSourceRequest' :: SetSourceRequest -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"entitlementArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
entitlementArn,
(Text
"maxLatency" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
maxLatency,
(Text
"vpcInterfaceName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
vpcInterfaceName,
(Text
"decryption" Text -> Encryption -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Encryption -> Pair) -> Maybe Encryption -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Encryption
decryption,
(Text
"maxSyncBuffer" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
maxSyncBuffer,
(Text
"protocol" Text -> Protocol -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Protocol -> Pair) -> Maybe Protocol -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Protocol
protocol,
(Text
"name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
name,
(Text
"minLatency" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
minLatency,
(Text
"ingestPort" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
ingestPort,
(Text
"description" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
description,
(Text
"mediaStreamSourceConfigurations" Text -> [MediaStreamSourceConfigurationRequest] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
([MediaStreamSourceConfigurationRequest] -> Pair)
-> Maybe [MediaStreamSourceConfigurationRequest] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [MediaStreamSourceConfigurationRequest]
mediaStreamSourceConfigurations,
(Text
"whitelistCidr" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
whitelistCidr,
(Text
"maxBitrate" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
maxBitrate,
(Text
"streamId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
streamId
]
)