{-# 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.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data GatewayRouteRef = GatewayRouteRef'
{
GatewayRouteRef -> Text
arn :: Prelude.Text,
GatewayRouteRef -> POSIX
createdAt :: Data.POSIX,
GatewayRouteRef -> Text
gatewayRouteName :: Prelude.Text,
GatewayRouteRef -> POSIX
lastUpdatedAt :: Data.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
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]
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
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. 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'
{ $sel:arn:GatewayRouteRef' :: Text
arn = Text
pArn_,
$sel:createdAt:GatewayRouteRef' :: POSIX
createdAt = forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreatedAt_,
$sel:gatewayRouteName:GatewayRouteRef' :: Text
gatewayRouteName = Text
pGatewayRouteName_,
$sel:lastUpdatedAt:GatewayRouteRef' :: POSIX
lastUpdatedAt = forall (a :: Format). Iso' (Time a) UTCTime
Data._Time 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 :: Lens' GatewayRouteRef Text
gatewayRouteRef_arn = 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 :: Lens' GatewayRouteRef UTCTime
gatewayRouteRef_createdAt = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
gatewayRouteRef_gatewayRouteName :: Lens.Lens' GatewayRouteRef Prelude.Text
gatewayRouteRef_gatewayRouteName :: Lens' GatewayRouteRef Text
gatewayRouteRef_gatewayRouteName = 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 :: Lens' GatewayRouteRef UTCTime
gatewayRouteRef_lastUpdatedAt = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
gatewayRouteRef_meshName :: Lens.Lens' GatewayRouteRef Prelude.Text
gatewayRouteRef_meshName :: Lens' GatewayRouteRef Text
gatewayRouteRef_meshName = 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 :: Lens' GatewayRouteRef Text
gatewayRouteRef_meshOwner = 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 :: Lens' GatewayRouteRef Text
gatewayRouteRef_resourceOwner = 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 :: Lens' GatewayRouteRef Integer
gatewayRouteRef_version = 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 :: Lens' GatewayRouteRef Text
gatewayRouteRef_virtualGatewayName = 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 Data.FromJSON GatewayRouteRef where
parseJSON :: Value -> Parser GatewayRouteRef
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"GatewayRouteRef"
( \Object
x ->
Text
-> POSIX
-> Text
-> POSIX
-> Text
-> Text
-> Text
-> Integer
-> Text
-> GatewayRouteRef
GatewayRouteRef'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"arn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"createdAt")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"gatewayRouteName")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"lastUpdatedAt")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"meshName")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"meshOwner")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"resourceOwner")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"version")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"virtualGatewayName")
)
instance Prelude.Hashable GatewayRouteRef where
hashWithSalt :: Int -> GatewayRouteRef -> Int
hashWithSalt Int
_salt GatewayRouteRef' {Integer
Text
POSIX
virtualGatewayName :: Text
version :: Integer
resourceOwner :: Text
meshOwner :: Text
meshName :: Text
lastUpdatedAt :: POSIX
gatewayRouteName :: Text
createdAt :: POSIX
arn :: Text
$sel:virtualGatewayName:GatewayRouteRef' :: GatewayRouteRef -> Text
$sel:version:GatewayRouteRef' :: GatewayRouteRef -> Integer
$sel:resourceOwner:GatewayRouteRef' :: GatewayRouteRef -> Text
$sel:meshOwner:GatewayRouteRef' :: GatewayRouteRef -> Text
$sel:meshName:GatewayRouteRef' :: GatewayRouteRef -> Text
$sel:lastUpdatedAt:GatewayRouteRef' :: GatewayRouteRef -> POSIX
$sel:gatewayRouteName:GatewayRouteRef' :: GatewayRouteRef -> Text
$sel:createdAt:GatewayRouteRef' :: GatewayRouteRef -> POSIX
$sel:arn:GatewayRouteRef' :: GatewayRouteRef -> Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
arn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` POSIX
createdAt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
gatewayRouteName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` POSIX
lastUpdatedAt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
meshName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
meshOwner
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
resourceOwner
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Integer
version
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
virtualGatewayName
instance Prelude.NFData GatewayRouteRef where
rnf :: GatewayRouteRef -> ()
rnf GatewayRouteRef' {Integer
Text
POSIX
virtualGatewayName :: Text
version :: Integer
resourceOwner :: Text
meshOwner :: Text
meshName :: Text
lastUpdatedAt :: POSIX
gatewayRouteName :: Text
createdAt :: POSIX
arn :: Text
$sel:virtualGatewayName:GatewayRouteRef' :: GatewayRouteRef -> Text
$sel:version:GatewayRouteRef' :: GatewayRouteRef -> Integer
$sel:resourceOwner:GatewayRouteRef' :: GatewayRouteRef -> Text
$sel:meshOwner:GatewayRouteRef' :: GatewayRouteRef -> Text
$sel:meshName:GatewayRouteRef' :: GatewayRouteRef -> Text
$sel:lastUpdatedAt:GatewayRouteRef' :: GatewayRouteRef -> POSIX
$sel:gatewayRouteName:GatewayRouteRef' :: GatewayRouteRef -> Text
$sel:createdAt:GatewayRouteRef' :: GatewayRouteRef -> POSIX
$sel:arn:GatewayRouteRef' :: GatewayRouteRef -> Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Text
arn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf POSIX
createdAt
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
gatewayRouteName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf POSIX
lastUpdatedAt
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
meshName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
meshOwner
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
resourceOwner
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Integer
version
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
virtualGatewayName