{-# 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.MigrationHubReFactorSpaces.Types.ApiGatewayProxySummary where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.MigrationHubReFactorSpaces.Types.ApiGatewayEndpointType
import qualified Amazonka.Prelude as Prelude
data ApiGatewayProxySummary = ApiGatewayProxySummary'
{
ApiGatewayProxySummary -> Maybe Text
apiGatewayId :: Prelude.Maybe Prelude.Text,
ApiGatewayProxySummary -> Maybe ApiGatewayEndpointType
endpointType :: Prelude.Maybe ApiGatewayEndpointType,
ApiGatewayProxySummary -> Maybe Text
nlbArn :: Prelude.Maybe Prelude.Text,
ApiGatewayProxySummary -> Maybe Text
nlbName :: Prelude.Maybe Prelude.Text,
ApiGatewayProxySummary -> Maybe Text
proxyUrl :: Prelude.Maybe Prelude.Text,
ApiGatewayProxySummary -> Maybe Text
stageName :: Prelude.Maybe Prelude.Text,
ApiGatewayProxySummary -> Maybe Text
vpcLinkId :: Prelude.Maybe Prelude.Text
}
deriving (ApiGatewayProxySummary -> ApiGatewayProxySummary -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ApiGatewayProxySummary -> ApiGatewayProxySummary -> Bool
$c/= :: ApiGatewayProxySummary -> ApiGatewayProxySummary -> Bool
== :: ApiGatewayProxySummary -> ApiGatewayProxySummary -> Bool
$c== :: ApiGatewayProxySummary -> ApiGatewayProxySummary -> Bool
Prelude.Eq, ReadPrec [ApiGatewayProxySummary]
ReadPrec ApiGatewayProxySummary
Int -> ReadS ApiGatewayProxySummary
ReadS [ApiGatewayProxySummary]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ApiGatewayProxySummary]
$creadListPrec :: ReadPrec [ApiGatewayProxySummary]
readPrec :: ReadPrec ApiGatewayProxySummary
$creadPrec :: ReadPrec ApiGatewayProxySummary
readList :: ReadS [ApiGatewayProxySummary]
$creadList :: ReadS [ApiGatewayProxySummary]
readsPrec :: Int -> ReadS ApiGatewayProxySummary
$creadsPrec :: Int -> ReadS ApiGatewayProxySummary
Prelude.Read, Int -> ApiGatewayProxySummary -> ShowS
[ApiGatewayProxySummary] -> ShowS
ApiGatewayProxySummary -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ApiGatewayProxySummary] -> ShowS
$cshowList :: [ApiGatewayProxySummary] -> ShowS
show :: ApiGatewayProxySummary -> String
$cshow :: ApiGatewayProxySummary -> String
showsPrec :: Int -> ApiGatewayProxySummary -> ShowS
$cshowsPrec :: Int -> ApiGatewayProxySummary -> ShowS
Prelude.Show, forall x. Rep ApiGatewayProxySummary x -> ApiGatewayProxySummary
forall x. ApiGatewayProxySummary -> Rep ApiGatewayProxySummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ApiGatewayProxySummary x -> ApiGatewayProxySummary
$cfrom :: forall x. ApiGatewayProxySummary -> Rep ApiGatewayProxySummary x
Prelude.Generic)
newApiGatewayProxySummary ::
ApiGatewayProxySummary
newApiGatewayProxySummary :: ApiGatewayProxySummary
newApiGatewayProxySummary =
ApiGatewayProxySummary'
{ $sel:apiGatewayId:ApiGatewayProxySummary' :: Maybe Text
apiGatewayId =
forall a. Maybe a
Prelude.Nothing,
$sel:endpointType:ApiGatewayProxySummary' :: Maybe ApiGatewayEndpointType
endpointType = forall a. Maybe a
Prelude.Nothing,
$sel:nlbArn:ApiGatewayProxySummary' :: Maybe Text
nlbArn = forall a. Maybe a
Prelude.Nothing,
$sel:nlbName:ApiGatewayProxySummary' :: Maybe Text
nlbName = forall a. Maybe a
Prelude.Nothing,
$sel:proxyUrl:ApiGatewayProxySummary' :: Maybe Text
proxyUrl = forall a. Maybe a
Prelude.Nothing,
$sel:stageName:ApiGatewayProxySummary' :: Maybe Text
stageName = forall a. Maybe a
Prelude.Nothing,
$sel:vpcLinkId:ApiGatewayProxySummary' :: Maybe Text
vpcLinkId = forall a. Maybe a
Prelude.Nothing
}
apiGatewayProxySummary_apiGatewayId :: Lens.Lens' ApiGatewayProxySummary (Prelude.Maybe Prelude.Text)
apiGatewayProxySummary_apiGatewayId :: Lens' ApiGatewayProxySummary (Maybe Text)
apiGatewayProxySummary_apiGatewayId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApiGatewayProxySummary' {Maybe Text
apiGatewayId :: Maybe Text
$sel:apiGatewayId:ApiGatewayProxySummary' :: ApiGatewayProxySummary -> Maybe Text
apiGatewayId} -> Maybe Text
apiGatewayId) (\s :: ApiGatewayProxySummary
s@ApiGatewayProxySummary' {} Maybe Text
a -> ApiGatewayProxySummary
s {$sel:apiGatewayId:ApiGatewayProxySummary' :: Maybe Text
apiGatewayId = Maybe Text
a} :: ApiGatewayProxySummary)
apiGatewayProxySummary_endpointType :: Lens.Lens' ApiGatewayProxySummary (Prelude.Maybe ApiGatewayEndpointType)
apiGatewayProxySummary_endpointType :: Lens' ApiGatewayProxySummary (Maybe ApiGatewayEndpointType)
apiGatewayProxySummary_endpointType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApiGatewayProxySummary' {Maybe ApiGatewayEndpointType
endpointType :: Maybe ApiGatewayEndpointType
$sel:endpointType:ApiGatewayProxySummary' :: ApiGatewayProxySummary -> Maybe ApiGatewayEndpointType
endpointType} -> Maybe ApiGatewayEndpointType
endpointType) (\s :: ApiGatewayProxySummary
s@ApiGatewayProxySummary' {} Maybe ApiGatewayEndpointType
a -> ApiGatewayProxySummary
s {$sel:endpointType:ApiGatewayProxySummary' :: Maybe ApiGatewayEndpointType
endpointType = Maybe ApiGatewayEndpointType
a} :: ApiGatewayProxySummary)
apiGatewayProxySummary_nlbArn :: Lens.Lens' ApiGatewayProxySummary (Prelude.Maybe Prelude.Text)
apiGatewayProxySummary_nlbArn :: Lens' ApiGatewayProxySummary (Maybe Text)
apiGatewayProxySummary_nlbArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApiGatewayProxySummary' {Maybe Text
nlbArn :: Maybe Text
$sel:nlbArn:ApiGatewayProxySummary' :: ApiGatewayProxySummary -> Maybe Text
nlbArn} -> Maybe Text
nlbArn) (\s :: ApiGatewayProxySummary
s@ApiGatewayProxySummary' {} Maybe Text
a -> ApiGatewayProxySummary
s {$sel:nlbArn:ApiGatewayProxySummary' :: Maybe Text
nlbArn = Maybe Text
a} :: ApiGatewayProxySummary)
apiGatewayProxySummary_nlbName :: Lens.Lens' ApiGatewayProxySummary (Prelude.Maybe Prelude.Text)
apiGatewayProxySummary_nlbName :: Lens' ApiGatewayProxySummary (Maybe Text)
apiGatewayProxySummary_nlbName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApiGatewayProxySummary' {Maybe Text
nlbName :: Maybe Text
$sel:nlbName:ApiGatewayProxySummary' :: ApiGatewayProxySummary -> Maybe Text
nlbName} -> Maybe Text
nlbName) (\s :: ApiGatewayProxySummary
s@ApiGatewayProxySummary' {} Maybe Text
a -> ApiGatewayProxySummary
s {$sel:nlbName:ApiGatewayProxySummary' :: Maybe Text
nlbName = Maybe Text
a} :: ApiGatewayProxySummary)
apiGatewayProxySummary_proxyUrl :: Lens.Lens' ApiGatewayProxySummary (Prelude.Maybe Prelude.Text)
apiGatewayProxySummary_proxyUrl :: Lens' ApiGatewayProxySummary (Maybe Text)
apiGatewayProxySummary_proxyUrl = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApiGatewayProxySummary' {Maybe Text
proxyUrl :: Maybe Text
$sel:proxyUrl:ApiGatewayProxySummary' :: ApiGatewayProxySummary -> Maybe Text
proxyUrl} -> Maybe Text
proxyUrl) (\s :: ApiGatewayProxySummary
s@ApiGatewayProxySummary' {} Maybe Text
a -> ApiGatewayProxySummary
s {$sel:proxyUrl:ApiGatewayProxySummary' :: Maybe Text
proxyUrl = Maybe Text
a} :: ApiGatewayProxySummary)
apiGatewayProxySummary_stageName :: Lens.Lens' ApiGatewayProxySummary (Prelude.Maybe Prelude.Text)
apiGatewayProxySummary_stageName :: Lens' ApiGatewayProxySummary (Maybe Text)
apiGatewayProxySummary_stageName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApiGatewayProxySummary' {Maybe Text
stageName :: Maybe Text
$sel:stageName:ApiGatewayProxySummary' :: ApiGatewayProxySummary -> Maybe Text
stageName} -> Maybe Text
stageName) (\s :: ApiGatewayProxySummary
s@ApiGatewayProxySummary' {} Maybe Text
a -> ApiGatewayProxySummary
s {$sel:stageName:ApiGatewayProxySummary' :: Maybe Text
stageName = Maybe Text
a} :: ApiGatewayProxySummary)
apiGatewayProxySummary_vpcLinkId :: Lens.Lens' ApiGatewayProxySummary (Prelude.Maybe Prelude.Text)
apiGatewayProxySummary_vpcLinkId :: Lens' ApiGatewayProxySummary (Maybe Text)
apiGatewayProxySummary_vpcLinkId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApiGatewayProxySummary' {Maybe Text
vpcLinkId :: Maybe Text
$sel:vpcLinkId:ApiGatewayProxySummary' :: ApiGatewayProxySummary -> Maybe Text
vpcLinkId} -> Maybe Text
vpcLinkId) (\s :: ApiGatewayProxySummary
s@ApiGatewayProxySummary' {} Maybe Text
a -> ApiGatewayProxySummary
s {$sel:vpcLinkId:ApiGatewayProxySummary' :: Maybe Text
vpcLinkId = Maybe Text
a} :: ApiGatewayProxySummary)
instance Data.FromJSON ApiGatewayProxySummary where
parseJSON :: Value -> Parser ApiGatewayProxySummary
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"ApiGatewayProxySummary"
( \Object
x ->
Maybe Text
-> Maybe ApiGatewayEndpointType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> ApiGatewayProxySummary
ApiGatewayProxySummary'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ApiGatewayId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"EndpointType")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"NlbArn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"NlbName")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ProxyUrl")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"StageName")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"VpcLinkId")
)
instance Prelude.Hashable ApiGatewayProxySummary where
hashWithSalt :: Int -> ApiGatewayProxySummary -> Int
hashWithSalt Int
_salt ApiGatewayProxySummary' {Maybe Text
Maybe ApiGatewayEndpointType
vpcLinkId :: Maybe Text
stageName :: Maybe Text
proxyUrl :: Maybe Text
nlbName :: Maybe Text
nlbArn :: Maybe Text
endpointType :: Maybe ApiGatewayEndpointType
apiGatewayId :: Maybe Text
$sel:vpcLinkId:ApiGatewayProxySummary' :: ApiGatewayProxySummary -> Maybe Text
$sel:stageName:ApiGatewayProxySummary' :: ApiGatewayProxySummary -> Maybe Text
$sel:proxyUrl:ApiGatewayProxySummary' :: ApiGatewayProxySummary -> Maybe Text
$sel:nlbName:ApiGatewayProxySummary' :: ApiGatewayProxySummary -> Maybe Text
$sel:nlbArn:ApiGatewayProxySummary' :: ApiGatewayProxySummary -> Maybe Text
$sel:endpointType:ApiGatewayProxySummary' :: ApiGatewayProxySummary -> Maybe ApiGatewayEndpointType
$sel:apiGatewayId:ApiGatewayProxySummary' :: ApiGatewayProxySummary -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
apiGatewayId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ApiGatewayEndpointType
endpointType
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nlbArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nlbName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
proxyUrl
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
stageName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
vpcLinkId
instance Prelude.NFData ApiGatewayProxySummary where
rnf :: ApiGatewayProxySummary -> ()
rnf ApiGatewayProxySummary' {Maybe Text
Maybe ApiGatewayEndpointType
vpcLinkId :: Maybe Text
stageName :: Maybe Text
proxyUrl :: Maybe Text
nlbName :: Maybe Text
nlbArn :: Maybe Text
endpointType :: Maybe ApiGatewayEndpointType
apiGatewayId :: Maybe Text
$sel:vpcLinkId:ApiGatewayProxySummary' :: ApiGatewayProxySummary -> Maybe Text
$sel:stageName:ApiGatewayProxySummary' :: ApiGatewayProxySummary -> Maybe Text
$sel:proxyUrl:ApiGatewayProxySummary' :: ApiGatewayProxySummary -> Maybe Text
$sel:nlbName:ApiGatewayProxySummary' :: ApiGatewayProxySummary -> Maybe Text
$sel:nlbArn:ApiGatewayProxySummary' :: ApiGatewayProxySummary -> Maybe Text
$sel:endpointType:ApiGatewayProxySummary' :: ApiGatewayProxySummary -> Maybe ApiGatewayEndpointType
$sel:apiGatewayId:ApiGatewayProxySummary' :: ApiGatewayProxySummary -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
apiGatewayId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ApiGatewayEndpointType
endpointType
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nlbArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nlbName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
proxyUrl
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
stageName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
vpcLinkId