{-# 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.AppMesh.Types.GatewayRouteRef
-- 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)
module Amazonka.AppMesh.Types.GatewayRouteRef where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | An object that represents a gateway route returned by a list operation.
--
-- /See:/ 'newGatewayRouteRef' smart constructor.
data GatewayRouteRef = GatewayRouteRef'
  { -- | The full Amazon Resource Name (ARN) for the gateway route.
    GatewayRouteRef -> Text
arn :: Prelude.Text,
    -- | The Unix epoch timestamp in seconds for when the resource was created.
    GatewayRouteRef -> POSIX
createdAt :: Core.POSIX,
    -- | The name of the gateway route.
    GatewayRouteRef -> Text
gatewayRouteName :: Prelude.Text,
    -- | The Unix epoch timestamp in seconds for when the resource was last
    -- updated.
    GatewayRouteRef -> POSIX
lastUpdatedAt :: Core.POSIX,
    -- | The name of the service mesh that the resource resides in.
    GatewayRouteRef -> Text
meshName :: Prelude.Text,
    -- | The AWS IAM account ID of the service mesh owner. If the account ID is
    -- not your own, then it\'s the ID of the account that shared the mesh with
    -- your account. For more information about mesh sharing, see
    -- <https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html Working with shared meshes>.
    GatewayRouteRef -> Text
meshOwner :: Prelude.Text,
    -- | The AWS IAM account ID of the resource owner. If the account ID is not
    -- your own, then it\'s the ID of the mesh owner or of another account that
    -- the mesh is shared with. For more information about mesh sharing, see
    -- <https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html Working with shared meshes>.
    GatewayRouteRef -> Text
resourceOwner :: Prelude.Text,
    -- | The version of the resource. Resources are created at version 1, and
    -- this version is incremented each time that they\'re updated.
    GatewayRouteRef -> Integer
version :: Prelude.Integer,
    -- | The virtual gateway that the gateway route is associated with.
    GatewayRouteRef -> Text
virtualGatewayName :: Prelude.Text
  }
  deriving (GatewayRouteRef -> GatewayRouteRef -> Bool
(GatewayRouteRef -> GatewayRouteRef -> Bool)
-> (GatewayRouteRef -> GatewayRouteRef -> Bool)
-> Eq GatewayRouteRef
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GatewayRouteRef -> GatewayRouteRef -> Bool
$c/= :: GatewayRouteRef -> GatewayRouteRef -> Bool
== :: GatewayRouteRef -> GatewayRouteRef -> Bool
$c== :: GatewayRouteRef -> GatewayRouteRef -> Bool
Prelude.Eq, ReadPrec [GatewayRouteRef]
ReadPrec GatewayRouteRef
Int -> ReadS GatewayRouteRef
ReadS [GatewayRouteRef]
(Int -> ReadS GatewayRouteRef)
-> ReadS [GatewayRouteRef]
-> ReadPrec GatewayRouteRef
-> ReadPrec [GatewayRouteRef]
-> Read GatewayRouteRef
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GatewayRouteRef]
$creadListPrec :: ReadPrec [GatewayRouteRef]
readPrec :: ReadPrec GatewayRouteRef
$creadPrec :: ReadPrec GatewayRouteRef
readList :: ReadS [GatewayRouteRef]
$creadList :: ReadS [GatewayRouteRef]
readsPrec :: Int -> ReadS GatewayRouteRef
$creadsPrec :: Int -> ReadS GatewayRouteRef
Prelude.Read, Int -> GatewayRouteRef -> ShowS
[GatewayRouteRef] -> ShowS
GatewayRouteRef -> String
(Int -> GatewayRouteRef -> ShowS)
-> (GatewayRouteRef -> String)
-> ([GatewayRouteRef] -> ShowS)
-> Show GatewayRouteRef
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GatewayRouteRef] -> ShowS
$cshowList :: [GatewayRouteRef] -> ShowS
show :: GatewayRouteRef -> String
$cshow :: GatewayRouteRef -> String
showsPrec :: Int -> GatewayRouteRef -> ShowS
$cshowsPrec :: Int -> GatewayRouteRef -> ShowS
Prelude.Show, (forall x. GatewayRouteRef -> Rep GatewayRouteRef x)
-> (forall x. Rep GatewayRouteRef x -> GatewayRouteRef)
-> Generic GatewayRouteRef
forall x. Rep GatewayRouteRef x -> GatewayRouteRef
forall x. GatewayRouteRef -> Rep GatewayRouteRef x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GatewayRouteRef x -> GatewayRouteRef
$cfrom :: forall x. GatewayRouteRef -> Rep GatewayRouteRef x
Prelude.Generic)

-- |
-- Create a value of 'GatewayRouteRef' 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:
--
-- 'arn', 'gatewayRouteRef_arn' - The full Amazon Resource Name (ARN) for the gateway route.
--
-- 'createdAt', 'gatewayRouteRef_createdAt' - The Unix epoch timestamp in seconds for when the resource was created.
--
-- 'gatewayRouteName', 'gatewayRouteRef_gatewayRouteName' - The name of the gateway route.
--
-- 'lastUpdatedAt', 'gatewayRouteRef_lastUpdatedAt' - The Unix epoch timestamp in seconds for when the resource was last
-- updated.
--
-- 'meshName', 'gatewayRouteRef_meshName' - The name of the service mesh that the resource resides in.
--
-- 'meshOwner', 'gatewayRouteRef_meshOwner' - The AWS IAM account ID of the service mesh owner. If the account ID is
-- not your own, then it\'s the ID of the account that shared the mesh with
-- your account. For more information about mesh sharing, see
-- <https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html Working with shared meshes>.
--
-- 'resourceOwner', 'gatewayRouteRef_resourceOwner' - The AWS IAM account ID of the resource owner. If the account ID is not
-- your own, then it\'s the ID of the mesh owner or of another account that
-- the mesh is shared with. For more information about mesh sharing, see
-- <https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html Working with shared meshes>.
--
-- 'version', 'gatewayRouteRef_version' - The version of the resource. Resources are created at version 1, and
-- this version is incremented each time that they\'re updated.
--
-- 'virtualGatewayName', 'gatewayRouteRef_virtualGatewayName' - The virtual gateway that the gateway route is associated with.
newGatewayRouteRef ::
  -- | 'arn'
  Prelude.Text ->
  -- | 'createdAt'
  Prelude.UTCTime ->
  -- | 'gatewayRouteName'
  Prelude.Text ->
  -- | 'lastUpdatedAt'
  Prelude.UTCTime ->
  -- | 'meshName'
  Prelude.Text ->
  -- | 'meshOwner'
  Prelude.Text ->
  -- | 'resourceOwner'
  Prelude.Text ->
  -- | 'version'
  Prelude.Integer ->
  -- | 'virtualGatewayName'
  Prelude.Text ->
  GatewayRouteRef
newGatewayRouteRef :: Text
-> UTCTime
-> Text
-> UTCTime
-> Text
-> Text
-> Text
-> Integer
-> Text
-> GatewayRouteRef
newGatewayRouteRef
  Text
pArn_
  UTCTime
pCreatedAt_
  Text
pGatewayRouteName_
  UTCTime
pLastUpdatedAt_
  Text
pMeshName_
  Text
pMeshOwner_
  Text
pResourceOwner_
  Integer
pVersion_
  Text
pVirtualGatewayName_ =
    GatewayRouteRef' :: Text
-> POSIX
-> Text
-> POSIX
-> Text
-> Text
-> Text
-> Integer
-> Text
-> GatewayRouteRef
GatewayRouteRef'
      { $sel:arn:GatewayRouteRef' :: Text
arn = Text
pArn_,
        $sel:createdAt:GatewayRouteRef' :: POSIX
createdAt = Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
 -> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreatedAt_,
        $sel:gatewayRouteName:GatewayRouteRef' :: Text
gatewayRouteName = Text
pGatewayRouteName_,
        $sel:lastUpdatedAt:GatewayRouteRef' :: POSIX
lastUpdatedAt = Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
 -> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pLastUpdatedAt_,
        $sel:meshName:GatewayRouteRef' :: Text
meshName = Text
pMeshName_,
        $sel:meshOwner:GatewayRouteRef' :: Text
meshOwner = Text
pMeshOwner_,
        $sel:resourceOwner:GatewayRouteRef' :: Text
resourceOwner = Text
pResourceOwner_,
        $sel:version:GatewayRouteRef' :: Integer
version = Integer
pVersion_,
        $sel:virtualGatewayName:GatewayRouteRef' :: Text
virtualGatewayName = Text
pVirtualGatewayName_
      }

-- | The full Amazon Resource Name (ARN) for the gateway route.
gatewayRouteRef_arn :: Lens.Lens' GatewayRouteRef Prelude.Text
gatewayRouteRef_arn :: (Text -> f Text) -> GatewayRouteRef -> f GatewayRouteRef
gatewayRouteRef_arn = (GatewayRouteRef -> Text)
-> (GatewayRouteRef -> Text -> GatewayRouteRef)
-> Lens GatewayRouteRef GatewayRouteRef Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GatewayRouteRef' {Text
arn :: Text
$sel:arn:GatewayRouteRef' :: GatewayRouteRef -> Text
arn} -> Text
arn) (\s :: GatewayRouteRef
s@GatewayRouteRef' {} Text
a -> GatewayRouteRef
s {$sel:arn:GatewayRouteRef' :: Text
arn = Text
a} :: GatewayRouteRef)

-- | The Unix epoch timestamp in seconds for when the resource was created.
gatewayRouteRef_createdAt :: Lens.Lens' GatewayRouteRef Prelude.UTCTime
gatewayRouteRef_createdAt :: (UTCTime -> f UTCTime) -> GatewayRouteRef -> f GatewayRouteRef
gatewayRouteRef_createdAt = (GatewayRouteRef -> POSIX)
-> (GatewayRouteRef -> POSIX -> GatewayRouteRef)
-> Lens GatewayRouteRef GatewayRouteRef POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GatewayRouteRef' {POSIX
createdAt :: POSIX
$sel:createdAt:GatewayRouteRef' :: GatewayRouteRef -> POSIX
createdAt} -> POSIX
createdAt) (\s :: GatewayRouteRef
s@GatewayRouteRef' {} POSIX
a -> GatewayRouteRef
s {$sel:createdAt:GatewayRouteRef' :: POSIX
createdAt = POSIX
a} :: GatewayRouteRef) ((POSIX -> f POSIX) -> GatewayRouteRef -> f GatewayRouteRef)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> GatewayRouteRef
-> f GatewayRouteRef
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The name of the gateway route.
gatewayRouteRef_gatewayRouteName :: Lens.Lens' GatewayRouteRef Prelude.Text
gatewayRouteRef_gatewayRouteName :: (Text -> f Text) -> GatewayRouteRef -> f GatewayRouteRef
gatewayRouteRef_gatewayRouteName = (GatewayRouteRef -> Text)
-> (GatewayRouteRef -> Text -> GatewayRouteRef)
-> Lens GatewayRouteRef GatewayRouteRef Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GatewayRouteRef' {Text
gatewayRouteName :: Text
$sel:gatewayRouteName:GatewayRouteRef' :: GatewayRouteRef -> Text
gatewayRouteName} -> Text
gatewayRouteName) (\s :: GatewayRouteRef
s@GatewayRouteRef' {} Text
a -> GatewayRouteRef
s {$sel:gatewayRouteName:GatewayRouteRef' :: Text
gatewayRouteName = Text
a} :: GatewayRouteRef)

-- | The Unix epoch timestamp in seconds for when the resource was last
-- updated.
gatewayRouteRef_lastUpdatedAt :: Lens.Lens' GatewayRouteRef Prelude.UTCTime
gatewayRouteRef_lastUpdatedAt :: (UTCTime -> f UTCTime) -> GatewayRouteRef -> f GatewayRouteRef
gatewayRouteRef_lastUpdatedAt = (GatewayRouteRef -> POSIX)
-> (GatewayRouteRef -> POSIX -> GatewayRouteRef)
-> Lens GatewayRouteRef GatewayRouteRef POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GatewayRouteRef' {POSIX
lastUpdatedAt :: POSIX
$sel:lastUpdatedAt:GatewayRouteRef' :: GatewayRouteRef -> POSIX
lastUpdatedAt} -> POSIX
lastUpdatedAt) (\s :: GatewayRouteRef
s@GatewayRouteRef' {} POSIX
a -> GatewayRouteRef
s {$sel:lastUpdatedAt:GatewayRouteRef' :: POSIX
lastUpdatedAt = POSIX
a} :: GatewayRouteRef) ((POSIX -> f POSIX) -> GatewayRouteRef -> f GatewayRouteRef)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> GatewayRouteRef
-> f GatewayRouteRef
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The name of the service mesh that the resource resides in.
gatewayRouteRef_meshName :: Lens.Lens' GatewayRouteRef Prelude.Text
gatewayRouteRef_meshName :: (Text -> f Text) -> GatewayRouteRef -> f GatewayRouteRef
gatewayRouteRef_meshName = (GatewayRouteRef -> Text)
-> (GatewayRouteRef -> Text -> GatewayRouteRef)
-> Lens GatewayRouteRef GatewayRouteRef Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GatewayRouteRef' {Text
meshName :: Text
$sel:meshName:GatewayRouteRef' :: GatewayRouteRef -> Text
meshName} -> Text
meshName) (\s :: GatewayRouteRef
s@GatewayRouteRef' {} Text
a -> GatewayRouteRef
s {$sel:meshName:GatewayRouteRef' :: Text
meshName = Text
a} :: GatewayRouteRef)

-- | The AWS IAM account ID of the service mesh owner. If the account ID is
-- not your own, then it\'s the ID of the account that shared the mesh with
-- your account. For more information about mesh sharing, see
-- <https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html Working with shared meshes>.
gatewayRouteRef_meshOwner :: Lens.Lens' GatewayRouteRef Prelude.Text
gatewayRouteRef_meshOwner :: (Text -> f Text) -> GatewayRouteRef -> f GatewayRouteRef
gatewayRouteRef_meshOwner = (GatewayRouteRef -> Text)
-> (GatewayRouteRef -> Text -> GatewayRouteRef)
-> Lens GatewayRouteRef GatewayRouteRef Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GatewayRouteRef' {Text
meshOwner :: Text
$sel:meshOwner:GatewayRouteRef' :: GatewayRouteRef -> Text
meshOwner} -> Text
meshOwner) (\s :: GatewayRouteRef
s@GatewayRouteRef' {} Text
a -> GatewayRouteRef
s {$sel:meshOwner:GatewayRouteRef' :: Text
meshOwner = Text
a} :: GatewayRouteRef)

-- | The AWS IAM account ID of the resource owner. If the account ID is not
-- your own, then it\'s the ID of the mesh owner or of another account that
-- the mesh is shared with. For more information about mesh sharing, see
-- <https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html Working with shared meshes>.
gatewayRouteRef_resourceOwner :: Lens.Lens' GatewayRouteRef Prelude.Text
gatewayRouteRef_resourceOwner :: (Text -> f Text) -> GatewayRouteRef -> f GatewayRouteRef
gatewayRouteRef_resourceOwner = (GatewayRouteRef -> Text)
-> (GatewayRouteRef -> Text -> GatewayRouteRef)
-> Lens GatewayRouteRef GatewayRouteRef Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GatewayRouteRef' {Text
resourceOwner :: Text
$sel:resourceOwner:GatewayRouteRef' :: GatewayRouteRef -> Text
resourceOwner} -> Text
resourceOwner) (\s :: GatewayRouteRef
s@GatewayRouteRef' {} Text
a -> GatewayRouteRef
s {$sel:resourceOwner:GatewayRouteRef' :: Text
resourceOwner = Text
a} :: GatewayRouteRef)

-- | The version of the resource. Resources are created at version 1, and
-- this version is incremented each time that they\'re updated.
gatewayRouteRef_version :: Lens.Lens' GatewayRouteRef Prelude.Integer
gatewayRouteRef_version :: (Integer -> f Integer) -> GatewayRouteRef -> f GatewayRouteRef
gatewayRouteRef_version = (GatewayRouteRef -> Integer)
-> (GatewayRouteRef -> Integer -> GatewayRouteRef)
-> Lens GatewayRouteRef GatewayRouteRef Integer Integer
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GatewayRouteRef' {Integer
version :: Integer
$sel:version:GatewayRouteRef' :: GatewayRouteRef -> Integer
version} -> Integer
version) (\s :: GatewayRouteRef
s@GatewayRouteRef' {} Integer
a -> GatewayRouteRef
s {$sel:version:GatewayRouteRef' :: Integer
version = Integer
a} :: GatewayRouteRef)

-- | The virtual gateway that the gateway route is associated with.
gatewayRouteRef_virtualGatewayName :: Lens.Lens' GatewayRouteRef Prelude.Text
gatewayRouteRef_virtualGatewayName :: (Text -> f Text) -> GatewayRouteRef -> f GatewayRouteRef
gatewayRouteRef_virtualGatewayName = (GatewayRouteRef -> Text)
-> (GatewayRouteRef -> Text -> GatewayRouteRef)
-> Lens GatewayRouteRef GatewayRouteRef Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GatewayRouteRef' {Text
virtualGatewayName :: Text
$sel:virtualGatewayName:GatewayRouteRef' :: GatewayRouteRef -> Text
virtualGatewayName} -> Text
virtualGatewayName) (\s :: GatewayRouteRef
s@GatewayRouteRef' {} Text
a -> GatewayRouteRef
s {$sel:virtualGatewayName:GatewayRouteRef' :: Text
virtualGatewayName = Text
a} :: GatewayRouteRef)

instance Core.FromJSON GatewayRouteRef where
  parseJSON :: Value -> Parser GatewayRouteRef
parseJSON =
    String
-> (Object -> Parser GatewayRouteRef)
-> Value
-> Parser GatewayRouteRef
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"GatewayRouteRef"
      ( \Object
x ->
          Text
-> POSIX
-> Text
-> POSIX
-> Text
-> Text
-> Text
-> Integer
-> Text
-> GatewayRouteRef
GatewayRouteRef'
            (Text
 -> POSIX
 -> Text
 -> POSIX
 -> Text
 -> Text
 -> Text
 -> Integer
 -> Text
 -> GatewayRouteRef)
-> Parser Text
-> Parser
     (POSIX
      -> Text
      -> POSIX
      -> Text
      -> Text
      -> Text
      -> Integer
      -> Text
      -> GatewayRouteRef)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"arn")
            Parser
  (POSIX
   -> Text
   -> POSIX
   -> Text
   -> Text
   -> Text
   -> Integer
   -> Text
   -> GatewayRouteRef)
-> Parser POSIX
-> Parser
     (Text
      -> POSIX
      -> Text
      -> Text
      -> Text
      -> Integer
      -> Text
      -> GatewayRouteRef)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser POSIX
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"createdAt")
            Parser
  (Text
   -> POSIX
   -> Text
   -> Text
   -> Text
   -> Integer
   -> Text
   -> GatewayRouteRef)
-> Parser Text
-> Parser
     (POSIX
      -> Text -> Text -> Text -> Integer -> Text -> GatewayRouteRef)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"gatewayRouteName")
            Parser
  (POSIX
   -> Text -> Text -> Text -> Integer -> Text -> GatewayRouteRef)
-> Parser POSIX
-> Parser
     (Text -> Text -> Text -> Integer -> Text -> GatewayRouteRef)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser POSIX
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"lastUpdatedAt")
            Parser (Text -> Text -> Text -> Integer -> Text -> GatewayRouteRef)
-> Parser Text
-> Parser (Text -> Text -> Integer -> Text -> GatewayRouteRef)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"meshName")
            Parser (Text -> Text -> Integer -> Text -> GatewayRouteRef)
-> Parser Text
-> Parser (Text -> Integer -> Text -> GatewayRouteRef)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"meshOwner")
            Parser (Text -> Integer -> Text -> GatewayRouteRef)
-> Parser Text -> Parser (Integer -> Text -> GatewayRouteRef)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"resourceOwner")
            Parser (Integer -> Text -> GatewayRouteRef)
-> Parser Integer -> Parser (Text -> GatewayRouteRef)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Integer
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"version")
            Parser (Text -> GatewayRouteRef)
-> Parser Text -> Parser GatewayRouteRef
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"virtualGatewayName")
      )

instance Prelude.Hashable GatewayRouteRef

instance Prelude.NFData GatewayRouteRef