{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.DirectConnect.DescribeRouterConfiguration
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Details about the router.
module Amazonka.DirectConnect.DescribeRouterConfiguration
  ( -- * Creating a Request
    DescribeRouterConfiguration (..),
    newDescribeRouterConfiguration,

    -- * Request Lenses
    describeRouterConfiguration_routerTypeIdentifier,
    describeRouterConfiguration_virtualInterfaceId,

    -- * Destructuring the Response
    DescribeRouterConfigurationResponse (..),
    newDescribeRouterConfigurationResponse,

    -- * Response Lenses
    describeRouterConfigurationResponse_router,
    describeRouterConfigurationResponse_customerRouterConfig,
    describeRouterConfigurationResponse_virtualInterfaceName,
    describeRouterConfigurationResponse_virtualInterfaceId,
    describeRouterConfigurationResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.DirectConnect.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | Provides the details about a virtual interface\'s router.
--
-- /See:/ 'newDescribeRouterConfiguration' smart constructor.
data DescribeRouterConfiguration = DescribeRouterConfiguration'
  { -- | Identifies the router by a combination of vendor, platform, and software
    -- version. For example, @CiscoSystemsInc-2900SeriesRouters-IOS124@.
    DescribeRouterConfiguration -> Maybe Text
routerTypeIdentifier :: Prelude.Maybe Prelude.Text,
    -- | The ID of the virtual interface.
    DescribeRouterConfiguration -> Text
virtualInterfaceId :: Prelude.Text
  }
  deriving (DescribeRouterConfiguration -> DescribeRouterConfiguration -> Bool
(DescribeRouterConfiguration
 -> DescribeRouterConfiguration -> Bool)
-> (DescribeRouterConfiguration
    -> DescribeRouterConfiguration -> Bool)
-> Eq DescribeRouterConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeRouterConfiguration -> DescribeRouterConfiguration -> Bool
$c/= :: DescribeRouterConfiguration -> DescribeRouterConfiguration -> Bool
== :: DescribeRouterConfiguration -> DescribeRouterConfiguration -> Bool
$c== :: DescribeRouterConfiguration -> DescribeRouterConfiguration -> Bool
Prelude.Eq, ReadPrec [DescribeRouterConfiguration]
ReadPrec DescribeRouterConfiguration
Int -> ReadS DescribeRouterConfiguration
ReadS [DescribeRouterConfiguration]
(Int -> ReadS DescribeRouterConfiguration)
-> ReadS [DescribeRouterConfiguration]
-> ReadPrec DescribeRouterConfiguration
-> ReadPrec [DescribeRouterConfiguration]
-> Read DescribeRouterConfiguration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeRouterConfiguration]
$creadListPrec :: ReadPrec [DescribeRouterConfiguration]
readPrec :: ReadPrec DescribeRouterConfiguration
$creadPrec :: ReadPrec DescribeRouterConfiguration
readList :: ReadS [DescribeRouterConfiguration]
$creadList :: ReadS [DescribeRouterConfiguration]
readsPrec :: Int -> ReadS DescribeRouterConfiguration
$creadsPrec :: Int -> ReadS DescribeRouterConfiguration
Prelude.Read, Int -> DescribeRouterConfiguration -> ShowS
[DescribeRouterConfiguration] -> ShowS
DescribeRouterConfiguration -> String
(Int -> DescribeRouterConfiguration -> ShowS)
-> (DescribeRouterConfiguration -> String)
-> ([DescribeRouterConfiguration] -> ShowS)
-> Show DescribeRouterConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeRouterConfiguration] -> ShowS
$cshowList :: [DescribeRouterConfiguration] -> ShowS
show :: DescribeRouterConfiguration -> String
$cshow :: DescribeRouterConfiguration -> String
showsPrec :: Int -> DescribeRouterConfiguration -> ShowS
$cshowsPrec :: Int -> DescribeRouterConfiguration -> ShowS
Prelude.Show, (forall x.
 DescribeRouterConfiguration -> Rep DescribeRouterConfiguration x)
-> (forall x.
    Rep DescribeRouterConfiguration x -> DescribeRouterConfiguration)
-> Generic DescribeRouterConfiguration
forall x.
Rep DescribeRouterConfiguration x -> DescribeRouterConfiguration
forall x.
DescribeRouterConfiguration -> Rep DescribeRouterConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeRouterConfiguration x -> DescribeRouterConfiguration
$cfrom :: forall x.
DescribeRouterConfiguration -> Rep DescribeRouterConfiguration x
Prelude.Generic)

-- |
-- Create a value of 'DescribeRouterConfiguration' 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:
--
-- 'routerTypeIdentifier', 'describeRouterConfiguration_routerTypeIdentifier' - Identifies the router by a combination of vendor, platform, and software
-- version. For example, @CiscoSystemsInc-2900SeriesRouters-IOS124@.
--
-- 'virtualInterfaceId', 'describeRouterConfiguration_virtualInterfaceId' - The ID of the virtual interface.
newDescribeRouterConfiguration ::
  -- | 'virtualInterfaceId'
  Prelude.Text ->
  DescribeRouterConfiguration
newDescribeRouterConfiguration :: Text -> DescribeRouterConfiguration
newDescribeRouterConfiguration Text
pVirtualInterfaceId_ =
  DescribeRouterConfiguration' :: Maybe Text -> Text -> DescribeRouterConfiguration
DescribeRouterConfiguration'
    { $sel:routerTypeIdentifier:DescribeRouterConfiguration' :: Maybe Text
routerTypeIdentifier =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:virtualInterfaceId:DescribeRouterConfiguration' :: Text
virtualInterfaceId = Text
pVirtualInterfaceId_
    }

-- | Identifies the router by a combination of vendor, platform, and software
-- version. For example, @CiscoSystemsInc-2900SeriesRouters-IOS124@.
describeRouterConfiguration_routerTypeIdentifier :: Lens.Lens' DescribeRouterConfiguration (Prelude.Maybe Prelude.Text)
describeRouterConfiguration_routerTypeIdentifier :: (Maybe Text -> f (Maybe Text))
-> DescribeRouterConfiguration -> f DescribeRouterConfiguration
describeRouterConfiguration_routerTypeIdentifier = (DescribeRouterConfiguration -> Maybe Text)
-> (DescribeRouterConfiguration
    -> Maybe Text -> DescribeRouterConfiguration)
-> Lens
     DescribeRouterConfiguration
     DescribeRouterConfiguration
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRouterConfiguration' {Maybe Text
routerTypeIdentifier :: Maybe Text
$sel:routerTypeIdentifier:DescribeRouterConfiguration' :: DescribeRouterConfiguration -> Maybe Text
routerTypeIdentifier} -> Maybe Text
routerTypeIdentifier) (\s :: DescribeRouterConfiguration
s@DescribeRouterConfiguration' {} Maybe Text
a -> DescribeRouterConfiguration
s {$sel:routerTypeIdentifier:DescribeRouterConfiguration' :: Maybe Text
routerTypeIdentifier = Maybe Text
a} :: DescribeRouterConfiguration)

-- | The ID of the virtual interface.
describeRouterConfiguration_virtualInterfaceId :: Lens.Lens' DescribeRouterConfiguration Prelude.Text
describeRouterConfiguration_virtualInterfaceId :: (Text -> f Text)
-> DescribeRouterConfiguration -> f DescribeRouterConfiguration
describeRouterConfiguration_virtualInterfaceId = (DescribeRouterConfiguration -> Text)
-> (DescribeRouterConfiguration
    -> Text -> DescribeRouterConfiguration)
-> Lens
     DescribeRouterConfiguration DescribeRouterConfiguration Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRouterConfiguration' {Text
virtualInterfaceId :: Text
$sel:virtualInterfaceId:DescribeRouterConfiguration' :: DescribeRouterConfiguration -> Text
virtualInterfaceId} -> Text
virtualInterfaceId) (\s :: DescribeRouterConfiguration
s@DescribeRouterConfiguration' {} Text
a -> DescribeRouterConfiguration
s {$sel:virtualInterfaceId:DescribeRouterConfiguration' :: Text
virtualInterfaceId = Text
a} :: DescribeRouterConfiguration)

instance Core.AWSRequest DescribeRouterConfiguration where
  type
    AWSResponse DescribeRouterConfiguration =
      DescribeRouterConfigurationResponse
  request :: DescribeRouterConfiguration -> Request DescribeRouterConfiguration
request = Service
-> DescribeRouterConfiguration
-> Request DescribeRouterConfiguration
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeRouterConfiguration
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeRouterConfiguration)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeRouterConfiguration))
-> Logger
-> Service
-> Proxy DescribeRouterConfiguration
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeRouterConfiguration)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe RouterType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeRouterConfigurationResponse
DescribeRouterConfigurationResponse'
            (Maybe RouterType
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Int
 -> DescribeRouterConfigurationResponse)
-> Either String (Maybe RouterType)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Int
      -> DescribeRouterConfigurationResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe RouterType)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"router")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Int
   -> DescribeRouterConfigurationResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text -> Int -> DescribeRouterConfigurationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"customerRouterConfig")
            Either
  String
  (Maybe Text
   -> Maybe Text -> Int -> DescribeRouterConfigurationResponse)
-> Either String (Maybe Text)
-> Either
     String (Maybe Text -> Int -> DescribeRouterConfigurationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"virtualInterfaceName")
            Either
  String (Maybe Text -> Int -> DescribeRouterConfigurationResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeRouterConfigurationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"virtualInterfaceId")
            Either String (Int -> DescribeRouterConfigurationResponse)
-> Either String Int
-> Either String DescribeRouterConfigurationResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable DescribeRouterConfiguration

instance Prelude.NFData DescribeRouterConfiguration

instance Core.ToHeaders DescribeRouterConfiguration where
  toHeaders :: DescribeRouterConfiguration -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribeRouterConfiguration -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"OvertureService.DescribeRouterConfiguration" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToJSON DescribeRouterConfiguration where
  toJSON :: DescribeRouterConfiguration -> Value
toJSON DescribeRouterConfiguration' {Maybe Text
Text
virtualInterfaceId :: Text
routerTypeIdentifier :: Maybe Text
$sel:virtualInterfaceId:DescribeRouterConfiguration' :: DescribeRouterConfiguration -> Text
$sel:routerTypeIdentifier:DescribeRouterConfiguration' :: DescribeRouterConfiguration -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"routerTypeIdentifier" 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
routerTypeIdentifier,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"virtualInterfaceId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
virtualInterfaceId)
          ]
      )

instance Core.ToPath DescribeRouterConfiguration where
  toPath :: DescribeRouterConfiguration -> ByteString
toPath = ByteString -> DescribeRouterConfiguration -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Core.ToQuery DescribeRouterConfiguration where
  toQuery :: DescribeRouterConfiguration -> QueryString
toQuery = QueryString -> DescribeRouterConfiguration -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newDescribeRouterConfigurationResponse' smart constructor.
data DescribeRouterConfigurationResponse = DescribeRouterConfigurationResponse'
  { -- | The details about the router.
    DescribeRouterConfigurationResponse -> Maybe RouterType
router :: Prelude.Maybe RouterType,
    -- | The customer router configuration.
    DescribeRouterConfigurationResponse -> Maybe Text
customerRouterConfig :: Prelude.Maybe Prelude.Text,
    -- | The name of the virtual interface assigned by the customer network.
    DescribeRouterConfigurationResponse -> Maybe Text
virtualInterfaceName :: Prelude.Maybe Prelude.Text,
    -- | The ID assigned to the virtual interface.
    DescribeRouterConfigurationResponse -> Maybe Text
virtualInterfaceId :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    DescribeRouterConfigurationResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeRouterConfigurationResponse
-> DescribeRouterConfigurationResponse -> Bool
(DescribeRouterConfigurationResponse
 -> DescribeRouterConfigurationResponse -> Bool)
-> (DescribeRouterConfigurationResponse
    -> DescribeRouterConfigurationResponse -> Bool)
-> Eq DescribeRouterConfigurationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeRouterConfigurationResponse
-> DescribeRouterConfigurationResponse -> Bool
$c/= :: DescribeRouterConfigurationResponse
-> DescribeRouterConfigurationResponse -> Bool
== :: DescribeRouterConfigurationResponse
-> DescribeRouterConfigurationResponse -> Bool
$c== :: DescribeRouterConfigurationResponse
-> DescribeRouterConfigurationResponse -> Bool
Prelude.Eq, ReadPrec [DescribeRouterConfigurationResponse]
ReadPrec DescribeRouterConfigurationResponse
Int -> ReadS DescribeRouterConfigurationResponse
ReadS [DescribeRouterConfigurationResponse]
(Int -> ReadS DescribeRouterConfigurationResponse)
-> ReadS [DescribeRouterConfigurationResponse]
-> ReadPrec DescribeRouterConfigurationResponse
-> ReadPrec [DescribeRouterConfigurationResponse]
-> Read DescribeRouterConfigurationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeRouterConfigurationResponse]
$creadListPrec :: ReadPrec [DescribeRouterConfigurationResponse]
readPrec :: ReadPrec DescribeRouterConfigurationResponse
$creadPrec :: ReadPrec DescribeRouterConfigurationResponse
readList :: ReadS [DescribeRouterConfigurationResponse]
$creadList :: ReadS [DescribeRouterConfigurationResponse]
readsPrec :: Int -> ReadS DescribeRouterConfigurationResponse
$creadsPrec :: Int -> ReadS DescribeRouterConfigurationResponse
Prelude.Read, Int -> DescribeRouterConfigurationResponse -> ShowS
[DescribeRouterConfigurationResponse] -> ShowS
DescribeRouterConfigurationResponse -> String
(Int -> DescribeRouterConfigurationResponse -> ShowS)
-> (DescribeRouterConfigurationResponse -> String)
-> ([DescribeRouterConfigurationResponse] -> ShowS)
-> Show DescribeRouterConfigurationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeRouterConfigurationResponse] -> ShowS
$cshowList :: [DescribeRouterConfigurationResponse] -> ShowS
show :: DescribeRouterConfigurationResponse -> String
$cshow :: DescribeRouterConfigurationResponse -> String
showsPrec :: Int -> DescribeRouterConfigurationResponse -> ShowS
$cshowsPrec :: Int -> DescribeRouterConfigurationResponse -> ShowS
Prelude.Show, (forall x.
 DescribeRouterConfigurationResponse
 -> Rep DescribeRouterConfigurationResponse x)
-> (forall x.
    Rep DescribeRouterConfigurationResponse x
    -> DescribeRouterConfigurationResponse)
-> Generic DescribeRouterConfigurationResponse
forall x.
Rep DescribeRouterConfigurationResponse x
-> DescribeRouterConfigurationResponse
forall x.
DescribeRouterConfigurationResponse
-> Rep DescribeRouterConfigurationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeRouterConfigurationResponse x
-> DescribeRouterConfigurationResponse
$cfrom :: forall x.
DescribeRouterConfigurationResponse
-> Rep DescribeRouterConfigurationResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeRouterConfigurationResponse' 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:
--
-- 'router', 'describeRouterConfigurationResponse_router' - The details about the router.
--
-- 'customerRouterConfig', 'describeRouterConfigurationResponse_customerRouterConfig' - The customer router configuration.
--
-- 'virtualInterfaceName', 'describeRouterConfigurationResponse_virtualInterfaceName' - The name of the virtual interface assigned by the customer network.
--
-- 'virtualInterfaceId', 'describeRouterConfigurationResponse_virtualInterfaceId' - The ID assigned to the virtual interface.
--
-- 'httpStatus', 'describeRouterConfigurationResponse_httpStatus' - The response's http status code.
newDescribeRouterConfigurationResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeRouterConfigurationResponse
newDescribeRouterConfigurationResponse :: Int -> DescribeRouterConfigurationResponse
newDescribeRouterConfigurationResponse Int
pHttpStatus_ =
  DescribeRouterConfigurationResponse' :: Maybe RouterType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeRouterConfigurationResponse
DescribeRouterConfigurationResponse'
    { $sel:router:DescribeRouterConfigurationResponse' :: Maybe RouterType
router =
        Maybe RouterType
forall a. Maybe a
Prelude.Nothing,
      $sel:customerRouterConfig:DescribeRouterConfigurationResponse' :: Maybe Text
customerRouterConfig = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:virtualInterfaceName:DescribeRouterConfigurationResponse' :: Maybe Text
virtualInterfaceName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:virtualInterfaceId:DescribeRouterConfigurationResponse' :: Maybe Text
virtualInterfaceId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeRouterConfigurationResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The details about the router.
describeRouterConfigurationResponse_router :: Lens.Lens' DescribeRouterConfigurationResponse (Prelude.Maybe RouterType)
describeRouterConfigurationResponse_router :: (Maybe RouterType -> f (Maybe RouterType))
-> DescribeRouterConfigurationResponse
-> f DescribeRouterConfigurationResponse
describeRouterConfigurationResponse_router = (DescribeRouterConfigurationResponse -> Maybe RouterType)
-> (DescribeRouterConfigurationResponse
    -> Maybe RouterType -> DescribeRouterConfigurationResponse)
-> Lens
     DescribeRouterConfigurationResponse
     DescribeRouterConfigurationResponse
     (Maybe RouterType)
     (Maybe RouterType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRouterConfigurationResponse' {Maybe RouterType
router :: Maybe RouterType
$sel:router:DescribeRouterConfigurationResponse' :: DescribeRouterConfigurationResponse -> Maybe RouterType
router} -> Maybe RouterType
router) (\s :: DescribeRouterConfigurationResponse
s@DescribeRouterConfigurationResponse' {} Maybe RouterType
a -> DescribeRouterConfigurationResponse
s {$sel:router:DescribeRouterConfigurationResponse' :: Maybe RouterType
router = Maybe RouterType
a} :: DescribeRouterConfigurationResponse)

-- | The customer router configuration.
describeRouterConfigurationResponse_customerRouterConfig :: Lens.Lens' DescribeRouterConfigurationResponse (Prelude.Maybe Prelude.Text)
describeRouterConfigurationResponse_customerRouterConfig :: (Maybe Text -> f (Maybe Text))
-> DescribeRouterConfigurationResponse
-> f DescribeRouterConfigurationResponse
describeRouterConfigurationResponse_customerRouterConfig = (DescribeRouterConfigurationResponse -> Maybe Text)
-> (DescribeRouterConfigurationResponse
    -> Maybe Text -> DescribeRouterConfigurationResponse)
-> Lens
     DescribeRouterConfigurationResponse
     DescribeRouterConfigurationResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRouterConfigurationResponse' {Maybe Text
customerRouterConfig :: Maybe Text
$sel:customerRouterConfig:DescribeRouterConfigurationResponse' :: DescribeRouterConfigurationResponse -> Maybe Text
customerRouterConfig} -> Maybe Text
customerRouterConfig) (\s :: DescribeRouterConfigurationResponse
s@DescribeRouterConfigurationResponse' {} Maybe Text
a -> DescribeRouterConfigurationResponse
s {$sel:customerRouterConfig:DescribeRouterConfigurationResponse' :: Maybe Text
customerRouterConfig = Maybe Text
a} :: DescribeRouterConfigurationResponse)

-- | The name of the virtual interface assigned by the customer network.
describeRouterConfigurationResponse_virtualInterfaceName :: Lens.Lens' DescribeRouterConfigurationResponse (Prelude.Maybe Prelude.Text)
describeRouterConfigurationResponse_virtualInterfaceName :: (Maybe Text -> f (Maybe Text))
-> DescribeRouterConfigurationResponse
-> f DescribeRouterConfigurationResponse
describeRouterConfigurationResponse_virtualInterfaceName = (DescribeRouterConfigurationResponse -> Maybe Text)
-> (DescribeRouterConfigurationResponse
    -> Maybe Text -> DescribeRouterConfigurationResponse)
-> Lens
     DescribeRouterConfigurationResponse
     DescribeRouterConfigurationResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRouterConfigurationResponse' {Maybe Text
virtualInterfaceName :: Maybe Text
$sel:virtualInterfaceName:DescribeRouterConfigurationResponse' :: DescribeRouterConfigurationResponse -> Maybe Text
virtualInterfaceName} -> Maybe Text
virtualInterfaceName) (\s :: DescribeRouterConfigurationResponse
s@DescribeRouterConfigurationResponse' {} Maybe Text
a -> DescribeRouterConfigurationResponse
s {$sel:virtualInterfaceName:DescribeRouterConfigurationResponse' :: Maybe Text
virtualInterfaceName = Maybe Text
a} :: DescribeRouterConfigurationResponse)

-- | The ID assigned to the virtual interface.
describeRouterConfigurationResponse_virtualInterfaceId :: Lens.Lens' DescribeRouterConfigurationResponse (Prelude.Maybe Prelude.Text)
describeRouterConfigurationResponse_virtualInterfaceId :: (Maybe Text -> f (Maybe Text))
-> DescribeRouterConfigurationResponse
-> f DescribeRouterConfigurationResponse
describeRouterConfigurationResponse_virtualInterfaceId = (DescribeRouterConfigurationResponse -> Maybe Text)
-> (DescribeRouterConfigurationResponse
    -> Maybe Text -> DescribeRouterConfigurationResponse)
-> Lens
     DescribeRouterConfigurationResponse
     DescribeRouterConfigurationResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRouterConfigurationResponse' {Maybe Text
virtualInterfaceId :: Maybe Text
$sel:virtualInterfaceId:DescribeRouterConfigurationResponse' :: DescribeRouterConfigurationResponse -> Maybe Text
virtualInterfaceId} -> Maybe Text
virtualInterfaceId) (\s :: DescribeRouterConfigurationResponse
s@DescribeRouterConfigurationResponse' {} Maybe Text
a -> DescribeRouterConfigurationResponse
s {$sel:virtualInterfaceId:DescribeRouterConfigurationResponse' :: Maybe Text
virtualInterfaceId = Maybe Text
a} :: DescribeRouterConfigurationResponse)

-- | The response's http status code.
describeRouterConfigurationResponse_httpStatus :: Lens.Lens' DescribeRouterConfigurationResponse Prelude.Int
describeRouterConfigurationResponse_httpStatus :: (Int -> f Int)
-> DescribeRouterConfigurationResponse
-> f DescribeRouterConfigurationResponse
describeRouterConfigurationResponse_httpStatus = (DescribeRouterConfigurationResponse -> Int)
-> (DescribeRouterConfigurationResponse
    -> Int -> DescribeRouterConfigurationResponse)
-> Lens
     DescribeRouterConfigurationResponse
     DescribeRouterConfigurationResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRouterConfigurationResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeRouterConfigurationResponse' :: DescribeRouterConfigurationResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeRouterConfigurationResponse
s@DescribeRouterConfigurationResponse' {} Int
a -> DescribeRouterConfigurationResponse
s {$sel:httpStatus:DescribeRouterConfigurationResponse' :: Int
httpStatus = Int
a} :: DescribeRouterConfigurationResponse)

instance
  Prelude.NFData
    DescribeRouterConfigurationResponse