{-# 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.EC2.Types.LocalGatewayVirtualInterface
-- 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.EC2.Types.LocalGatewayVirtualInterface where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.EC2.Internal
import Amazonka.EC2.Types.Tag
import qualified Amazonka.Prelude as Prelude

-- | Describes a local gateway virtual interface.
--
-- /See:/ 'newLocalGatewayVirtualInterface' smart constructor.
data LocalGatewayVirtualInterface = LocalGatewayVirtualInterface'
  { -- | The local address.
    LocalGatewayVirtualInterface -> Maybe Text
localAddress :: Prelude.Maybe Prelude.Text,
    -- | The Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the
    -- local gateway.
    LocalGatewayVirtualInterface -> Maybe Int
localBgpAsn :: Prelude.Maybe Prelude.Int,
    -- | The ID of the local gateway.
    LocalGatewayVirtualInterface -> Maybe Text
localGatewayId :: Prelude.Maybe Prelude.Text,
    -- | The ID of the virtual interface.
    LocalGatewayVirtualInterface -> Maybe Text
localGatewayVirtualInterfaceId :: Prelude.Maybe Prelude.Text,
    -- | The ID of the Amazon Web Services account that owns the local gateway
    -- virtual interface.
    LocalGatewayVirtualInterface -> Maybe Text
ownerId :: Prelude.Maybe Prelude.Text,
    -- | The peer address.
    LocalGatewayVirtualInterface -> Maybe Text
peerAddress :: Prelude.Maybe Prelude.Text,
    -- | The peer BGP ASN.
    LocalGatewayVirtualInterface -> Maybe Int
peerBgpAsn :: Prelude.Maybe Prelude.Int,
    -- | The tags assigned to the virtual interface.
    LocalGatewayVirtualInterface -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
    -- | The ID of the VLAN.
    LocalGatewayVirtualInterface -> Maybe Int
vlan :: Prelude.Maybe Prelude.Int
  }
  deriving (LocalGatewayVirtualInterface
-> LocalGatewayVirtualInterface -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LocalGatewayVirtualInterface
-> LocalGatewayVirtualInterface -> Bool
$c/= :: LocalGatewayVirtualInterface
-> LocalGatewayVirtualInterface -> Bool
== :: LocalGatewayVirtualInterface
-> LocalGatewayVirtualInterface -> Bool
$c== :: LocalGatewayVirtualInterface
-> LocalGatewayVirtualInterface -> Bool
Prelude.Eq, ReadPrec [LocalGatewayVirtualInterface]
ReadPrec LocalGatewayVirtualInterface
Int -> ReadS LocalGatewayVirtualInterface
ReadS [LocalGatewayVirtualInterface]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [LocalGatewayVirtualInterface]
$creadListPrec :: ReadPrec [LocalGatewayVirtualInterface]
readPrec :: ReadPrec LocalGatewayVirtualInterface
$creadPrec :: ReadPrec LocalGatewayVirtualInterface
readList :: ReadS [LocalGatewayVirtualInterface]
$creadList :: ReadS [LocalGatewayVirtualInterface]
readsPrec :: Int -> ReadS LocalGatewayVirtualInterface
$creadsPrec :: Int -> ReadS LocalGatewayVirtualInterface
Prelude.Read, Int -> LocalGatewayVirtualInterface -> ShowS
[LocalGatewayVirtualInterface] -> ShowS
LocalGatewayVirtualInterface -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LocalGatewayVirtualInterface] -> ShowS
$cshowList :: [LocalGatewayVirtualInterface] -> ShowS
show :: LocalGatewayVirtualInterface -> String
$cshow :: LocalGatewayVirtualInterface -> String
showsPrec :: Int -> LocalGatewayVirtualInterface -> ShowS
$cshowsPrec :: Int -> LocalGatewayVirtualInterface -> ShowS
Prelude.Show, forall x.
Rep LocalGatewayVirtualInterface x -> LocalGatewayVirtualInterface
forall x.
LocalGatewayVirtualInterface -> Rep LocalGatewayVirtualInterface x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep LocalGatewayVirtualInterface x -> LocalGatewayVirtualInterface
$cfrom :: forall x.
LocalGatewayVirtualInterface -> Rep LocalGatewayVirtualInterface x
Prelude.Generic)

-- |
-- Create a value of 'LocalGatewayVirtualInterface' 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:
--
-- 'localAddress', 'localGatewayVirtualInterface_localAddress' - The local address.
--
-- 'localBgpAsn', 'localGatewayVirtualInterface_localBgpAsn' - The Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the
-- local gateway.
--
-- 'localGatewayId', 'localGatewayVirtualInterface_localGatewayId' - The ID of the local gateway.
--
-- 'localGatewayVirtualInterfaceId', 'localGatewayVirtualInterface_localGatewayVirtualInterfaceId' - The ID of the virtual interface.
--
-- 'ownerId', 'localGatewayVirtualInterface_ownerId' - The ID of the Amazon Web Services account that owns the local gateway
-- virtual interface.
--
-- 'peerAddress', 'localGatewayVirtualInterface_peerAddress' - The peer address.
--
-- 'peerBgpAsn', 'localGatewayVirtualInterface_peerBgpAsn' - The peer BGP ASN.
--
-- 'tags', 'localGatewayVirtualInterface_tags' - The tags assigned to the virtual interface.
--
-- 'vlan', 'localGatewayVirtualInterface_vlan' - The ID of the VLAN.
newLocalGatewayVirtualInterface ::
  LocalGatewayVirtualInterface
newLocalGatewayVirtualInterface :: LocalGatewayVirtualInterface
newLocalGatewayVirtualInterface =
  LocalGatewayVirtualInterface'
    { $sel:localAddress:LocalGatewayVirtualInterface' :: Maybe Text
localAddress =
        forall a. Maybe a
Prelude.Nothing,
      $sel:localBgpAsn:LocalGatewayVirtualInterface' :: Maybe Int
localBgpAsn = forall a. Maybe a
Prelude.Nothing,
      $sel:localGatewayId:LocalGatewayVirtualInterface' :: Maybe Text
localGatewayId = forall a. Maybe a
Prelude.Nothing,
      $sel:localGatewayVirtualInterfaceId:LocalGatewayVirtualInterface' :: Maybe Text
localGatewayVirtualInterfaceId =
        forall a. Maybe a
Prelude.Nothing,
      $sel:ownerId:LocalGatewayVirtualInterface' :: Maybe Text
ownerId = forall a. Maybe a
Prelude.Nothing,
      $sel:peerAddress:LocalGatewayVirtualInterface' :: Maybe Text
peerAddress = forall a. Maybe a
Prelude.Nothing,
      $sel:peerBgpAsn:LocalGatewayVirtualInterface' :: Maybe Int
peerBgpAsn = forall a. Maybe a
Prelude.Nothing,
      $sel:tags:LocalGatewayVirtualInterface' :: Maybe [Tag]
tags = forall a. Maybe a
Prelude.Nothing,
      $sel:vlan:LocalGatewayVirtualInterface' :: Maybe Int
vlan = forall a. Maybe a
Prelude.Nothing
    }

-- | The local address.
localGatewayVirtualInterface_localAddress :: Lens.Lens' LocalGatewayVirtualInterface (Prelude.Maybe Prelude.Text)
localGatewayVirtualInterface_localAddress :: Lens' LocalGatewayVirtualInterface (Maybe Text)
localGatewayVirtualInterface_localAddress = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LocalGatewayVirtualInterface' {Maybe Text
localAddress :: Maybe Text
$sel:localAddress:LocalGatewayVirtualInterface' :: LocalGatewayVirtualInterface -> Maybe Text
localAddress} -> Maybe Text
localAddress) (\s :: LocalGatewayVirtualInterface
s@LocalGatewayVirtualInterface' {} Maybe Text
a -> LocalGatewayVirtualInterface
s {$sel:localAddress:LocalGatewayVirtualInterface' :: Maybe Text
localAddress = Maybe Text
a} :: LocalGatewayVirtualInterface)

-- | The Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the
-- local gateway.
localGatewayVirtualInterface_localBgpAsn :: Lens.Lens' LocalGatewayVirtualInterface (Prelude.Maybe Prelude.Int)
localGatewayVirtualInterface_localBgpAsn :: Lens' LocalGatewayVirtualInterface (Maybe Int)
localGatewayVirtualInterface_localBgpAsn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LocalGatewayVirtualInterface' {Maybe Int
localBgpAsn :: Maybe Int
$sel:localBgpAsn:LocalGatewayVirtualInterface' :: LocalGatewayVirtualInterface -> Maybe Int
localBgpAsn} -> Maybe Int
localBgpAsn) (\s :: LocalGatewayVirtualInterface
s@LocalGatewayVirtualInterface' {} Maybe Int
a -> LocalGatewayVirtualInterface
s {$sel:localBgpAsn:LocalGatewayVirtualInterface' :: Maybe Int
localBgpAsn = Maybe Int
a} :: LocalGatewayVirtualInterface)

-- | The ID of the local gateway.
localGatewayVirtualInterface_localGatewayId :: Lens.Lens' LocalGatewayVirtualInterface (Prelude.Maybe Prelude.Text)
localGatewayVirtualInterface_localGatewayId :: Lens' LocalGatewayVirtualInterface (Maybe Text)
localGatewayVirtualInterface_localGatewayId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LocalGatewayVirtualInterface' {Maybe Text
localGatewayId :: Maybe Text
$sel:localGatewayId:LocalGatewayVirtualInterface' :: LocalGatewayVirtualInterface -> Maybe Text
localGatewayId} -> Maybe Text
localGatewayId) (\s :: LocalGatewayVirtualInterface
s@LocalGatewayVirtualInterface' {} Maybe Text
a -> LocalGatewayVirtualInterface
s {$sel:localGatewayId:LocalGatewayVirtualInterface' :: Maybe Text
localGatewayId = Maybe Text
a} :: LocalGatewayVirtualInterface)

-- | The ID of the virtual interface.
localGatewayVirtualInterface_localGatewayVirtualInterfaceId :: Lens.Lens' LocalGatewayVirtualInterface (Prelude.Maybe Prelude.Text)
localGatewayVirtualInterface_localGatewayVirtualInterfaceId :: Lens' LocalGatewayVirtualInterface (Maybe Text)
localGatewayVirtualInterface_localGatewayVirtualInterfaceId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LocalGatewayVirtualInterface' {Maybe Text
localGatewayVirtualInterfaceId :: Maybe Text
$sel:localGatewayVirtualInterfaceId:LocalGatewayVirtualInterface' :: LocalGatewayVirtualInterface -> Maybe Text
localGatewayVirtualInterfaceId} -> Maybe Text
localGatewayVirtualInterfaceId) (\s :: LocalGatewayVirtualInterface
s@LocalGatewayVirtualInterface' {} Maybe Text
a -> LocalGatewayVirtualInterface
s {$sel:localGatewayVirtualInterfaceId:LocalGatewayVirtualInterface' :: Maybe Text
localGatewayVirtualInterfaceId = Maybe Text
a} :: LocalGatewayVirtualInterface)

-- | The ID of the Amazon Web Services account that owns the local gateway
-- virtual interface.
localGatewayVirtualInterface_ownerId :: Lens.Lens' LocalGatewayVirtualInterface (Prelude.Maybe Prelude.Text)
localGatewayVirtualInterface_ownerId :: Lens' LocalGatewayVirtualInterface (Maybe Text)
localGatewayVirtualInterface_ownerId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LocalGatewayVirtualInterface' {Maybe Text
ownerId :: Maybe Text
$sel:ownerId:LocalGatewayVirtualInterface' :: LocalGatewayVirtualInterface -> Maybe Text
ownerId} -> Maybe Text
ownerId) (\s :: LocalGatewayVirtualInterface
s@LocalGatewayVirtualInterface' {} Maybe Text
a -> LocalGatewayVirtualInterface
s {$sel:ownerId:LocalGatewayVirtualInterface' :: Maybe Text
ownerId = Maybe Text
a} :: LocalGatewayVirtualInterface)

-- | The peer address.
localGatewayVirtualInterface_peerAddress :: Lens.Lens' LocalGatewayVirtualInterface (Prelude.Maybe Prelude.Text)
localGatewayVirtualInterface_peerAddress :: Lens' LocalGatewayVirtualInterface (Maybe Text)
localGatewayVirtualInterface_peerAddress = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LocalGatewayVirtualInterface' {Maybe Text
peerAddress :: Maybe Text
$sel:peerAddress:LocalGatewayVirtualInterface' :: LocalGatewayVirtualInterface -> Maybe Text
peerAddress} -> Maybe Text
peerAddress) (\s :: LocalGatewayVirtualInterface
s@LocalGatewayVirtualInterface' {} Maybe Text
a -> LocalGatewayVirtualInterface
s {$sel:peerAddress:LocalGatewayVirtualInterface' :: Maybe Text
peerAddress = Maybe Text
a} :: LocalGatewayVirtualInterface)

-- | The peer BGP ASN.
localGatewayVirtualInterface_peerBgpAsn :: Lens.Lens' LocalGatewayVirtualInterface (Prelude.Maybe Prelude.Int)
localGatewayVirtualInterface_peerBgpAsn :: Lens' LocalGatewayVirtualInterface (Maybe Int)
localGatewayVirtualInterface_peerBgpAsn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LocalGatewayVirtualInterface' {Maybe Int
peerBgpAsn :: Maybe Int
$sel:peerBgpAsn:LocalGatewayVirtualInterface' :: LocalGatewayVirtualInterface -> Maybe Int
peerBgpAsn} -> Maybe Int
peerBgpAsn) (\s :: LocalGatewayVirtualInterface
s@LocalGatewayVirtualInterface' {} Maybe Int
a -> LocalGatewayVirtualInterface
s {$sel:peerBgpAsn:LocalGatewayVirtualInterface' :: Maybe Int
peerBgpAsn = Maybe Int
a} :: LocalGatewayVirtualInterface)

-- | The tags assigned to the virtual interface.
localGatewayVirtualInterface_tags :: Lens.Lens' LocalGatewayVirtualInterface (Prelude.Maybe [Tag])
localGatewayVirtualInterface_tags :: Lens' LocalGatewayVirtualInterface (Maybe [Tag])
localGatewayVirtualInterface_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LocalGatewayVirtualInterface' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:LocalGatewayVirtualInterface' :: LocalGatewayVirtualInterface -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: LocalGatewayVirtualInterface
s@LocalGatewayVirtualInterface' {} Maybe [Tag]
a -> LocalGatewayVirtualInterface
s {$sel:tags:LocalGatewayVirtualInterface' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: LocalGatewayVirtualInterface) 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 ID of the VLAN.
localGatewayVirtualInterface_vlan :: Lens.Lens' LocalGatewayVirtualInterface (Prelude.Maybe Prelude.Int)
localGatewayVirtualInterface_vlan :: Lens' LocalGatewayVirtualInterface (Maybe Int)
localGatewayVirtualInterface_vlan = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LocalGatewayVirtualInterface' {Maybe Int
vlan :: Maybe Int
$sel:vlan:LocalGatewayVirtualInterface' :: LocalGatewayVirtualInterface -> Maybe Int
vlan} -> Maybe Int
vlan) (\s :: LocalGatewayVirtualInterface
s@LocalGatewayVirtualInterface' {} Maybe Int
a -> LocalGatewayVirtualInterface
s {$sel:vlan:LocalGatewayVirtualInterface' :: Maybe Int
vlan = Maybe Int
a} :: LocalGatewayVirtualInterface)

instance Data.FromXML LocalGatewayVirtualInterface where
  parseXML :: [Node] -> Either String LocalGatewayVirtualInterface
parseXML [Node]
x =
    Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe [Tag]
-> Maybe Int
-> LocalGatewayVirtualInterface
LocalGatewayVirtualInterface'
      forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"localAddress")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"localBgpAsn")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"localGatewayId")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"localGatewayVirtualInterfaceId")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"ownerId")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"peerAddress")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"peerBgpAsn")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( [Node]
x
                      forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"tagSet"
                      forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                      forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (forall a. FromXML a => Text -> [Node] -> Either String [a]
Data.parseXMLList Text
"item")
                  )
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"vlan")

instance
  Prelude.Hashable
    LocalGatewayVirtualInterface
  where
  hashWithSalt :: Int -> LocalGatewayVirtualInterface -> Int
hashWithSalt Int
_salt LocalGatewayVirtualInterface' {Maybe Int
Maybe [Tag]
Maybe Text
vlan :: Maybe Int
tags :: Maybe [Tag]
peerBgpAsn :: Maybe Int
peerAddress :: Maybe Text
ownerId :: Maybe Text
localGatewayVirtualInterfaceId :: Maybe Text
localGatewayId :: Maybe Text
localBgpAsn :: Maybe Int
localAddress :: Maybe Text
$sel:vlan:LocalGatewayVirtualInterface' :: LocalGatewayVirtualInterface -> Maybe Int
$sel:tags:LocalGatewayVirtualInterface' :: LocalGatewayVirtualInterface -> Maybe [Tag]
$sel:peerBgpAsn:LocalGatewayVirtualInterface' :: LocalGatewayVirtualInterface -> Maybe Int
$sel:peerAddress:LocalGatewayVirtualInterface' :: LocalGatewayVirtualInterface -> Maybe Text
$sel:ownerId:LocalGatewayVirtualInterface' :: LocalGatewayVirtualInterface -> Maybe Text
$sel:localGatewayVirtualInterfaceId:LocalGatewayVirtualInterface' :: LocalGatewayVirtualInterface -> Maybe Text
$sel:localGatewayId:LocalGatewayVirtualInterface' :: LocalGatewayVirtualInterface -> Maybe Text
$sel:localBgpAsn:LocalGatewayVirtualInterface' :: LocalGatewayVirtualInterface -> Maybe Int
$sel:localAddress:LocalGatewayVirtualInterface' :: LocalGatewayVirtualInterface -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
localAddress
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
localBgpAsn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
localGatewayId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
localGatewayVirtualInterfaceId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
ownerId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
peerAddress
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
peerBgpAsn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Tag]
tags
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
vlan

instance Prelude.NFData LocalGatewayVirtualInterface where
  rnf :: LocalGatewayVirtualInterface -> ()
rnf LocalGatewayVirtualInterface' {Maybe Int
Maybe [Tag]
Maybe Text
vlan :: Maybe Int
tags :: Maybe [Tag]
peerBgpAsn :: Maybe Int
peerAddress :: Maybe Text
ownerId :: Maybe Text
localGatewayVirtualInterfaceId :: Maybe Text
localGatewayId :: Maybe Text
localBgpAsn :: Maybe Int
localAddress :: Maybe Text
$sel:vlan:LocalGatewayVirtualInterface' :: LocalGatewayVirtualInterface -> Maybe Int
$sel:tags:LocalGatewayVirtualInterface' :: LocalGatewayVirtualInterface -> Maybe [Tag]
$sel:peerBgpAsn:LocalGatewayVirtualInterface' :: LocalGatewayVirtualInterface -> Maybe Int
$sel:peerAddress:LocalGatewayVirtualInterface' :: LocalGatewayVirtualInterface -> Maybe Text
$sel:ownerId:LocalGatewayVirtualInterface' :: LocalGatewayVirtualInterface -> Maybe Text
$sel:localGatewayVirtualInterfaceId:LocalGatewayVirtualInterface' :: LocalGatewayVirtualInterface -> Maybe Text
$sel:localGatewayId:LocalGatewayVirtualInterface' :: LocalGatewayVirtualInterface -> Maybe Text
$sel:localBgpAsn:LocalGatewayVirtualInterface' :: LocalGatewayVirtualInterface -> Maybe Int
$sel:localAddress:LocalGatewayVirtualInterface' :: LocalGatewayVirtualInterface -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
localAddress
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
localBgpAsn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
localGatewayId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
localGatewayVirtualInterfaceId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
ownerId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
peerAddress
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
peerBgpAsn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Tag]
tags
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
vlan