{-# 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.VirtualGatewayRef 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 VirtualGatewayRef = VirtualGatewayRef'
{
VirtualGatewayRef -> Text
arn :: Prelude.Text,
VirtualGatewayRef -> POSIX
createdAt :: Data.POSIX,
VirtualGatewayRef -> POSIX
lastUpdatedAt :: Data.POSIX,
VirtualGatewayRef -> Text
meshName :: Prelude.Text,
VirtualGatewayRef -> Text
meshOwner :: Prelude.Text,
VirtualGatewayRef -> Text
resourceOwner :: Prelude.Text,
VirtualGatewayRef -> Integer
version :: Prelude.Integer,
VirtualGatewayRef -> Text
virtualGatewayName :: Prelude.Text
}
deriving (VirtualGatewayRef -> VirtualGatewayRef -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: VirtualGatewayRef -> VirtualGatewayRef -> Bool
$c/= :: VirtualGatewayRef -> VirtualGatewayRef -> Bool
== :: VirtualGatewayRef -> VirtualGatewayRef -> Bool
$c== :: VirtualGatewayRef -> VirtualGatewayRef -> Bool
Prelude.Eq, ReadPrec [VirtualGatewayRef]
ReadPrec VirtualGatewayRef
Int -> ReadS VirtualGatewayRef
ReadS [VirtualGatewayRef]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [VirtualGatewayRef]
$creadListPrec :: ReadPrec [VirtualGatewayRef]
readPrec :: ReadPrec VirtualGatewayRef
$creadPrec :: ReadPrec VirtualGatewayRef
readList :: ReadS [VirtualGatewayRef]
$creadList :: ReadS [VirtualGatewayRef]
readsPrec :: Int -> ReadS VirtualGatewayRef
$creadsPrec :: Int -> ReadS VirtualGatewayRef
Prelude.Read, Int -> VirtualGatewayRef -> ShowS
[VirtualGatewayRef] -> ShowS
VirtualGatewayRef -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [VirtualGatewayRef] -> ShowS
$cshowList :: [VirtualGatewayRef] -> ShowS
show :: VirtualGatewayRef -> String
$cshow :: VirtualGatewayRef -> String
showsPrec :: Int -> VirtualGatewayRef -> ShowS
$cshowsPrec :: Int -> VirtualGatewayRef -> ShowS
Prelude.Show, forall x. Rep VirtualGatewayRef x -> VirtualGatewayRef
forall x. VirtualGatewayRef -> Rep VirtualGatewayRef x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep VirtualGatewayRef x -> VirtualGatewayRef
$cfrom :: forall x. VirtualGatewayRef -> Rep VirtualGatewayRef x
Prelude.Generic)
newVirtualGatewayRef ::
Prelude.Text ->
Prelude.UTCTime ->
Prelude.UTCTime ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Integer ->
Prelude.Text ->
VirtualGatewayRef
newVirtualGatewayRef :: Text
-> UTCTime
-> UTCTime
-> Text
-> Text
-> Text
-> Integer
-> Text
-> VirtualGatewayRef
newVirtualGatewayRef
Text
pArn_
UTCTime
pCreatedAt_
UTCTime
pLastUpdatedAt_
Text
pMeshName_
Text
pMeshOwner_
Text
pResourceOwner_
Integer
pVersion_
Text
pVirtualGatewayName_ =
VirtualGatewayRef'
{ $sel:arn:VirtualGatewayRef' :: Text
arn = Text
pArn_,
$sel:createdAt:VirtualGatewayRef' :: POSIX
createdAt = forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreatedAt_,
$sel:lastUpdatedAt:VirtualGatewayRef' :: POSIX
lastUpdatedAt = forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pLastUpdatedAt_,
$sel:meshName:VirtualGatewayRef' :: Text
meshName = Text
pMeshName_,
$sel:meshOwner:VirtualGatewayRef' :: Text
meshOwner = Text
pMeshOwner_,
$sel:resourceOwner:VirtualGatewayRef' :: Text
resourceOwner = Text
pResourceOwner_,
$sel:version:VirtualGatewayRef' :: Integer
version = Integer
pVersion_,
$sel:virtualGatewayName:VirtualGatewayRef' :: Text
virtualGatewayName = Text
pVirtualGatewayName_
}
virtualGatewayRef_arn :: Lens.Lens' VirtualGatewayRef Prelude.Text
virtualGatewayRef_arn :: Lens' VirtualGatewayRef Text
virtualGatewayRef_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VirtualGatewayRef' {Text
arn :: Text
$sel:arn:VirtualGatewayRef' :: VirtualGatewayRef -> Text
arn} -> Text
arn) (\s :: VirtualGatewayRef
s@VirtualGatewayRef' {} Text
a -> VirtualGatewayRef
s {$sel:arn:VirtualGatewayRef' :: Text
arn = Text
a} :: VirtualGatewayRef)
virtualGatewayRef_createdAt :: Lens.Lens' VirtualGatewayRef Prelude.UTCTime
virtualGatewayRef_createdAt :: Lens' VirtualGatewayRef UTCTime
virtualGatewayRef_createdAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VirtualGatewayRef' {POSIX
createdAt :: POSIX
$sel:createdAt:VirtualGatewayRef' :: VirtualGatewayRef -> POSIX
createdAt} -> POSIX
createdAt) (\s :: VirtualGatewayRef
s@VirtualGatewayRef' {} POSIX
a -> VirtualGatewayRef
s {$sel:createdAt:VirtualGatewayRef' :: POSIX
createdAt = POSIX
a} :: VirtualGatewayRef) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
virtualGatewayRef_lastUpdatedAt :: Lens.Lens' VirtualGatewayRef Prelude.UTCTime
virtualGatewayRef_lastUpdatedAt :: Lens' VirtualGatewayRef UTCTime
virtualGatewayRef_lastUpdatedAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VirtualGatewayRef' {POSIX
lastUpdatedAt :: POSIX
$sel:lastUpdatedAt:VirtualGatewayRef' :: VirtualGatewayRef -> POSIX
lastUpdatedAt} -> POSIX
lastUpdatedAt) (\s :: VirtualGatewayRef
s@VirtualGatewayRef' {} POSIX
a -> VirtualGatewayRef
s {$sel:lastUpdatedAt:VirtualGatewayRef' :: POSIX
lastUpdatedAt = POSIX
a} :: VirtualGatewayRef) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
virtualGatewayRef_meshName :: Lens.Lens' VirtualGatewayRef Prelude.Text
virtualGatewayRef_meshName :: Lens' VirtualGatewayRef Text
virtualGatewayRef_meshName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VirtualGatewayRef' {Text
meshName :: Text
$sel:meshName:VirtualGatewayRef' :: VirtualGatewayRef -> Text
meshName} -> Text
meshName) (\s :: VirtualGatewayRef
s@VirtualGatewayRef' {} Text
a -> VirtualGatewayRef
s {$sel:meshName:VirtualGatewayRef' :: Text
meshName = Text
a} :: VirtualGatewayRef)
virtualGatewayRef_meshOwner :: Lens.Lens' VirtualGatewayRef Prelude.Text
virtualGatewayRef_meshOwner :: Lens' VirtualGatewayRef Text
virtualGatewayRef_meshOwner = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VirtualGatewayRef' {Text
meshOwner :: Text
$sel:meshOwner:VirtualGatewayRef' :: VirtualGatewayRef -> Text
meshOwner} -> Text
meshOwner) (\s :: VirtualGatewayRef
s@VirtualGatewayRef' {} Text
a -> VirtualGatewayRef
s {$sel:meshOwner:VirtualGatewayRef' :: Text
meshOwner = Text
a} :: VirtualGatewayRef)
virtualGatewayRef_resourceOwner :: Lens.Lens' VirtualGatewayRef Prelude.Text
virtualGatewayRef_resourceOwner :: Lens' VirtualGatewayRef Text
virtualGatewayRef_resourceOwner = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VirtualGatewayRef' {Text
resourceOwner :: Text
$sel:resourceOwner:VirtualGatewayRef' :: VirtualGatewayRef -> Text
resourceOwner} -> Text
resourceOwner) (\s :: VirtualGatewayRef
s@VirtualGatewayRef' {} Text
a -> VirtualGatewayRef
s {$sel:resourceOwner:VirtualGatewayRef' :: Text
resourceOwner = Text
a} :: VirtualGatewayRef)
virtualGatewayRef_version :: Lens.Lens' VirtualGatewayRef Prelude.Integer
virtualGatewayRef_version :: Lens' VirtualGatewayRef Integer
virtualGatewayRef_version = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VirtualGatewayRef' {Integer
version :: Integer
$sel:version:VirtualGatewayRef' :: VirtualGatewayRef -> Integer
version} -> Integer
version) (\s :: VirtualGatewayRef
s@VirtualGatewayRef' {} Integer
a -> VirtualGatewayRef
s {$sel:version:VirtualGatewayRef' :: Integer
version = Integer
a} :: VirtualGatewayRef)
virtualGatewayRef_virtualGatewayName :: Lens.Lens' VirtualGatewayRef Prelude.Text
virtualGatewayRef_virtualGatewayName :: Lens' VirtualGatewayRef Text
virtualGatewayRef_virtualGatewayName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VirtualGatewayRef' {Text
virtualGatewayName :: Text
$sel:virtualGatewayName:VirtualGatewayRef' :: VirtualGatewayRef -> Text
virtualGatewayName} -> Text
virtualGatewayName) (\s :: VirtualGatewayRef
s@VirtualGatewayRef' {} Text
a -> VirtualGatewayRef
s {$sel:virtualGatewayName:VirtualGatewayRef' :: Text
virtualGatewayName = Text
a} :: VirtualGatewayRef)
instance Data.FromJSON VirtualGatewayRef where
parseJSON :: Value -> Parser VirtualGatewayRef
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"VirtualGatewayRef"
( \Object
x ->
Text
-> POSIX
-> POSIX
-> Text
-> Text
-> Text
-> Integer
-> Text
-> VirtualGatewayRef
VirtualGatewayRef'
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
"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 VirtualGatewayRef where
hashWithSalt :: Int -> VirtualGatewayRef -> Int
hashWithSalt Int
_salt VirtualGatewayRef' {Integer
Text
POSIX
virtualGatewayName :: Text
version :: Integer
resourceOwner :: Text
meshOwner :: Text
meshName :: Text
lastUpdatedAt :: POSIX
createdAt :: POSIX
arn :: Text
$sel:virtualGatewayName:VirtualGatewayRef' :: VirtualGatewayRef -> Text
$sel:version:VirtualGatewayRef' :: VirtualGatewayRef -> Integer
$sel:resourceOwner:VirtualGatewayRef' :: VirtualGatewayRef -> Text
$sel:meshOwner:VirtualGatewayRef' :: VirtualGatewayRef -> Text
$sel:meshName:VirtualGatewayRef' :: VirtualGatewayRef -> Text
$sel:lastUpdatedAt:VirtualGatewayRef' :: VirtualGatewayRef -> POSIX
$sel:createdAt:VirtualGatewayRef' :: VirtualGatewayRef -> POSIX
$sel:arn:VirtualGatewayRef' :: VirtualGatewayRef -> 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` 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 VirtualGatewayRef where
rnf :: VirtualGatewayRef -> ()
rnf VirtualGatewayRef' {Integer
Text
POSIX
virtualGatewayName :: Text
version :: Integer
resourceOwner :: Text
meshOwner :: Text
meshName :: Text
lastUpdatedAt :: POSIX
createdAt :: POSIX
arn :: Text
$sel:virtualGatewayName:VirtualGatewayRef' :: VirtualGatewayRef -> Text
$sel:version:VirtualGatewayRef' :: VirtualGatewayRef -> Integer
$sel:resourceOwner:VirtualGatewayRef' :: VirtualGatewayRef -> Text
$sel:meshOwner:VirtualGatewayRef' :: VirtualGatewayRef -> Text
$sel:meshName:VirtualGatewayRef' :: VirtualGatewayRef -> Text
$sel:lastUpdatedAt:VirtualGatewayRef' :: VirtualGatewayRef -> POSIX
$sel:createdAt:VirtualGatewayRef' :: VirtualGatewayRef -> POSIX
$sel:arn:VirtualGatewayRef' :: VirtualGatewayRef -> 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 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