{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.ServerlessApplicationRepository.GetApplication
(
GetApplication (..),
newGetApplication,
getApplication_semanticVersion,
getApplication_applicationId,
GetApplicationResponse (..),
newGetApplicationResponse,
getApplicationResponse_creationTime,
getApplicationResponse_homePageUrl,
getApplicationResponse_licenseUrl,
getApplicationResponse_readmeUrl,
getApplicationResponse_applicationId,
getApplicationResponse_name,
getApplicationResponse_version,
getApplicationResponse_author,
getApplicationResponse_labels,
getApplicationResponse_verifiedAuthorUrl,
getApplicationResponse_description,
getApplicationResponse_spdxLicenseId,
getApplicationResponse_isVerifiedAuthor,
getApplicationResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.ServerlessApplicationRepository.Types
data GetApplication = GetApplication'
{
GetApplication -> Maybe Text
semanticVersion :: Prelude.Maybe Prelude.Text,
GetApplication -> Text
applicationId :: Prelude.Text
}
deriving (GetApplication -> GetApplication -> Bool
(GetApplication -> GetApplication -> Bool)
-> (GetApplication -> GetApplication -> Bool) -> Eq GetApplication
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetApplication -> GetApplication -> Bool
$c/= :: GetApplication -> GetApplication -> Bool
== :: GetApplication -> GetApplication -> Bool
$c== :: GetApplication -> GetApplication -> Bool
Prelude.Eq, ReadPrec [GetApplication]
ReadPrec GetApplication
Int -> ReadS GetApplication
ReadS [GetApplication]
(Int -> ReadS GetApplication)
-> ReadS [GetApplication]
-> ReadPrec GetApplication
-> ReadPrec [GetApplication]
-> Read GetApplication
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetApplication]
$creadListPrec :: ReadPrec [GetApplication]
readPrec :: ReadPrec GetApplication
$creadPrec :: ReadPrec GetApplication
readList :: ReadS [GetApplication]
$creadList :: ReadS [GetApplication]
readsPrec :: Int -> ReadS GetApplication
$creadsPrec :: Int -> ReadS GetApplication
Prelude.Read, Int -> GetApplication -> ShowS
[GetApplication] -> ShowS
GetApplication -> String
(Int -> GetApplication -> ShowS)
-> (GetApplication -> String)
-> ([GetApplication] -> ShowS)
-> Show GetApplication
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetApplication] -> ShowS
$cshowList :: [GetApplication] -> ShowS
show :: GetApplication -> String
$cshow :: GetApplication -> String
showsPrec :: Int -> GetApplication -> ShowS
$cshowsPrec :: Int -> GetApplication -> ShowS
Prelude.Show, (forall x. GetApplication -> Rep GetApplication x)
-> (forall x. Rep GetApplication x -> GetApplication)
-> Generic GetApplication
forall x. Rep GetApplication x -> GetApplication
forall x. GetApplication -> Rep GetApplication x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetApplication x -> GetApplication
$cfrom :: forall x. GetApplication -> Rep GetApplication x
Prelude.Generic)
newGetApplication ::
Prelude.Text ->
GetApplication
newGetApplication :: Text -> GetApplication
newGetApplication Text
pApplicationId_ =
GetApplication' :: Maybe Text -> Text -> GetApplication
GetApplication'
{ $sel:semanticVersion:GetApplication' :: Maybe Text
semanticVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:applicationId:GetApplication' :: Text
applicationId = Text
pApplicationId_
}
getApplication_semanticVersion :: Lens.Lens' GetApplication (Prelude.Maybe Prelude.Text)
getApplication_semanticVersion :: (Maybe Text -> f (Maybe Text))
-> GetApplication -> f GetApplication
getApplication_semanticVersion = (GetApplication -> Maybe Text)
-> (GetApplication -> Maybe Text -> GetApplication)
-> Lens GetApplication GetApplication (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetApplication' {Maybe Text
semanticVersion :: Maybe Text
$sel:semanticVersion:GetApplication' :: GetApplication -> Maybe Text
semanticVersion} -> Maybe Text
semanticVersion) (\s :: GetApplication
s@GetApplication' {} Maybe Text
a -> GetApplication
s {$sel:semanticVersion:GetApplication' :: Maybe Text
semanticVersion = Maybe Text
a} :: GetApplication)
getApplication_applicationId :: Lens.Lens' GetApplication Prelude.Text
getApplication_applicationId :: (Text -> f Text) -> GetApplication -> f GetApplication
getApplication_applicationId = (GetApplication -> Text)
-> (GetApplication -> Text -> GetApplication)
-> Lens GetApplication GetApplication Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetApplication' {Text
applicationId :: Text
$sel:applicationId:GetApplication' :: GetApplication -> Text
applicationId} -> Text
applicationId) (\s :: GetApplication
s@GetApplication' {} Text
a -> GetApplication
s {$sel:applicationId:GetApplication' :: Text
applicationId = Text
a} :: GetApplication)
instance Core.AWSRequest GetApplication where
type
AWSResponse GetApplication =
GetApplicationResponse
request :: GetApplication -> Request GetApplication
request = Service -> GetApplication -> Request GetApplication
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy GetApplication
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetApplication)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetApplication))
-> Logger
-> Service
-> Proxy GetApplication
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetApplication)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Version
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> GetApplicationResponse
GetApplicationResponse'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Version
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> GetApplicationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Version
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> GetApplicationResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"creationTime")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Version
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> GetApplicationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Version
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> GetApplicationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"homePageUrl")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Version
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> GetApplicationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Version
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> GetApplicationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"licenseUrl")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Version
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> GetApplicationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Version
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> GetApplicationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"readmeUrl")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Version
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> GetApplicationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Version
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> GetApplicationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"applicationId")
Either
String
(Maybe Text
-> Maybe Version
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> GetApplicationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Version
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> GetApplicationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"name")
Either
String
(Maybe Version
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> GetApplicationResponse)
-> Either String (Maybe Version)
-> Either
String
(Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> GetApplicationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Version)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"version")
Either
String
(Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> GetApplicationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> GetApplicationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"author")
Either
String
(Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> GetApplicationResponse)
-> Either String (Maybe [Text])
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> GetApplicationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"labels" Either String (Maybe (Maybe [Text]))
-> Maybe [Text] -> Either String (Maybe [Text])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Text]
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> GetApplicationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text -> Maybe Bool -> Int -> GetApplicationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"verifiedAuthorUrl")
Either
String
(Maybe Text
-> Maybe Text -> Maybe Bool -> Int -> GetApplicationResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe Text -> Maybe Bool -> Int -> GetApplicationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"description")
Either
String (Maybe Text -> Maybe Bool -> Int -> GetApplicationResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Bool -> Int -> GetApplicationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"spdxLicenseId")
Either String (Maybe Bool -> Int -> GetApplicationResponse)
-> Either String (Maybe Bool)
-> Either String (Int -> GetApplicationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"isVerifiedAuthor")
Either String (Int -> GetApplicationResponse)
-> Either String Int -> Either String GetApplicationResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable GetApplication
instance Prelude.NFData GetApplication
instance Core.ToHeaders GetApplication where
toHeaders :: GetApplication -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetApplication -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToPath GetApplication where
toPath :: GetApplication -> ByteString
toPath GetApplication' {Maybe Text
Text
applicationId :: Text
semanticVersion :: Maybe Text
$sel:applicationId:GetApplication' :: GetApplication -> Text
$sel:semanticVersion:GetApplication' :: GetApplication -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/applications/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
applicationId]
instance Core.ToQuery GetApplication where
toQuery :: GetApplication -> QueryString
toQuery GetApplication' {Maybe Text
Text
applicationId :: Text
semanticVersion :: Maybe Text
$sel:applicationId:GetApplication' :: GetApplication -> Text
$sel:semanticVersion:GetApplication' :: GetApplication -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"semanticVersion" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
semanticVersion]
data GetApplicationResponse = GetApplicationResponse'
{
GetApplicationResponse -> Maybe Text
creationTime :: Prelude.Maybe Prelude.Text,
GetApplicationResponse -> Maybe Text
homePageUrl :: Prelude.Maybe Prelude.Text,
GetApplicationResponse -> Maybe Text
licenseUrl :: Prelude.Maybe Prelude.Text,
GetApplicationResponse -> Maybe Text
readmeUrl :: Prelude.Maybe Prelude.Text,
GetApplicationResponse -> Maybe Text
applicationId :: Prelude.Maybe Prelude.Text,
GetApplicationResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
GetApplicationResponse -> Maybe Version
version :: Prelude.Maybe Version,
GetApplicationResponse -> Maybe Text
author :: Prelude.Maybe Prelude.Text,
GetApplicationResponse -> Maybe [Text]
labels :: Prelude.Maybe [Prelude.Text],
GetApplicationResponse -> Maybe Text
verifiedAuthorUrl :: Prelude.Maybe Prelude.Text,
GetApplicationResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
GetApplicationResponse -> Maybe Text
spdxLicenseId :: Prelude.Maybe Prelude.Text,
GetApplicationResponse -> Maybe Bool
isVerifiedAuthor :: Prelude.Maybe Prelude.Bool,
GetApplicationResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetApplicationResponse -> GetApplicationResponse -> Bool
(GetApplicationResponse -> GetApplicationResponse -> Bool)
-> (GetApplicationResponse -> GetApplicationResponse -> Bool)
-> Eq GetApplicationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetApplicationResponse -> GetApplicationResponse -> Bool
$c/= :: GetApplicationResponse -> GetApplicationResponse -> Bool
== :: GetApplicationResponse -> GetApplicationResponse -> Bool
$c== :: GetApplicationResponse -> GetApplicationResponse -> Bool
Prelude.Eq, ReadPrec [GetApplicationResponse]
ReadPrec GetApplicationResponse
Int -> ReadS GetApplicationResponse
ReadS [GetApplicationResponse]
(Int -> ReadS GetApplicationResponse)
-> ReadS [GetApplicationResponse]
-> ReadPrec GetApplicationResponse
-> ReadPrec [GetApplicationResponse]
-> Read GetApplicationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetApplicationResponse]
$creadListPrec :: ReadPrec [GetApplicationResponse]
readPrec :: ReadPrec GetApplicationResponse
$creadPrec :: ReadPrec GetApplicationResponse
readList :: ReadS [GetApplicationResponse]
$creadList :: ReadS [GetApplicationResponse]
readsPrec :: Int -> ReadS GetApplicationResponse
$creadsPrec :: Int -> ReadS GetApplicationResponse
Prelude.Read, Int -> GetApplicationResponse -> ShowS
[GetApplicationResponse] -> ShowS
GetApplicationResponse -> String
(Int -> GetApplicationResponse -> ShowS)
-> (GetApplicationResponse -> String)
-> ([GetApplicationResponse] -> ShowS)
-> Show GetApplicationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetApplicationResponse] -> ShowS
$cshowList :: [GetApplicationResponse] -> ShowS
show :: GetApplicationResponse -> String
$cshow :: GetApplicationResponse -> String
showsPrec :: Int -> GetApplicationResponse -> ShowS
$cshowsPrec :: Int -> GetApplicationResponse -> ShowS
Prelude.Show, (forall x. GetApplicationResponse -> Rep GetApplicationResponse x)
-> (forall x.
Rep GetApplicationResponse x -> GetApplicationResponse)
-> Generic GetApplicationResponse
forall x. Rep GetApplicationResponse x -> GetApplicationResponse
forall x. GetApplicationResponse -> Rep GetApplicationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetApplicationResponse x -> GetApplicationResponse
$cfrom :: forall x. GetApplicationResponse -> Rep GetApplicationResponse x
Prelude.Generic)
newGetApplicationResponse ::
Prelude.Int ->
GetApplicationResponse
newGetApplicationResponse :: Int -> GetApplicationResponse
newGetApplicationResponse Int
pHttpStatus_ =
GetApplicationResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Version
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> GetApplicationResponse
GetApplicationResponse'
{ $sel:creationTime:GetApplicationResponse' :: Maybe Text
creationTime =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:homePageUrl:GetApplicationResponse' :: Maybe Text
homePageUrl = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:licenseUrl:GetApplicationResponse' :: Maybe Text
licenseUrl = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:readmeUrl:GetApplicationResponse' :: Maybe Text
readmeUrl = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:applicationId:GetApplicationResponse' :: Maybe Text
applicationId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:name:GetApplicationResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:version:GetApplicationResponse' :: Maybe Version
version = Maybe Version
forall a. Maybe a
Prelude.Nothing,
$sel:author:GetApplicationResponse' :: Maybe Text
author = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:labels:GetApplicationResponse' :: Maybe [Text]
labels = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:verifiedAuthorUrl:GetApplicationResponse' :: Maybe Text
verifiedAuthorUrl = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:description:GetApplicationResponse' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:spdxLicenseId:GetApplicationResponse' :: Maybe Text
spdxLicenseId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:isVerifiedAuthor:GetApplicationResponse' :: Maybe Bool
isVerifiedAuthor = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetApplicationResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getApplicationResponse_creationTime :: Lens.Lens' GetApplicationResponse (Prelude.Maybe Prelude.Text)
getApplicationResponse_creationTime :: (Maybe Text -> f (Maybe Text))
-> GetApplicationResponse -> f GetApplicationResponse
getApplicationResponse_creationTime = (GetApplicationResponse -> Maybe Text)
-> (GetApplicationResponse -> Maybe Text -> GetApplicationResponse)
-> Lens
GetApplicationResponse
GetApplicationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetApplicationResponse' {Maybe Text
creationTime :: Maybe Text
$sel:creationTime:GetApplicationResponse' :: GetApplicationResponse -> Maybe Text
creationTime} -> Maybe Text
creationTime) (\s :: GetApplicationResponse
s@GetApplicationResponse' {} Maybe Text
a -> GetApplicationResponse
s {$sel:creationTime:GetApplicationResponse' :: Maybe Text
creationTime = Maybe Text
a} :: GetApplicationResponse)
getApplicationResponse_homePageUrl :: Lens.Lens' GetApplicationResponse (Prelude.Maybe Prelude.Text)
getApplicationResponse_homePageUrl :: (Maybe Text -> f (Maybe Text))
-> GetApplicationResponse -> f GetApplicationResponse
getApplicationResponse_homePageUrl = (GetApplicationResponse -> Maybe Text)
-> (GetApplicationResponse -> Maybe Text -> GetApplicationResponse)
-> Lens
GetApplicationResponse
GetApplicationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetApplicationResponse' {Maybe Text
homePageUrl :: Maybe Text
$sel:homePageUrl:GetApplicationResponse' :: GetApplicationResponse -> Maybe Text
homePageUrl} -> Maybe Text
homePageUrl) (\s :: GetApplicationResponse
s@GetApplicationResponse' {} Maybe Text
a -> GetApplicationResponse
s {$sel:homePageUrl:GetApplicationResponse' :: Maybe Text
homePageUrl = Maybe Text
a} :: GetApplicationResponse)
getApplicationResponse_licenseUrl :: Lens.Lens' GetApplicationResponse (Prelude.Maybe Prelude.Text)
getApplicationResponse_licenseUrl :: (Maybe Text -> f (Maybe Text))
-> GetApplicationResponse -> f GetApplicationResponse
getApplicationResponse_licenseUrl = (GetApplicationResponse -> Maybe Text)
-> (GetApplicationResponse -> Maybe Text -> GetApplicationResponse)
-> Lens
GetApplicationResponse
GetApplicationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetApplicationResponse' {Maybe Text
licenseUrl :: Maybe Text
$sel:licenseUrl:GetApplicationResponse' :: GetApplicationResponse -> Maybe Text
licenseUrl} -> Maybe Text
licenseUrl) (\s :: GetApplicationResponse
s@GetApplicationResponse' {} Maybe Text
a -> GetApplicationResponse
s {$sel:licenseUrl:GetApplicationResponse' :: Maybe Text
licenseUrl = Maybe Text
a} :: GetApplicationResponse)
getApplicationResponse_readmeUrl :: Lens.Lens' GetApplicationResponse (Prelude.Maybe Prelude.Text)
getApplicationResponse_readmeUrl :: (Maybe Text -> f (Maybe Text))
-> GetApplicationResponse -> f GetApplicationResponse
getApplicationResponse_readmeUrl = (GetApplicationResponse -> Maybe Text)
-> (GetApplicationResponse -> Maybe Text -> GetApplicationResponse)
-> Lens
GetApplicationResponse
GetApplicationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetApplicationResponse' {Maybe Text
readmeUrl :: Maybe Text
$sel:readmeUrl:GetApplicationResponse' :: GetApplicationResponse -> Maybe Text
readmeUrl} -> Maybe Text
readmeUrl) (\s :: GetApplicationResponse
s@GetApplicationResponse' {} Maybe Text
a -> GetApplicationResponse
s {$sel:readmeUrl:GetApplicationResponse' :: Maybe Text
readmeUrl = Maybe Text
a} :: GetApplicationResponse)
getApplicationResponse_applicationId :: Lens.Lens' GetApplicationResponse (Prelude.Maybe Prelude.Text)
getApplicationResponse_applicationId :: (Maybe Text -> f (Maybe Text))
-> GetApplicationResponse -> f GetApplicationResponse
getApplicationResponse_applicationId = (GetApplicationResponse -> Maybe Text)
-> (GetApplicationResponse -> Maybe Text -> GetApplicationResponse)
-> Lens
GetApplicationResponse
GetApplicationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetApplicationResponse' {Maybe Text
applicationId :: Maybe Text
$sel:applicationId:GetApplicationResponse' :: GetApplicationResponse -> Maybe Text
applicationId} -> Maybe Text
applicationId) (\s :: GetApplicationResponse
s@GetApplicationResponse' {} Maybe Text
a -> GetApplicationResponse
s {$sel:applicationId:GetApplicationResponse' :: Maybe Text
applicationId = Maybe Text
a} :: GetApplicationResponse)
getApplicationResponse_name :: Lens.Lens' GetApplicationResponse (Prelude.Maybe Prelude.Text)
getApplicationResponse_name :: (Maybe Text -> f (Maybe Text))
-> GetApplicationResponse -> f GetApplicationResponse
getApplicationResponse_name = (GetApplicationResponse -> Maybe Text)
-> (GetApplicationResponse -> Maybe Text -> GetApplicationResponse)
-> Lens
GetApplicationResponse
GetApplicationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetApplicationResponse' {Maybe Text
name :: Maybe Text
$sel:name:GetApplicationResponse' :: GetApplicationResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: GetApplicationResponse
s@GetApplicationResponse' {} Maybe Text
a -> GetApplicationResponse
s {$sel:name:GetApplicationResponse' :: Maybe Text
name = Maybe Text
a} :: GetApplicationResponse)
getApplicationResponse_version :: Lens.Lens' GetApplicationResponse (Prelude.Maybe Version)
getApplicationResponse_version :: (Maybe Version -> f (Maybe Version))
-> GetApplicationResponse -> f GetApplicationResponse
getApplicationResponse_version = (GetApplicationResponse -> Maybe Version)
-> (GetApplicationResponse
-> Maybe Version -> GetApplicationResponse)
-> Lens
GetApplicationResponse
GetApplicationResponse
(Maybe Version)
(Maybe Version)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetApplicationResponse' {Maybe Version
version :: Maybe Version
$sel:version:GetApplicationResponse' :: GetApplicationResponse -> Maybe Version
version} -> Maybe Version
version) (\s :: GetApplicationResponse
s@GetApplicationResponse' {} Maybe Version
a -> GetApplicationResponse
s {$sel:version:GetApplicationResponse' :: Maybe Version
version = Maybe Version
a} :: GetApplicationResponse)
getApplicationResponse_author :: Lens.Lens' GetApplicationResponse (Prelude.Maybe Prelude.Text)
getApplicationResponse_author :: (Maybe Text -> f (Maybe Text))
-> GetApplicationResponse -> f GetApplicationResponse
getApplicationResponse_author = (GetApplicationResponse -> Maybe Text)
-> (GetApplicationResponse -> Maybe Text -> GetApplicationResponse)
-> Lens
GetApplicationResponse
GetApplicationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetApplicationResponse' {Maybe Text
author :: Maybe Text
$sel:author:GetApplicationResponse' :: GetApplicationResponse -> Maybe Text
author} -> Maybe Text
author) (\s :: GetApplicationResponse
s@GetApplicationResponse' {} Maybe Text
a -> GetApplicationResponse
s {$sel:author:GetApplicationResponse' :: Maybe Text
author = Maybe Text
a} :: GetApplicationResponse)
getApplicationResponse_labels :: Lens.Lens' GetApplicationResponse (Prelude.Maybe [Prelude.Text])
getApplicationResponse_labels :: (Maybe [Text] -> f (Maybe [Text]))
-> GetApplicationResponse -> f GetApplicationResponse
getApplicationResponse_labels = (GetApplicationResponse -> Maybe [Text])
-> (GetApplicationResponse
-> Maybe [Text] -> GetApplicationResponse)
-> Lens
GetApplicationResponse
GetApplicationResponse
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetApplicationResponse' {Maybe [Text]
labels :: Maybe [Text]
$sel:labels:GetApplicationResponse' :: GetApplicationResponse -> Maybe [Text]
labels} -> Maybe [Text]
labels) (\s :: GetApplicationResponse
s@GetApplicationResponse' {} Maybe [Text]
a -> GetApplicationResponse
s {$sel:labels:GetApplicationResponse' :: Maybe [Text]
labels = Maybe [Text]
a} :: GetApplicationResponse) ((Maybe [Text] -> f (Maybe [Text]))
-> GetApplicationResponse -> f GetApplicationResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> GetApplicationResponse
-> f GetApplicationResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getApplicationResponse_verifiedAuthorUrl :: Lens.Lens' GetApplicationResponse (Prelude.Maybe Prelude.Text)
getApplicationResponse_verifiedAuthorUrl :: (Maybe Text -> f (Maybe Text))
-> GetApplicationResponse -> f GetApplicationResponse
getApplicationResponse_verifiedAuthorUrl = (GetApplicationResponse -> Maybe Text)
-> (GetApplicationResponse -> Maybe Text -> GetApplicationResponse)
-> Lens
GetApplicationResponse
GetApplicationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetApplicationResponse' {Maybe Text
verifiedAuthorUrl :: Maybe Text
$sel:verifiedAuthorUrl:GetApplicationResponse' :: GetApplicationResponse -> Maybe Text
verifiedAuthorUrl} -> Maybe Text
verifiedAuthorUrl) (\s :: GetApplicationResponse
s@GetApplicationResponse' {} Maybe Text
a -> GetApplicationResponse
s {$sel:verifiedAuthorUrl:GetApplicationResponse' :: Maybe Text
verifiedAuthorUrl = Maybe Text
a} :: GetApplicationResponse)
getApplicationResponse_description :: Lens.Lens' GetApplicationResponse (Prelude.Maybe Prelude.Text)
getApplicationResponse_description :: (Maybe Text -> f (Maybe Text))
-> GetApplicationResponse -> f GetApplicationResponse
getApplicationResponse_description = (GetApplicationResponse -> Maybe Text)
-> (GetApplicationResponse -> Maybe Text -> GetApplicationResponse)
-> Lens
GetApplicationResponse
GetApplicationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetApplicationResponse' {Maybe Text
description :: Maybe Text
$sel:description:GetApplicationResponse' :: GetApplicationResponse -> Maybe Text
description} -> Maybe Text
description) (\s :: GetApplicationResponse
s@GetApplicationResponse' {} Maybe Text
a -> GetApplicationResponse
s {$sel:description:GetApplicationResponse' :: Maybe Text
description = Maybe Text
a} :: GetApplicationResponse)
getApplicationResponse_spdxLicenseId :: Lens.Lens' GetApplicationResponse (Prelude.Maybe Prelude.Text)
getApplicationResponse_spdxLicenseId :: (Maybe Text -> f (Maybe Text))
-> GetApplicationResponse -> f GetApplicationResponse
getApplicationResponse_spdxLicenseId = (GetApplicationResponse -> Maybe Text)
-> (GetApplicationResponse -> Maybe Text -> GetApplicationResponse)
-> Lens
GetApplicationResponse
GetApplicationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetApplicationResponse' {Maybe Text
spdxLicenseId :: Maybe Text
$sel:spdxLicenseId:GetApplicationResponse' :: GetApplicationResponse -> Maybe Text
spdxLicenseId} -> Maybe Text
spdxLicenseId) (\s :: GetApplicationResponse
s@GetApplicationResponse' {} Maybe Text
a -> GetApplicationResponse
s {$sel:spdxLicenseId:GetApplicationResponse' :: Maybe Text
spdxLicenseId = Maybe Text
a} :: GetApplicationResponse)
getApplicationResponse_isVerifiedAuthor :: Lens.Lens' GetApplicationResponse (Prelude.Maybe Prelude.Bool)
getApplicationResponse_isVerifiedAuthor :: (Maybe Bool -> f (Maybe Bool))
-> GetApplicationResponse -> f GetApplicationResponse
getApplicationResponse_isVerifiedAuthor = (GetApplicationResponse -> Maybe Bool)
-> (GetApplicationResponse -> Maybe Bool -> GetApplicationResponse)
-> Lens
GetApplicationResponse
GetApplicationResponse
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetApplicationResponse' {Maybe Bool
isVerifiedAuthor :: Maybe Bool
$sel:isVerifiedAuthor:GetApplicationResponse' :: GetApplicationResponse -> Maybe Bool
isVerifiedAuthor} -> Maybe Bool
isVerifiedAuthor) (\s :: GetApplicationResponse
s@GetApplicationResponse' {} Maybe Bool
a -> GetApplicationResponse
s {$sel:isVerifiedAuthor:GetApplicationResponse' :: Maybe Bool
isVerifiedAuthor = Maybe Bool
a} :: GetApplicationResponse)
getApplicationResponse_httpStatus :: Lens.Lens' GetApplicationResponse Prelude.Int
getApplicationResponse_httpStatus :: (Int -> f Int)
-> GetApplicationResponse -> f GetApplicationResponse
getApplicationResponse_httpStatus = (GetApplicationResponse -> Int)
-> (GetApplicationResponse -> Int -> GetApplicationResponse)
-> Lens GetApplicationResponse GetApplicationResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetApplicationResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetApplicationResponse' :: GetApplicationResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetApplicationResponse
s@GetApplicationResponse' {} Int
a -> GetApplicationResponse
s {$sel:httpStatus:GetApplicationResponse' :: Int
httpStatus = Int
a} :: GetApplicationResponse)
instance Prelude.NFData GetApplicationResponse