{-# 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.CodeBuild.UpdateProjectVisibility
(
UpdateProjectVisibility (..),
newUpdateProjectVisibility,
updateProjectVisibility_resourceAccessRole,
updateProjectVisibility_projectArn,
updateProjectVisibility_projectVisibility,
UpdateProjectVisibilityResponse (..),
newUpdateProjectVisibilityResponse,
updateProjectVisibilityResponse_publicProjectAlias,
updateProjectVisibilityResponse_projectArn,
updateProjectVisibilityResponse_projectVisibility,
updateProjectVisibilityResponse_httpStatus,
)
where
import Amazonka.CodeBuild.Types
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
data UpdateProjectVisibility = UpdateProjectVisibility'
{
UpdateProjectVisibility -> Maybe Text
resourceAccessRole :: Prelude.Maybe Prelude.Text,
UpdateProjectVisibility -> Text
projectArn :: Prelude.Text,
UpdateProjectVisibility -> ProjectVisibilityType
projectVisibility :: ProjectVisibilityType
}
deriving (UpdateProjectVisibility -> UpdateProjectVisibility -> Bool
(UpdateProjectVisibility -> UpdateProjectVisibility -> Bool)
-> (UpdateProjectVisibility -> UpdateProjectVisibility -> Bool)
-> Eq UpdateProjectVisibility
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateProjectVisibility -> UpdateProjectVisibility -> Bool
$c/= :: UpdateProjectVisibility -> UpdateProjectVisibility -> Bool
== :: UpdateProjectVisibility -> UpdateProjectVisibility -> Bool
$c== :: UpdateProjectVisibility -> UpdateProjectVisibility -> Bool
Prelude.Eq, ReadPrec [UpdateProjectVisibility]
ReadPrec UpdateProjectVisibility
Int -> ReadS UpdateProjectVisibility
ReadS [UpdateProjectVisibility]
(Int -> ReadS UpdateProjectVisibility)
-> ReadS [UpdateProjectVisibility]
-> ReadPrec UpdateProjectVisibility
-> ReadPrec [UpdateProjectVisibility]
-> Read UpdateProjectVisibility
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateProjectVisibility]
$creadListPrec :: ReadPrec [UpdateProjectVisibility]
readPrec :: ReadPrec UpdateProjectVisibility
$creadPrec :: ReadPrec UpdateProjectVisibility
readList :: ReadS [UpdateProjectVisibility]
$creadList :: ReadS [UpdateProjectVisibility]
readsPrec :: Int -> ReadS UpdateProjectVisibility
$creadsPrec :: Int -> ReadS UpdateProjectVisibility
Prelude.Read, Int -> UpdateProjectVisibility -> ShowS
[UpdateProjectVisibility] -> ShowS
UpdateProjectVisibility -> String
(Int -> UpdateProjectVisibility -> ShowS)
-> (UpdateProjectVisibility -> String)
-> ([UpdateProjectVisibility] -> ShowS)
-> Show UpdateProjectVisibility
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateProjectVisibility] -> ShowS
$cshowList :: [UpdateProjectVisibility] -> ShowS
show :: UpdateProjectVisibility -> String
$cshow :: UpdateProjectVisibility -> String
showsPrec :: Int -> UpdateProjectVisibility -> ShowS
$cshowsPrec :: Int -> UpdateProjectVisibility -> ShowS
Prelude.Show, (forall x.
UpdateProjectVisibility -> Rep UpdateProjectVisibility x)
-> (forall x.
Rep UpdateProjectVisibility x -> UpdateProjectVisibility)
-> Generic UpdateProjectVisibility
forall x. Rep UpdateProjectVisibility x -> UpdateProjectVisibility
forall x. UpdateProjectVisibility -> Rep UpdateProjectVisibility x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateProjectVisibility x -> UpdateProjectVisibility
$cfrom :: forall x. UpdateProjectVisibility -> Rep UpdateProjectVisibility x
Prelude.Generic)
newUpdateProjectVisibility ::
Prelude.Text ->
ProjectVisibilityType ->
UpdateProjectVisibility
newUpdateProjectVisibility :: Text -> ProjectVisibilityType -> UpdateProjectVisibility
newUpdateProjectVisibility
Text
pProjectArn_
ProjectVisibilityType
pProjectVisibility_ =
UpdateProjectVisibility' :: Maybe Text
-> Text -> ProjectVisibilityType -> UpdateProjectVisibility
UpdateProjectVisibility'
{ $sel:resourceAccessRole:UpdateProjectVisibility' :: Maybe Text
resourceAccessRole =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:projectArn:UpdateProjectVisibility' :: Text
projectArn = Text
pProjectArn_,
$sel:projectVisibility:UpdateProjectVisibility' :: ProjectVisibilityType
projectVisibility = ProjectVisibilityType
pProjectVisibility_
}
updateProjectVisibility_resourceAccessRole :: Lens.Lens' UpdateProjectVisibility (Prelude.Maybe Prelude.Text)
updateProjectVisibility_resourceAccessRole :: (Maybe Text -> f (Maybe Text))
-> UpdateProjectVisibility -> f UpdateProjectVisibility
updateProjectVisibility_resourceAccessRole = (UpdateProjectVisibility -> Maybe Text)
-> (UpdateProjectVisibility
-> Maybe Text -> UpdateProjectVisibility)
-> Lens
UpdateProjectVisibility
UpdateProjectVisibility
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateProjectVisibility' {Maybe Text
resourceAccessRole :: Maybe Text
$sel:resourceAccessRole:UpdateProjectVisibility' :: UpdateProjectVisibility -> Maybe Text
resourceAccessRole} -> Maybe Text
resourceAccessRole) (\s :: UpdateProjectVisibility
s@UpdateProjectVisibility' {} Maybe Text
a -> UpdateProjectVisibility
s {$sel:resourceAccessRole:UpdateProjectVisibility' :: Maybe Text
resourceAccessRole = Maybe Text
a} :: UpdateProjectVisibility)
updateProjectVisibility_projectArn :: Lens.Lens' UpdateProjectVisibility Prelude.Text
updateProjectVisibility_projectArn :: (Text -> f Text)
-> UpdateProjectVisibility -> f UpdateProjectVisibility
updateProjectVisibility_projectArn = (UpdateProjectVisibility -> Text)
-> (UpdateProjectVisibility -> Text -> UpdateProjectVisibility)
-> Lens UpdateProjectVisibility UpdateProjectVisibility Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateProjectVisibility' {Text
projectArn :: Text
$sel:projectArn:UpdateProjectVisibility' :: UpdateProjectVisibility -> Text
projectArn} -> Text
projectArn) (\s :: UpdateProjectVisibility
s@UpdateProjectVisibility' {} Text
a -> UpdateProjectVisibility
s {$sel:projectArn:UpdateProjectVisibility' :: Text
projectArn = Text
a} :: UpdateProjectVisibility)
updateProjectVisibility_projectVisibility :: Lens.Lens' UpdateProjectVisibility ProjectVisibilityType
updateProjectVisibility_projectVisibility :: (ProjectVisibilityType -> f ProjectVisibilityType)
-> UpdateProjectVisibility -> f UpdateProjectVisibility
updateProjectVisibility_projectVisibility = (UpdateProjectVisibility -> ProjectVisibilityType)
-> (UpdateProjectVisibility
-> ProjectVisibilityType -> UpdateProjectVisibility)
-> Lens
UpdateProjectVisibility
UpdateProjectVisibility
ProjectVisibilityType
ProjectVisibilityType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateProjectVisibility' {ProjectVisibilityType
projectVisibility :: ProjectVisibilityType
$sel:projectVisibility:UpdateProjectVisibility' :: UpdateProjectVisibility -> ProjectVisibilityType
projectVisibility} -> ProjectVisibilityType
projectVisibility) (\s :: UpdateProjectVisibility
s@UpdateProjectVisibility' {} ProjectVisibilityType
a -> UpdateProjectVisibility
s {$sel:projectVisibility:UpdateProjectVisibility' :: ProjectVisibilityType
projectVisibility = ProjectVisibilityType
a} :: UpdateProjectVisibility)
instance Core.AWSRequest UpdateProjectVisibility where
type
AWSResponse UpdateProjectVisibility =
UpdateProjectVisibilityResponse
request :: UpdateProjectVisibility -> Request UpdateProjectVisibility
request = Service
-> UpdateProjectVisibility -> Request UpdateProjectVisibility
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateProjectVisibility
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateProjectVisibility)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UpdateProjectVisibility))
-> Logger
-> Service
-> Proxy UpdateProjectVisibility
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateProjectVisibility)))
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 ProjectVisibilityType
-> Int
-> UpdateProjectVisibilityResponse
UpdateProjectVisibilityResponse'
(Maybe Text
-> Maybe Text
-> Maybe ProjectVisibilityType
-> Int
-> UpdateProjectVisibilityResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe ProjectVisibilityType
-> Int
-> UpdateProjectVisibilityResponse)
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
"publicProjectAlias")
Either
String
(Maybe Text
-> Maybe ProjectVisibilityType
-> Int
-> UpdateProjectVisibilityResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe ProjectVisibilityType
-> Int -> UpdateProjectVisibilityResponse)
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
"projectArn")
Either
String
(Maybe ProjectVisibilityType
-> Int -> UpdateProjectVisibilityResponse)
-> Either String (Maybe ProjectVisibilityType)
-> Either String (Int -> UpdateProjectVisibilityResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ProjectVisibilityType)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"projectVisibility")
Either String (Int -> UpdateProjectVisibilityResponse)
-> Either String Int
-> Either String UpdateProjectVisibilityResponse
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 UpdateProjectVisibility
instance Prelude.NFData UpdateProjectVisibility
instance Core.ToHeaders UpdateProjectVisibility where
toHeaders :: UpdateProjectVisibility -> ResponseHeaders
toHeaders =
ResponseHeaders -> UpdateProjectVisibility -> 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
"CodeBuild_20161006.UpdateProjectVisibility" ::
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 UpdateProjectVisibility where
toJSON :: UpdateProjectVisibility -> Value
toJSON UpdateProjectVisibility' {Maybe Text
Text
ProjectVisibilityType
projectVisibility :: ProjectVisibilityType
projectArn :: Text
resourceAccessRole :: Maybe Text
$sel:projectVisibility:UpdateProjectVisibility' :: UpdateProjectVisibility -> ProjectVisibilityType
$sel:projectArn:UpdateProjectVisibility' :: UpdateProjectVisibility -> Text
$sel:resourceAccessRole:UpdateProjectVisibility' :: UpdateProjectVisibility -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"resourceAccessRole" 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
resourceAccessRole,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"projectArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
projectArn),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"projectVisibility" Text -> ProjectVisibilityType -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= ProjectVisibilityType
projectVisibility)
]
)
instance Core.ToPath UpdateProjectVisibility where
toPath :: UpdateProjectVisibility -> ByteString
toPath = ByteString -> UpdateProjectVisibility -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery UpdateProjectVisibility where
toQuery :: UpdateProjectVisibility -> QueryString
toQuery = QueryString -> UpdateProjectVisibility -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateProjectVisibilityResponse = UpdateProjectVisibilityResponse'
{
UpdateProjectVisibilityResponse -> Maybe Text
publicProjectAlias :: Prelude.Maybe Prelude.Text,
UpdateProjectVisibilityResponse -> Maybe Text
projectArn :: Prelude.Maybe Prelude.Text,
UpdateProjectVisibilityResponse -> Maybe ProjectVisibilityType
projectVisibility :: Prelude.Maybe ProjectVisibilityType,
UpdateProjectVisibilityResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateProjectVisibilityResponse
-> UpdateProjectVisibilityResponse -> Bool
(UpdateProjectVisibilityResponse
-> UpdateProjectVisibilityResponse -> Bool)
-> (UpdateProjectVisibilityResponse
-> UpdateProjectVisibilityResponse -> Bool)
-> Eq UpdateProjectVisibilityResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateProjectVisibilityResponse
-> UpdateProjectVisibilityResponse -> Bool
$c/= :: UpdateProjectVisibilityResponse
-> UpdateProjectVisibilityResponse -> Bool
== :: UpdateProjectVisibilityResponse
-> UpdateProjectVisibilityResponse -> Bool
$c== :: UpdateProjectVisibilityResponse
-> UpdateProjectVisibilityResponse -> Bool
Prelude.Eq, ReadPrec [UpdateProjectVisibilityResponse]
ReadPrec UpdateProjectVisibilityResponse
Int -> ReadS UpdateProjectVisibilityResponse
ReadS [UpdateProjectVisibilityResponse]
(Int -> ReadS UpdateProjectVisibilityResponse)
-> ReadS [UpdateProjectVisibilityResponse]
-> ReadPrec UpdateProjectVisibilityResponse
-> ReadPrec [UpdateProjectVisibilityResponse]
-> Read UpdateProjectVisibilityResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateProjectVisibilityResponse]
$creadListPrec :: ReadPrec [UpdateProjectVisibilityResponse]
readPrec :: ReadPrec UpdateProjectVisibilityResponse
$creadPrec :: ReadPrec UpdateProjectVisibilityResponse
readList :: ReadS [UpdateProjectVisibilityResponse]
$creadList :: ReadS [UpdateProjectVisibilityResponse]
readsPrec :: Int -> ReadS UpdateProjectVisibilityResponse
$creadsPrec :: Int -> ReadS UpdateProjectVisibilityResponse
Prelude.Read, Int -> UpdateProjectVisibilityResponse -> ShowS
[UpdateProjectVisibilityResponse] -> ShowS
UpdateProjectVisibilityResponse -> String
(Int -> UpdateProjectVisibilityResponse -> ShowS)
-> (UpdateProjectVisibilityResponse -> String)
-> ([UpdateProjectVisibilityResponse] -> ShowS)
-> Show UpdateProjectVisibilityResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateProjectVisibilityResponse] -> ShowS
$cshowList :: [UpdateProjectVisibilityResponse] -> ShowS
show :: UpdateProjectVisibilityResponse -> String
$cshow :: UpdateProjectVisibilityResponse -> String
showsPrec :: Int -> UpdateProjectVisibilityResponse -> ShowS
$cshowsPrec :: Int -> UpdateProjectVisibilityResponse -> ShowS
Prelude.Show, (forall x.
UpdateProjectVisibilityResponse
-> Rep UpdateProjectVisibilityResponse x)
-> (forall x.
Rep UpdateProjectVisibilityResponse x
-> UpdateProjectVisibilityResponse)
-> Generic UpdateProjectVisibilityResponse
forall x.
Rep UpdateProjectVisibilityResponse x
-> UpdateProjectVisibilityResponse
forall x.
UpdateProjectVisibilityResponse
-> Rep UpdateProjectVisibilityResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateProjectVisibilityResponse x
-> UpdateProjectVisibilityResponse
$cfrom :: forall x.
UpdateProjectVisibilityResponse
-> Rep UpdateProjectVisibilityResponse x
Prelude.Generic)
newUpdateProjectVisibilityResponse ::
Prelude.Int ->
UpdateProjectVisibilityResponse
newUpdateProjectVisibilityResponse :: Int -> UpdateProjectVisibilityResponse
newUpdateProjectVisibilityResponse Int
pHttpStatus_ =
UpdateProjectVisibilityResponse' :: Maybe Text
-> Maybe Text
-> Maybe ProjectVisibilityType
-> Int
-> UpdateProjectVisibilityResponse
UpdateProjectVisibilityResponse'
{ $sel:publicProjectAlias:UpdateProjectVisibilityResponse' :: Maybe Text
publicProjectAlias =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:projectArn:UpdateProjectVisibilityResponse' :: Maybe Text
projectArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:projectVisibility:UpdateProjectVisibilityResponse' :: Maybe ProjectVisibilityType
projectVisibility = Maybe ProjectVisibilityType
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateProjectVisibilityResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateProjectVisibilityResponse_publicProjectAlias :: Lens.Lens' UpdateProjectVisibilityResponse (Prelude.Maybe Prelude.Text)
updateProjectVisibilityResponse_publicProjectAlias :: (Maybe Text -> f (Maybe Text))
-> UpdateProjectVisibilityResponse
-> f UpdateProjectVisibilityResponse
updateProjectVisibilityResponse_publicProjectAlias = (UpdateProjectVisibilityResponse -> Maybe Text)
-> (UpdateProjectVisibilityResponse
-> Maybe Text -> UpdateProjectVisibilityResponse)
-> Lens
UpdateProjectVisibilityResponse
UpdateProjectVisibilityResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateProjectVisibilityResponse' {Maybe Text
publicProjectAlias :: Maybe Text
$sel:publicProjectAlias:UpdateProjectVisibilityResponse' :: UpdateProjectVisibilityResponse -> Maybe Text
publicProjectAlias} -> Maybe Text
publicProjectAlias) (\s :: UpdateProjectVisibilityResponse
s@UpdateProjectVisibilityResponse' {} Maybe Text
a -> UpdateProjectVisibilityResponse
s {$sel:publicProjectAlias:UpdateProjectVisibilityResponse' :: Maybe Text
publicProjectAlias = Maybe Text
a} :: UpdateProjectVisibilityResponse)
updateProjectVisibilityResponse_projectArn :: Lens.Lens' UpdateProjectVisibilityResponse (Prelude.Maybe Prelude.Text)
updateProjectVisibilityResponse_projectArn :: (Maybe Text -> f (Maybe Text))
-> UpdateProjectVisibilityResponse
-> f UpdateProjectVisibilityResponse
updateProjectVisibilityResponse_projectArn = (UpdateProjectVisibilityResponse -> Maybe Text)
-> (UpdateProjectVisibilityResponse
-> Maybe Text -> UpdateProjectVisibilityResponse)
-> Lens
UpdateProjectVisibilityResponse
UpdateProjectVisibilityResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateProjectVisibilityResponse' {Maybe Text
projectArn :: Maybe Text
$sel:projectArn:UpdateProjectVisibilityResponse' :: UpdateProjectVisibilityResponse -> Maybe Text
projectArn} -> Maybe Text
projectArn) (\s :: UpdateProjectVisibilityResponse
s@UpdateProjectVisibilityResponse' {} Maybe Text
a -> UpdateProjectVisibilityResponse
s {$sel:projectArn:UpdateProjectVisibilityResponse' :: Maybe Text
projectArn = Maybe Text
a} :: UpdateProjectVisibilityResponse)
updateProjectVisibilityResponse_projectVisibility :: Lens.Lens' UpdateProjectVisibilityResponse (Prelude.Maybe ProjectVisibilityType)
updateProjectVisibilityResponse_projectVisibility :: (Maybe ProjectVisibilityType -> f (Maybe ProjectVisibilityType))
-> UpdateProjectVisibilityResponse
-> f UpdateProjectVisibilityResponse
updateProjectVisibilityResponse_projectVisibility = (UpdateProjectVisibilityResponse -> Maybe ProjectVisibilityType)
-> (UpdateProjectVisibilityResponse
-> Maybe ProjectVisibilityType -> UpdateProjectVisibilityResponse)
-> Lens
UpdateProjectVisibilityResponse
UpdateProjectVisibilityResponse
(Maybe ProjectVisibilityType)
(Maybe ProjectVisibilityType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateProjectVisibilityResponse' {Maybe ProjectVisibilityType
projectVisibility :: Maybe ProjectVisibilityType
$sel:projectVisibility:UpdateProjectVisibilityResponse' :: UpdateProjectVisibilityResponse -> Maybe ProjectVisibilityType
projectVisibility} -> Maybe ProjectVisibilityType
projectVisibility) (\s :: UpdateProjectVisibilityResponse
s@UpdateProjectVisibilityResponse' {} Maybe ProjectVisibilityType
a -> UpdateProjectVisibilityResponse
s {$sel:projectVisibility:UpdateProjectVisibilityResponse' :: Maybe ProjectVisibilityType
projectVisibility = Maybe ProjectVisibilityType
a} :: UpdateProjectVisibilityResponse)
updateProjectVisibilityResponse_httpStatus :: Lens.Lens' UpdateProjectVisibilityResponse Prelude.Int
updateProjectVisibilityResponse_httpStatus :: (Int -> f Int)
-> UpdateProjectVisibilityResponse
-> f UpdateProjectVisibilityResponse
updateProjectVisibilityResponse_httpStatus = (UpdateProjectVisibilityResponse -> Int)
-> (UpdateProjectVisibilityResponse
-> Int -> UpdateProjectVisibilityResponse)
-> Lens
UpdateProjectVisibilityResponse
UpdateProjectVisibilityResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateProjectVisibilityResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateProjectVisibilityResponse' :: UpdateProjectVisibilityResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateProjectVisibilityResponse
s@UpdateProjectVisibilityResponse' {} Int
a -> UpdateProjectVisibilityResponse
s {$sel:httpStatus:UpdateProjectVisibilityResponse' :: Int
httpStatus = Int
a} :: UpdateProjectVisibilityResponse)
instance
Prelude.NFData
UpdateProjectVisibilityResponse