{-# 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.MediaLive.Types.VpcOutputSettingsDescription 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
data VpcOutputSettingsDescription = VpcOutputSettingsDescription'
{
VpcOutputSettingsDescription -> Maybe [Text]
availabilityZones :: Prelude.Maybe [Prelude.Text],
VpcOutputSettingsDescription -> Maybe [Text]
networkInterfaceIds :: Prelude.Maybe [Prelude.Text],
VpcOutputSettingsDescription -> Maybe [Text]
securityGroupIds :: Prelude.Maybe [Prelude.Text],
VpcOutputSettingsDescription -> Maybe [Text]
subnetIds :: Prelude.Maybe [Prelude.Text]
}
deriving (VpcOutputSettingsDescription
-> VpcOutputSettingsDescription -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: VpcOutputSettingsDescription
-> VpcOutputSettingsDescription -> Bool
$c/= :: VpcOutputSettingsDescription
-> VpcOutputSettingsDescription -> Bool
== :: VpcOutputSettingsDescription
-> VpcOutputSettingsDescription -> Bool
$c== :: VpcOutputSettingsDescription
-> VpcOutputSettingsDescription -> Bool
Prelude.Eq, ReadPrec [VpcOutputSettingsDescription]
ReadPrec VpcOutputSettingsDescription
Int -> ReadS VpcOutputSettingsDescription
ReadS [VpcOutputSettingsDescription]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [VpcOutputSettingsDescription]
$creadListPrec :: ReadPrec [VpcOutputSettingsDescription]
readPrec :: ReadPrec VpcOutputSettingsDescription
$creadPrec :: ReadPrec VpcOutputSettingsDescription
readList :: ReadS [VpcOutputSettingsDescription]
$creadList :: ReadS [VpcOutputSettingsDescription]
readsPrec :: Int -> ReadS VpcOutputSettingsDescription
$creadsPrec :: Int -> ReadS VpcOutputSettingsDescription
Prelude.Read, Int -> VpcOutputSettingsDescription -> ShowS
[VpcOutputSettingsDescription] -> ShowS
VpcOutputSettingsDescription -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [VpcOutputSettingsDescription] -> ShowS
$cshowList :: [VpcOutputSettingsDescription] -> ShowS
show :: VpcOutputSettingsDescription -> String
$cshow :: VpcOutputSettingsDescription -> String
showsPrec :: Int -> VpcOutputSettingsDescription -> ShowS
$cshowsPrec :: Int -> VpcOutputSettingsDescription -> ShowS
Prelude.Show, forall x.
Rep VpcOutputSettingsDescription x -> VpcOutputSettingsDescription
forall x.
VpcOutputSettingsDescription -> Rep VpcOutputSettingsDescription x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep VpcOutputSettingsDescription x -> VpcOutputSettingsDescription
$cfrom :: forall x.
VpcOutputSettingsDescription -> Rep VpcOutputSettingsDescription x
Prelude.Generic)
newVpcOutputSettingsDescription ::
VpcOutputSettingsDescription
newVpcOutputSettingsDescription :: VpcOutputSettingsDescription
newVpcOutputSettingsDescription =
VpcOutputSettingsDescription'
{ $sel:availabilityZones:VpcOutputSettingsDescription' :: Maybe [Text]
availabilityZones =
forall a. Maybe a
Prelude.Nothing,
$sel:networkInterfaceIds:VpcOutputSettingsDescription' :: Maybe [Text]
networkInterfaceIds = forall a. Maybe a
Prelude.Nothing,
$sel:securityGroupIds:VpcOutputSettingsDescription' :: Maybe [Text]
securityGroupIds = forall a. Maybe a
Prelude.Nothing,
$sel:subnetIds:VpcOutputSettingsDescription' :: Maybe [Text]
subnetIds = forall a. Maybe a
Prelude.Nothing
}
vpcOutputSettingsDescription_availabilityZones :: Lens.Lens' VpcOutputSettingsDescription (Prelude.Maybe [Prelude.Text])
vpcOutputSettingsDescription_availabilityZones :: Lens' VpcOutputSettingsDescription (Maybe [Text])
vpcOutputSettingsDescription_availabilityZones = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VpcOutputSettingsDescription' {Maybe [Text]
availabilityZones :: Maybe [Text]
$sel:availabilityZones:VpcOutputSettingsDescription' :: VpcOutputSettingsDescription -> Maybe [Text]
availabilityZones} -> Maybe [Text]
availabilityZones) (\s :: VpcOutputSettingsDescription
s@VpcOutputSettingsDescription' {} Maybe [Text]
a -> VpcOutputSettingsDescription
s {$sel:availabilityZones:VpcOutputSettingsDescription' :: Maybe [Text]
availabilityZones = Maybe [Text]
a} :: VpcOutputSettingsDescription) 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
vpcOutputSettingsDescription_networkInterfaceIds :: Lens.Lens' VpcOutputSettingsDescription (Prelude.Maybe [Prelude.Text])
vpcOutputSettingsDescription_networkInterfaceIds :: Lens' VpcOutputSettingsDescription (Maybe [Text])
vpcOutputSettingsDescription_networkInterfaceIds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VpcOutputSettingsDescription' {Maybe [Text]
networkInterfaceIds :: Maybe [Text]
$sel:networkInterfaceIds:VpcOutputSettingsDescription' :: VpcOutputSettingsDescription -> Maybe [Text]
networkInterfaceIds} -> Maybe [Text]
networkInterfaceIds) (\s :: VpcOutputSettingsDescription
s@VpcOutputSettingsDescription' {} Maybe [Text]
a -> VpcOutputSettingsDescription
s {$sel:networkInterfaceIds:VpcOutputSettingsDescription' :: Maybe [Text]
networkInterfaceIds = Maybe [Text]
a} :: VpcOutputSettingsDescription) 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
vpcOutputSettingsDescription_securityGroupIds :: Lens.Lens' VpcOutputSettingsDescription (Prelude.Maybe [Prelude.Text])
vpcOutputSettingsDescription_securityGroupIds :: Lens' VpcOutputSettingsDescription (Maybe [Text])
vpcOutputSettingsDescription_securityGroupIds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VpcOutputSettingsDescription' {Maybe [Text]
securityGroupIds :: Maybe [Text]
$sel:securityGroupIds:VpcOutputSettingsDescription' :: VpcOutputSettingsDescription -> Maybe [Text]
securityGroupIds} -> Maybe [Text]
securityGroupIds) (\s :: VpcOutputSettingsDescription
s@VpcOutputSettingsDescription' {} Maybe [Text]
a -> VpcOutputSettingsDescription
s {$sel:securityGroupIds:VpcOutputSettingsDescription' :: Maybe [Text]
securityGroupIds = Maybe [Text]
a} :: VpcOutputSettingsDescription) 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
vpcOutputSettingsDescription_subnetIds :: Lens.Lens' VpcOutputSettingsDescription (Prelude.Maybe [Prelude.Text])
vpcOutputSettingsDescription_subnetIds :: Lens' VpcOutputSettingsDescription (Maybe [Text])
vpcOutputSettingsDescription_subnetIds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VpcOutputSettingsDescription' {Maybe [Text]
subnetIds :: Maybe [Text]
$sel:subnetIds:VpcOutputSettingsDescription' :: VpcOutputSettingsDescription -> Maybe [Text]
subnetIds} -> Maybe [Text]
subnetIds) (\s :: VpcOutputSettingsDescription
s@VpcOutputSettingsDescription' {} Maybe [Text]
a -> VpcOutputSettingsDescription
s {$sel:subnetIds:VpcOutputSettingsDescription' :: Maybe [Text]
subnetIds = Maybe [Text]
a} :: VpcOutputSettingsDescription) 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
instance Data.FromJSON VpcOutputSettingsDescription where
parseJSON :: Value -> Parser VpcOutputSettingsDescription
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"VpcOutputSettingsDescription"
( \Object
x ->
Maybe [Text]
-> Maybe [Text]
-> Maybe [Text]
-> Maybe [Text]
-> VpcOutputSettingsDescription
VpcOutputSettingsDescription'
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
"availabilityZones"
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
"networkInterfaceIds"
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
"securityGroupIds"
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
"subnetIds" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
)
instance
Prelude.Hashable
VpcOutputSettingsDescription
where
hashWithSalt :: Int -> VpcOutputSettingsDescription -> Int
hashWithSalt Int
_salt VpcOutputSettingsDescription' {Maybe [Text]
subnetIds :: Maybe [Text]
securityGroupIds :: Maybe [Text]
networkInterfaceIds :: Maybe [Text]
availabilityZones :: Maybe [Text]
$sel:subnetIds:VpcOutputSettingsDescription' :: VpcOutputSettingsDescription -> Maybe [Text]
$sel:securityGroupIds:VpcOutputSettingsDescription' :: VpcOutputSettingsDescription -> Maybe [Text]
$sel:networkInterfaceIds:VpcOutputSettingsDescription' :: VpcOutputSettingsDescription -> Maybe [Text]
$sel:availabilityZones:VpcOutputSettingsDescription' :: VpcOutputSettingsDescription -> Maybe [Text]
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
availabilityZones
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
networkInterfaceIds
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
securityGroupIds
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
subnetIds
instance Prelude.NFData VpcOutputSettingsDescription where
rnf :: VpcOutputSettingsDescription -> ()
rnf VpcOutputSettingsDescription' {Maybe [Text]
subnetIds :: Maybe [Text]
securityGroupIds :: Maybe [Text]
networkInterfaceIds :: Maybe [Text]
availabilityZones :: Maybe [Text]
$sel:subnetIds:VpcOutputSettingsDescription' :: VpcOutputSettingsDescription -> Maybe [Text]
$sel:securityGroupIds:VpcOutputSettingsDescription' :: VpcOutputSettingsDescription -> Maybe [Text]
$sel:networkInterfaceIds:VpcOutputSettingsDescription' :: VpcOutputSettingsDescription -> Maybe [Text]
$sel:availabilityZones:VpcOutputSettingsDescription' :: VpcOutputSettingsDescription -> Maybe [Text]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
availabilityZones
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
networkInterfaceIds
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
securityGroupIds
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
subnetIds