{-# 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.AppMesh.Types.GatewayRouteRef where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data GatewayRouteRef = GatewayRouteRef'
{
GatewayRouteRef -> Text
arn :: Prelude.Text,
GatewayRouteRef -> POSIX
createdAt :: Core.POSIX,
GatewayRouteRef -> Text
gatewayRouteName :: Prelude.Text,
GatewayRouteRef -> POSIX
lastUpdatedAt :: Core.POSIX,
GatewayRouteRef -> Text
meshName :: Prelude.Text,
GatewayRouteRef -> Text
meshOwner :: Prelude.Text,
GatewayRouteRef -> Text
resourceOwner :: Prelude.Text,
GatewayRouteRef -> Integer
version :: Prelude.Integer,
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)
newGatewayRouteRef ::
Prelude.Text ->
Prelude.UTCTime ->
Prelude.Text ->
Prelude.UTCTime ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Integer ->
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_
}
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)
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
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)
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
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)
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)
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)
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)
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