{-# 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.ServiceCatalog.UpdatePortfolioShare
(
UpdatePortfolioShare (..),
newUpdatePortfolioShare,
updatePortfolioShare_accountId,
updatePortfolioShare_shareTagOptions,
updatePortfolioShare_acceptLanguage,
updatePortfolioShare_organizationNode,
updatePortfolioShare_portfolioId,
UpdatePortfolioShareResponse (..),
newUpdatePortfolioShareResponse,
updatePortfolioShareResponse_status,
updatePortfolioShareResponse_portfolioShareToken,
updatePortfolioShareResponse_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.ServiceCatalog.Types
data UpdatePortfolioShare = UpdatePortfolioShare'
{
UpdatePortfolioShare -> Maybe Text
accountId :: Prelude.Maybe Prelude.Text,
UpdatePortfolioShare -> Maybe Bool
shareTagOptions :: Prelude.Maybe Prelude.Bool,
UpdatePortfolioShare -> Maybe Text
acceptLanguage :: Prelude.Maybe Prelude.Text,
UpdatePortfolioShare -> Maybe OrganizationNode
organizationNode :: Prelude.Maybe OrganizationNode,
UpdatePortfolioShare -> Text
portfolioId :: Prelude.Text
}
deriving (UpdatePortfolioShare -> UpdatePortfolioShare -> Bool
(UpdatePortfolioShare -> UpdatePortfolioShare -> Bool)
-> (UpdatePortfolioShare -> UpdatePortfolioShare -> Bool)
-> Eq UpdatePortfolioShare
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdatePortfolioShare -> UpdatePortfolioShare -> Bool
$c/= :: UpdatePortfolioShare -> UpdatePortfolioShare -> Bool
== :: UpdatePortfolioShare -> UpdatePortfolioShare -> Bool
$c== :: UpdatePortfolioShare -> UpdatePortfolioShare -> Bool
Prelude.Eq, ReadPrec [UpdatePortfolioShare]
ReadPrec UpdatePortfolioShare
Int -> ReadS UpdatePortfolioShare
ReadS [UpdatePortfolioShare]
(Int -> ReadS UpdatePortfolioShare)
-> ReadS [UpdatePortfolioShare]
-> ReadPrec UpdatePortfolioShare
-> ReadPrec [UpdatePortfolioShare]
-> Read UpdatePortfolioShare
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdatePortfolioShare]
$creadListPrec :: ReadPrec [UpdatePortfolioShare]
readPrec :: ReadPrec UpdatePortfolioShare
$creadPrec :: ReadPrec UpdatePortfolioShare
readList :: ReadS [UpdatePortfolioShare]
$creadList :: ReadS [UpdatePortfolioShare]
readsPrec :: Int -> ReadS UpdatePortfolioShare
$creadsPrec :: Int -> ReadS UpdatePortfolioShare
Prelude.Read, Int -> UpdatePortfolioShare -> ShowS
[UpdatePortfolioShare] -> ShowS
UpdatePortfolioShare -> String
(Int -> UpdatePortfolioShare -> ShowS)
-> (UpdatePortfolioShare -> String)
-> ([UpdatePortfolioShare] -> ShowS)
-> Show UpdatePortfolioShare
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdatePortfolioShare] -> ShowS
$cshowList :: [UpdatePortfolioShare] -> ShowS
show :: UpdatePortfolioShare -> String
$cshow :: UpdatePortfolioShare -> String
showsPrec :: Int -> UpdatePortfolioShare -> ShowS
$cshowsPrec :: Int -> UpdatePortfolioShare -> ShowS
Prelude.Show, (forall x. UpdatePortfolioShare -> Rep UpdatePortfolioShare x)
-> (forall x. Rep UpdatePortfolioShare x -> UpdatePortfolioShare)
-> Generic UpdatePortfolioShare
forall x. Rep UpdatePortfolioShare x -> UpdatePortfolioShare
forall x. UpdatePortfolioShare -> Rep UpdatePortfolioShare x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdatePortfolioShare x -> UpdatePortfolioShare
$cfrom :: forall x. UpdatePortfolioShare -> Rep UpdatePortfolioShare x
Prelude.Generic)
newUpdatePortfolioShare ::
Prelude.Text ->
UpdatePortfolioShare
newUpdatePortfolioShare :: Text -> UpdatePortfolioShare
newUpdatePortfolioShare Text
pPortfolioId_ =
UpdatePortfolioShare' :: Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe OrganizationNode
-> Text
-> UpdatePortfolioShare
UpdatePortfolioShare'
{ $sel:accountId:UpdatePortfolioShare' :: Maybe Text
accountId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:shareTagOptions:UpdatePortfolioShare' :: Maybe Bool
shareTagOptions = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:acceptLanguage:UpdatePortfolioShare' :: Maybe Text
acceptLanguage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:organizationNode:UpdatePortfolioShare' :: Maybe OrganizationNode
organizationNode = Maybe OrganizationNode
forall a. Maybe a
Prelude.Nothing,
$sel:portfolioId:UpdatePortfolioShare' :: Text
portfolioId = Text
pPortfolioId_
}
updatePortfolioShare_accountId :: Lens.Lens' UpdatePortfolioShare (Prelude.Maybe Prelude.Text)
updatePortfolioShare_accountId :: (Maybe Text -> f (Maybe Text))
-> UpdatePortfolioShare -> f UpdatePortfolioShare
updatePortfolioShare_accountId = (UpdatePortfolioShare -> Maybe Text)
-> (UpdatePortfolioShare -> Maybe Text -> UpdatePortfolioShare)
-> Lens
UpdatePortfolioShare UpdatePortfolioShare (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePortfolioShare' {Maybe Text
accountId :: Maybe Text
$sel:accountId:UpdatePortfolioShare' :: UpdatePortfolioShare -> Maybe Text
accountId} -> Maybe Text
accountId) (\s :: UpdatePortfolioShare
s@UpdatePortfolioShare' {} Maybe Text
a -> UpdatePortfolioShare
s {$sel:accountId:UpdatePortfolioShare' :: Maybe Text
accountId = Maybe Text
a} :: UpdatePortfolioShare)
updatePortfolioShare_shareTagOptions :: Lens.Lens' UpdatePortfolioShare (Prelude.Maybe Prelude.Bool)
updatePortfolioShare_shareTagOptions :: (Maybe Bool -> f (Maybe Bool))
-> UpdatePortfolioShare -> f UpdatePortfolioShare
updatePortfolioShare_shareTagOptions = (UpdatePortfolioShare -> Maybe Bool)
-> (UpdatePortfolioShare -> Maybe Bool -> UpdatePortfolioShare)
-> Lens
UpdatePortfolioShare UpdatePortfolioShare (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePortfolioShare' {Maybe Bool
shareTagOptions :: Maybe Bool
$sel:shareTagOptions:UpdatePortfolioShare' :: UpdatePortfolioShare -> Maybe Bool
shareTagOptions} -> Maybe Bool
shareTagOptions) (\s :: UpdatePortfolioShare
s@UpdatePortfolioShare' {} Maybe Bool
a -> UpdatePortfolioShare
s {$sel:shareTagOptions:UpdatePortfolioShare' :: Maybe Bool
shareTagOptions = Maybe Bool
a} :: UpdatePortfolioShare)
updatePortfolioShare_acceptLanguage :: Lens.Lens' UpdatePortfolioShare (Prelude.Maybe Prelude.Text)
updatePortfolioShare_acceptLanguage :: (Maybe Text -> f (Maybe Text))
-> UpdatePortfolioShare -> f UpdatePortfolioShare
updatePortfolioShare_acceptLanguage = (UpdatePortfolioShare -> Maybe Text)
-> (UpdatePortfolioShare -> Maybe Text -> UpdatePortfolioShare)
-> Lens
UpdatePortfolioShare UpdatePortfolioShare (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePortfolioShare' {Maybe Text
acceptLanguage :: Maybe Text
$sel:acceptLanguage:UpdatePortfolioShare' :: UpdatePortfolioShare -> Maybe Text
acceptLanguage} -> Maybe Text
acceptLanguage) (\s :: UpdatePortfolioShare
s@UpdatePortfolioShare' {} Maybe Text
a -> UpdatePortfolioShare
s {$sel:acceptLanguage:UpdatePortfolioShare' :: Maybe Text
acceptLanguage = Maybe Text
a} :: UpdatePortfolioShare)
updatePortfolioShare_organizationNode :: Lens.Lens' UpdatePortfolioShare (Prelude.Maybe OrganizationNode)
updatePortfolioShare_organizationNode :: (Maybe OrganizationNode -> f (Maybe OrganizationNode))
-> UpdatePortfolioShare -> f UpdatePortfolioShare
updatePortfolioShare_organizationNode = (UpdatePortfolioShare -> Maybe OrganizationNode)
-> (UpdatePortfolioShare
-> Maybe OrganizationNode -> UpdatePortfolioShare)
-> Lens
UpdatePortfolioShare
UpdatePortfolioShare
(Maybe OrganizationNode)
(Maybe OrganizationNode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePortfolioShare' {Maybe OrganizationNode
organizationNode :: Maybe OrganizationNode
$sel:organizationNode:UpdatePortfolioShare' :: UpdatePortfolioShare -> Maybe OrganizationNode
organizationNode} -> Maybe OrganizationNode
organizationNode) (\s :: UpdatePortfolioShare
s@UpdatePortfolioShare' {} Maybe OrganizationNode
a -> UpdatePortfolioShare
s {$sel:organizationNode:UpdatePortfolioShare' :: Maybe OrganizationNode
organizationNode = Maybe OrganizationNode
a} :: UpdatePortfolioShare)
updatePortfolioShare_portfolioId :: Lens.Lens' UpdatePortfolioShare Prelude.Text
updatePortfolioShare_portfolioId :: (Text -> f Text) -> UpdatePortfolioShare -> f UpdatePortfolioShare
updatePortfolioShare_portfolioId = (UpdatePortfolioShare -> Text)
-> (UpdatePortfolioShare -> Text -> UpdatePortfolioShare)
-> Lens UpdatePortfolioShare UpdatePortfolioShare Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePortfolioShare' {Text
portfolioId :: Text
$sel:portfolioId:UpdatePortfolioShare' :: UpdatePortfolioShare -> Text
portfolioId} -> Text
portfolioId) (\s :: UpdatePortfolioShare
s@UpdatePortfolioShare' {} Text
a -> UpdatePortfolioShare
s {$sel:portfolioId:UpdatePortfolioShare' :: Text
portfolioId = Text
a} :: UpdatePortfolioShare)
instance Core.AWSRequest UpdatePortfolioShare where
type
AWSResponse UpdatePortfolioShare =
UpdatePortfolioShareResponse
request :: UpdatePortfolioShare -> Request UpdatePortfolioShare
request = Service -> UpdatePortfolioShare -> Request UpdatePortfolioShare
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdatePortfolioShare
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdatePortfolioShare)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UpdatePortfolioShare))
-> Logger
-> Service
-> Proxy UpdatePortfolioShare
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdatePortfolioShare)))
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 ShareStatus
-> Maybe Text -> Int -> UpdatePortfolioShareResponse
UpdatePortfolioShareResponse'
(Maybe ShareStatus
-> Maybe Text -> Int -> UpdatePortfolioShareResponse)
-> Either String (Maybe ShareStatus)
-> Either
String (Maybe Text -> Int -> UpdatePortfolioShareResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe ShareStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Status")
Either String (Maybe Text -> Int -> UpdatePortfolioShareResponse)
-> Either String (Maybe Text)
-> Either String (Int -> UpdatePortfolioShareResponse)
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
"PortfolioShareToken")
Either String (Int -> UpdatePortfolioShareResponse)
-> Either String Int -> Either String UpdatePortfolioShareResponse
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 UpdatePortfolioShare
instance Prelude.NFData UpdatePortfolioShare
instance Core.ToHeaders UpdatePortfolioShare where
toHeaders :: UpdatePortfolioShare -> ResponseHeaders
toHeaders =
ResponseHeaders -> UpdatePortfolioShare -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AWS242ServiceCatalogService.UpdatePortfolioShare" ::
Prelude.ByteString
),
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.ToJSON UpdatePortfolioShare where
toJSON :: UpdatePortfolioShare -> Value
toJSON UpdatePortfolioShare' {Maybe Bool
Maybe Text
Maybe OrganizationNode
Text
portfolioId :: Text
organizationNode :: Maybe OrganizationNode
acceptLanguage :: Maybe Text
shareTagOptions :: Maybe Bool
accountId :: Maybe Text
$sel:portfolioId:UpdatePortfolioShare' :: UpdatePortfolioShare -> Text
$sel:organizationNode:UpdatePortfolioShare' :: UpdatePortfolioShare -> Maybe OrganizationNode
$sel:acceptLanguage:UpdatePortfolioShare' :: UpdatePortfolioShare -> Maybe Text
$sel:shareTagOptions:UpdatePortfolioShare' :: UpdatePortfolioShare -> Maybe Bool
$sel:accountId:UpdatePortfolioShare' :: UpdatePortfolioShare -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"AccountId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
accountId,
(Text
"ShareTagOptions" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
shareTagOptions,
(Text
"AcceptLanguage" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
acceptLanguage,
(Text
"OrganizationNode" Text -> OrganizationNode -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(OrganizationNode -> Pair) -> Maybe OrganizationNode -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe OrganizationNode
organizationNode,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"PortfolioId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
portfolioId)
]
)
instance Core.ToPath UpdatePortfolioShare where
toPath :: UpdatePortfolioShare -> ByteString
toPath = ByteString -> UpdatePortfolioShare -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery UpdatePortfolioShare where
toQuery :: UpdatePortfolioShare -> QueryString
toQuery = QueryString -> UpdatePortfolioShare -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdatePortfolioShareResponse = UpdatePortfolioShareResponse'
{
UpdatePortfolioShareResponse -> Maybe ShareStatus
status :: Prelude.Maybe ShareStatus,
UpdatePortfolioShareResponse -> Maybe Text
portfolioShareToken :: Prelude.Maybe Prelude.Text,
UpdatePortfolioShareResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdatePortfolioShareResponse
-> UpdatePortfolioShareResponse -> Bool
(UpdatePortfolioShareResponse
-> UpdatePortfolioShareResponse -> Bool)
-> (UpdatePortfolioShareResponse
-> UpdatePortfolioShareResponse -> Bool)
-> Eq UpdatePortfolioShareResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdatePortfolioShareResponse
-> UpdatePortfolioShareResponse -> Bool
$c/= :: UpdatePortfolioShareResponse
-> UpdatePortfolioShareResponse -> Bool
== :: UpdatePortfolioShareResponse
-> UpdatePortfolioShareResponse -> Bool
$c== :: UpdatePortfolioShareResponse
-> UpdatePortfolioShareResponse -> Bool
Prelude.Eq, ReadPrec [UpdatePortfolioShareResponse]
ReadPrec UpdatePortfolioShareResponse
Int -> ReadS UpdatePortfolioShareResponse
ReadS [UpdatePortfolioShareResponse]
(Int -> ReadS UpdatePortfolioShareResponse)
-> ReadS [UpdatePortfolioShareResponse]
-> ReadPrec UpdatePortfolioShareResponse
-> ReadPrec [UpdatePortfolioShareResponse]
-> Read UpdatePortfolioShareResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdatePortfolioShareResponse]
$creadListPrec :: ReadPrec [UpdatePortfolioShareResponse]
readPrec :: ReadPrec UpdatePortfolioShareResponse
$creadPrec :: ReadPrec UpdatePortfolioShareResponse
readList :: ReadS [UpdatePortfolioShareResponse]
$creadList :: ReadS [UpdatePortfolioShareResponse]
readsPrec :: Int -> ReadS UpdatePortfolioShareResponse
$creadsPrec :: Int -> ReadS UpdatePortfolioShareResponse
Prelude.Read, Int -> UpdatePortfolioShareResponse -> ShowS
[UpdatePortfolioShareResponse] -> ShowS
UpdatePortfolioShareResponse -> String
(Int -> UpdatePortfolioShareResponse -> ShowS)
-> (UpdatePortfolioShareResponse -> String)
-> ([UpdatePortfolioShareResponse] -> ShowS)
-> Show UpdatePortfolioShareResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdatePortfolioShareResponse] -> ShowS
$cshowList :: [UpdatePortfolioShareResponse] -> ShowS
show :: UpdatePortfolioShareResponse -> String
$cshow :: UpdatePortfolioShareResponse -> String
showsPrec :: Int -> UpdatePortfolioShareResponse -> ShowS
$cshowsPrec :: Int -> UpdatePortfolioShareResponse -> ShowS
Prelude.Show, (forall x.
UpdatePortfolioShareResponse -> Rep UpdatePortfolioShareResponse x)
-> (forall x.
Rep UpdatePortfolioShareResponse x -> UpdatePortfolioShareResponse)
-> Generic UpdatePortfolioShareResponse
forall x.
Rep UpdatePortfolioShareResponse x -> UpdatePortfolioShareResponse
forall x.
UpdatePortfolioShareResponse -> Rep UpdatePortfolioShareResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdatePortfolioShareResponse x -> UpdatePortfolioShareResponse
$cfrom :: forall x.
UpdatePortfolioShareResponse -> Rep UpdatePortfolioShareResponse x
Prelude.Generic)
newUpdatePortfolioShareResponse ::
Prelude.Int ->
UpdatePortfolioShareResponse
newUpdatePortfolioShareResponse :: Int -> UpdatePortfolioShareResponse
newUpdatePortfolioShareResponse Int
pHttpStatus_ =
UpdatePortfolioShareResponse' :: Maybe ShareStatus
-> Maybe Text -> Int -> UpdatePortfolioShareResponse
UpdatePortfolioShareResponse'
{ $sel:status:UpdatePortfolioShareResponse' :: Maybe ShareStatus
status =
Maybe ShareStatus
forall a. Maybe a
Prelude.Nothing,
$sel:portfolioShareToken:UpdatePortfolioShareResponse' :: Maybe Text
portfolioShareToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdatePortfolioShareResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updatePortfolioShareResponse_status :: Lens.Lens' UpdatePortfolioShareResponse (Prelude.Maybe ShareStatus)
updatePortfolioShareResponse_status :: (Maybe ShareStatus -> f (Maybe ShareStatus))
-> UpdatePortfolioShareResponse -> f UpdatePortfolioShareResponse
updatePortfolioShareResponse_status = (UpdatePortfolioShareResponse -> Maybe ShareStatus)
-> (UpdatePortfolioShareResponse
-> Maybe ShareStatus -> UpdatePortfolioShareResponse)
-> Lens
UpdatePortfolioShareResponse
UpdatePortfolioShareResponse
(Maybe ShareStatus)
(Maybe ShareStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePortfolioShareResponse' {Maybe ShareStatus
status :: Maybe ShareStatus
$sel:status:UpdatePortfolioShareResponse' :: UpdatePortfolioShareResponse -> Maybe ShareStatus
status} -> Maybe ShareStatus
status) (\s :: UpdatePortfolioShareResponse
s@UpdatePortfolioShareResponse' {} Maybe ShareStatus
a -> UpdatePortfolioShareResponse
s {$sel:status:UpdatePortfolioShareResponse' :: Maybe ShareStatus
status = Maybe ShareStatus
a} :: UpdatePortfolioShareResponse)
updatePortfolioShareResponse_portfolioShareToken :: Lens.Lens' UpdatePortfolioShareResponse (Prelude.Maybe Prelude.Text)
updatePortfolioShareResponse_portfolioShareToken :: (Maybe Text -> f (Maybe Text))
-> UpdatePortfolioShareResponse -> f UpdatePortfolioShareResponse
updatePortfolioShareResponse_portfolioShareToken = (UpdatePortfolioShareResponse -> Maybe Text)
-> (UpdatePortfolioShareResponse
-> Maybe Text -> UpdatePortfolioShareResponse)
-> Lens
UpdatePortfolioShareResponse
UpdatePortfolioShareResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePortfolioShareResponse' {Maybe Text
portfolioShareToken :: Maybe Text
$sel:portfolioShareToken:UpdatePortfolioShareResponse' :: UpdatePortfolioShareResponse -> Maybe Text
portfolioShareToken} -> Maybe Text
portfolioShareToken) (\s :: UpdatePortfolioShareResponse
s@UpdatePortfolioShareResponse' {} Maybe Text
a -> UpdatePortfolioShareResponse
s {$sel:portfolioShareToken:UpdatePortfolioShareResponse' :: Maybe Text
portfolioShareToken = Maybe Text
a} :: UpdatePortfolioShareResponse)
updatePortfolioShareResponse_httpStatus :: Lens.Lens' UpdatePortfolioShareResponse Prelude.Int
updatePortfolioShareResponse_httpStatus :: (Int -> f Int)
-> UpdatePortfolioShareResponse -> f UpdatePortfolioShareResponse
updatePortfolioShareResponse_httpStatus = (UpdatePortfolioShareResponse -> Int)
-> (UpdatePortfolioShareResponse
-> Int -> UpdatePortfolioShareResponse)
-> Lens
UpdatePortfolioShareResponse UpdatePortfolioShareResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePortfolioShareResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdatePortfolioShareResponse' :: UpdatePortfolioShareResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdatePortfolioShareResponse
s@UpdatePortfolioShareResponse' {} Int
a -> UpdatePortfolioShareResponse
s {$sel:httpStatus:UpdatePortfolioShareResponse' :: Int
httpStatus = Int
a} :: UpdatePortfolioShareResponse)
instance Prelude.NFData UpdatePortfolioShareResponse