{-# 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.Nimble.CreateStreamingImage
(
CreateStreamingImage (..),
newCreateStreamingImage,
createStreamingImage_clientToken,
createStreamingImage_description,
createStreamingImage_tags,
createStreamingImage_studioId,
createStreamingImage_name,
createStreamingImage_ec2ImageId,
CreateStreamingImageResponse (..),
newCreateStreamingImageResponse,
createStreamingImageResponse_streamingImage,
createStreamingImageResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Nimble.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data CreateStreamingImage = CreateStreamingImage'
{
CreateStreamingImage -> Maybe Text
clientToken :: Prelude.Maybe Prelude.Text,
CreateStreamingImage -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
CreateStreamingImage -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
CreateStreamingImage -> Text
studioId :: Prelude.Text,
CreateStreamingImage -> Text
name :: Prelude.Text,
CreateStreamingImage -> Text
ec2ImageId :: Prelude.Text
}
deriving (CreateStreamingImage -> CreateStreamingImage -> Bool
(CreateStreamingImage -> CreateStreamingImage -> Bool)
-> (CreateStreamingImage -> CreateStreamingImage -> Bool)
-> Eq CreateStreamingImage
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateStreamingImage -> CreateStreamingImage -> Bool
$c/= :: CreateStreamingImage -> CreateStreamingImage -> Bool
== :: CreateStreamingImage -> CreateStreamingImage -> Bool
$c== :: CreateStreamingImage -> CreateStreamingImage -> Bool
Prelude.Eq, ReadPrec [CreateStreamingImage]
ReadPrec CreateStreamingImage
Int -> ReadS CreateStreamingImage
ReadS [CreateStreamingImage]
(Int -> ReadS CreateStreamingImage)
-> ReadS [CreateStreamingImage]
-> ReadPrec CreateStreamingImage
-> ReadPrec [CreateStreamingImage]
-> Read CreateStreamingImage
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateStreamingImage]
$creadListPrec :: ReadPrec [CreateStreamingImage]
readPrec :: ReadPrec CreateStreamingImage
$creadPrec :: ReadPrec CreateStreamingImage
readList :: ReadS [CreateStreamingImage]
$creadList :: ReadS [CreateStreamingImage]
readsPrec :: Int -> ReadS CreateStreamingImage
$creadsPrec :: Int -> ReadS CreateStreamingImage
Prelude.Read, Int -> CreateStreamingImage -> ShowS
[CreateStreamingImage] -> ShowS
CreateStreamingImage -> String
(Int -> CreateStreamingImage -> ShowS)
-> (CreateStreamingImage -> String)
-> ([CreateStreamingImage] -> ShowS)
-> Show CreateStreamingImage
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateStreamingImage] -> ShowS
$cshowList :: [CreateStreamingImage] -> ShowS
show :: CreateStreamingImage -> String
$cshow :: CreateStreamingImage -> String
showsPrec :: Int -> CreateStreamingImage -> ShowS
$cshowsPrec :: Int -> CreateStreamingImage -> ShowS
Prelude.Show, (forall x. CreateStreamingImage -> Rep CreateStreamingImage x)
-> (forall x. Rep CreateStreamingImage x -> CreateStreamingImage)
-> Generic CreateStreamingImage
forall x. Rep CreateStreamingImage x -> CreateStreamingImage
forall x. CreateStreamingImage -> Rep CreateStreamingImage x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateStreamingImage x -> CreateStreamingImage
$cfrom :: forall x. CreateStreamingImage -> Rep CreateStreamingImage x
Prelude.Generic)
newCreateStreamingImage ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
CreateStreamingImage
newCreateStreamingImage :: Text -> Text -> Text -> CreateStreamingImage
newCreateStreamingImage
Text
pStudioId_
Text
pName_
Text
pEc2ImageId_ =
CreateStreamingImage' :: Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Text
-> Text
-> Text
-> CreateStreamingImage
CreateStreamingImage'
{ $sel:clientToken:CreateStreamingImage' :: Maybe Text
clientToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:description:CreateStreamingImage' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateStreamingImage' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:studioId:CreateStreamingImage' :: Text
studioId = Text
pStudioId_,
$sel:name:CreateStreamingImage' :: Text
name = Text
pName_,
$sel:ec2ImageId:CreateStreamingImage' :: Text
ec2ImageId = Text
pEc2ImageId_
}
createStreamingImage_clientToken :: Lens.Lens' CreateStreamingImage (Prelude.Maybe Prelude.Text)
createStreamingImage_clientToken :: (Maybe Text -> f (Maybe Text))
-> CreateStreamingImage -> f CreateStreamingImage
createStreamingImage_clientToken = (CreateStreamingImage -> Maybe Text)
-> (CreateStreamingImage -> Maybe Text -> CreateStreamingImage)
-> Lens
CreateStreamingImage CreateStreamingImage (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStreamingImage' {Maybe Text
clientToken :: Maybe Text
$sel:clientToken:CreateStreamingImage' :: CreateStreamingImage -> Maybe Text
clientToken} -> Maybe Text
clientToken) (\s :: CreateStreamingImage
s@CreateStreamingImage' {} Maybe Text
a -> CreateStreamingImage
s {$sel:clientToken:CreateStreamingImage' :: Maybe Text
clientToken = Maybe Text
a} :: CreateStreamingImage)
createStreamingImage_description :: Lens.Lens' CreateStreamingImage (Prelude.Maybe Prelude.Text)
createStreamingImage_description :: (Maybe Text -> f (Maybe Text))
-> CreateStreamingImage -> f CreateStreamingImage
createStreamingImage_description = (CreateStreamingImage -> Maybe Text)
-> (CreateStreamingImage -> Maybe Text -> CreateStreamingImage)
-> Lens
CreateStreamingImage CreateStreamingImage (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStreamingImage' {Maybe Text
description :: Maybe Text
$sel:description:CreateStreamingImage' :: CreateStreamingImage -> Maybe Text
description} -> Maybe Text
description) (\s :: CreateStreamingImage
s@CreateStreamingImage' {} Maybe Text
a -> CreateStreamingImage
s {$sel:description:CreateStreamingImage' :: Maybe Text
description = Maybe Text
a} :: CreateStreamingImage)
createStreamingImage_tags :: Lens.Lens' CreateStreamingImage (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createStreamingImage_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateStreamingImage -> f CreateStreamingImage
createStreamingImage_tags = (CreateStreamingImage -> Maybe (HashMap Text Text))
-> (CreateStreamingImage
-> Maybe (HashMap Text Text) -> CreateStreamingImage)
-> Lens
CreateStreamingImage
CreateStreamingImage
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStreamingImage' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:CreateStreamingImage' :: CreateStreamingImage -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: CreateStreamingImage
s@CreateStreamingImage' {} Maybe (HashMap Text Text)
a -> CreateStreamingImage
s {$sel:tags:CreateStreamingImage' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: CreateStreamingImage) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateStreamingImage -> f CreateStreamingImage)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateStreamingImage
-> f CreateStreamingImage
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text 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
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createStreamingImage_studioId :: Lens.Lens' CreateStreamingImage Prelude.Text
createStreamingImage_studioId :: (Text -> f Text) -> CreateStreamingImage -> f CreateStreamingImage
createStreamingImage_studioId = (CreateStreamingImage -> Text)
-> (CreateStreamingImage -> Text -> CreateStreamingImage)
-> Lens CreateStreamingImage CreateStreamingImage Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStreamingImage' {Text
studioId :: Text
$sel:studioId:CreateStreamingImage' :: CreateStreamingImage -> Text
studioId} -> Text
studioId) (\s :: CreateStreamingImage
s@CreateStreamingImage' {} Text
a -> CreateStreamingImage
s {$sel:studioId:CreateStreamingImage' :: Text
studioId = Text
a} :: CreateStreamingImage)
createStreamingImage_name :: Lens.Lens' CreateStreamingImage Prelude.Text
createStreamingImage_name :: (Text -> f Text) -> CreateStreamingImage -> f CreateStreamingImage
createStreamingImage_name = (CreateStreamingImage -> Text)
-> (CreateStreamingImage -> Text -> CreateStreamingImage)
-> Lens CreateStreamingImage CreateStreamingImage Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStreamingImage' {Text
name :: Text
$sel:name:CreateStreamingImage' :: CreateStreamingImage -> Text
name} -> Text
name) (\s :: CreateStreamingImage
s@CreateStreamingImage' {} Text
a -> CreateStreamingImage
s {$sel:name:CreateStreamingImage' :: Text
name = Text
a} :: CreateStreamingImage)
createStreamingImage_ec2ImageId :: Lens.Lens' CreateStreamingImage Prelude.Text
createStreamingImage_ec2ImageId :: (Text -> f Text) -> CreateStreamingImage -> f CreateStreamingImage
createStreamingImage_ec2ImageId = (CreateStreamingImage -> Text)
-> (CreateStreamingImage -> Text -> CreateStreamingImage)
-> Lens CreateStreamingImage CreateStreamingImage Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStreamingImage' {Text
ec2ImageId :: Text
$sel:ec2ImageId:CreateStreamingImage' :: CreateStreamingImage -> Text
ec2ImageId} -> Text
ec2ImageId) (\s :: CreateStreamingImage
s@CreateStreamingImage' {} Text
a -> CreateStreamingImage
s {$sel:ec2ImageId:CreateStreamingImage' :: Text
ec2ImageId = Text
a} :: CreateStreamingImage)
instance Core.AWSRequest CreateStreamingImage where
type
AWSResponse CreateStreamingImage =
CreateStreamingImageResponse
request :: CreateStreamingImage -> Request CreateStreamingImage
request = Service -> CreateStreamingImage -> Request CreateStreamingImage
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateStreamingImage
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateStreamingImage)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateStreamingImage))
-> Logger
-> Service
-> Proxy CreateStreamingImage
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateStreamingImage)))
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 StreamingImage -> Int -> CreateStreamingImageResponse
CreateStreamingImageResponse'
(Maybe StreamingImage -> Int -> CreateStreamingImageResponse)
-> Either String (Maybe StreamingImage)
-> Either String (Int -> CreateStreamingImageResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe StreamingImage)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"streamingImage")
Either String (Int -> CreateStreamingImageResponse)
-> Either String Int -> Either String CreateStreamingImageResponse
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 CreateStreamingImage
instance Prelude.NFData CreateStreamingImage
instance Core.ToHeaders CreateStreamingImage where
toHeaders :: CreateStreamingImage -> ResponseHeaders
toHeaders CreateStreamingImage' {Maybe Text
Maybe (HashMap Text Text)
Text
ec2ImageId :: Text
name :: Text
studioId :: Text
tags :: Maybe (HashMap Text Text)
description :: Maybe Text
clientToken :: Maybe Text
$sel:ec2ImageId:CreateStreamingImage' :: CreateStreamingImage -> Text
$sel:name:CreateStreamingImage' :: CreateStreamingImage -> Text
$sel:studioId:CreateStreamingImage' :: CreateStreamingImage -> Text
$sel:tags:CreateStreamingImage' :: CreateStreamingImage -> Maybe (HashMap Text Text)
$sel:description:CreateStreamingImage' :: CreateStreamingImage -> Maybe Text
$sel:clientToken:CreateStreamingImage' :: CreateStreamingImage -> Maybe Text
..} =
[ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Client-Token" HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
clientToken,
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 CreateStreamingImage where
toJSON :: CreateStreamingImage -> Value
toJSON CreateStreamingImage' {Maybe Text
Maybe (HashMap Text Text)
Text
ec2ImageId :: Text
name :: Text
studioId :: Text
tags :: Maybe (HashMap Text Text)
description :: Maybe Text
clientToken :: Maybe Text
$sel:ec2ImageId:CreateStreamingImage' :: CreateStreamingImage -> Text
$sel:name:CreateStreamingImage' :: CreateStreamingImage -> Text
$sel:studioId:CreateStreamingImage' :: CreateStreamingImage -> Text
$sel:tags:CreateStreamingImage' :: CreateStreamingImage -> Maybe (HashMap Text Text)
$sel:description:CreateStreamingImage' :: CreateStreamingImage -> Maybe Text
$sel:clientToken:CreateStreamingImage' :: CreateStreamingImage -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"description" 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
description,
(Text
"tags" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
tags,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
name),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ec2ImageId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
ec2ImageId)
]
)
instance Core.ToPath CreateStreamingImage where
toPath :: CreateStreamingImage -> ByteString
toPath CreateStreamingImage' {Maybe Text
Maybe (HashMap Text Text)
Text
ec2ImageId :: Text
name :: Text
studioId :: Text
tags :: Maybe (HashMap Text Text)
description :: Maybe Text
clientToken :: Maybe Text
$sel:ec2ImageId:CreateStreamingImage' :: CreateStreamingImage -> Text
$sel:name:CreateStreamingImage' :: CreateStreamingImage -> Text
$sel:studioId:CreateStreamingImage' :: CreateStreamingImage -> Text
$sel:tags:CreateStreamingImage' :: CreateStreamingImage -> Maybe (HashMap Text Text)
$sel:description:CreateStreamingImage' :: CreateStreamingImage -> Maybe Text
$sel:clientToken:CreateStreamingImage' :: CreateStreamingImage -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/2020-08-01/studios/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
studioId,
ByteString
"/streaming-images"
]
instance Core.ToQuery CreateStreamingImage where
toQuery :: CreateStreamingImage -> QueryString
toQuery = QueryString -> CreateStreamingImage -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateStreamingImageResponse = CreateStreamingImageResponse'
{ CreateStreamingImageResponse -> Maybe StreamingImage
streamingImage :: Prelude.Maybe StreamingImage,
CreateStreamingImageResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateStreamingImageResponse
-> CreateStreamingImageResponse -> Bool
(CreateStreamingImageResponse
-> CreateStreamingImageResponse -> Bool)
-> (CreateStreamingImageResponse
-> CreateStreamingImageResponse -> Bool)
-> Eq CreateStreamingImageResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateStreamingImageResponse
-> CreateStreamingImageResponse -> Bool
$c/= :: CreateStreamingImageResponse
-> CreateStreamingImageResponse -> Bool
== :: CreateStreamingImageResponse
-> CreateStreamingImageResponse -> Bool
$c== :: CreateStreamingImageResponse
-> CreateStreamingImageResponse -> Bool
Prelude.Eq, ReadPrec [CreateStreamingImageResponse]
ReadPrec CreateStreamingImageResponse
Int -> ReadS CreateStreamingImageResponse
ReadS [CreateStreamingImageResponse]
(Int -> ReadS CreateStreamingImageResponse)
-> ReadS [CreateStreamingImageResponse]
-> ReadPrec CreateStreamingImageResponse
-> ReadPrec [CreateStreamingImageResponse]
-> Read CreateStreamingImageResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateStreamingImageResponse]
$creadListPrec :: ReadPrec [CreateStreamingImageResponse]
readPrec :: ReadPrec CreateStreamingImageResponse
$creadPrec :: ReadPrec CreateStreamingImageResponse
readList :: ReadS [CreateStreamingImageResponse]
$creadList :: ReadS [CreateStreamingImageResponse]
readsPrec :: Int -> ReadS CreateStreamingImageResponse
$creadsPrec :: Int -> ReadS CreateStreamingImageResponse
Prelude.Read, Int -> CreateStreamingImageResponse -> ShowS
[CreateStreamingImageResponse] -> ShowS
CreateStreamingImageResponse -> String
(Int -> CreateStreamingImageResponse -> ShowS)
-> (CreateStreamingImageResponse -> String)
-> ([CreateStreamingImageResponse] -> ShowS)
-> Show CreateStreamingImageResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateStreamingImageResponse] -> ShowS
$cshowList :: [CreateStreamingImageResponse] -> ShowS
show :: CreateStreamingImageResponse -> String
$cshow :: CreateStreamingImageResponse -> String
showsPrec :: Int -> CreateStreamingImageResponse -> ShowS
$cshowsPrec :: Int -> CreateStreamingImageResponse -> ShowS
Prelude.Show, (forall x.
CreateStreamingImageResponse -> Rep CreateStreamingImageResponse x)
-> (forall x.
Rep CreateStreamingImageResponse x -> CreateStreamingImageResponse)
-> Generic CreateStreamingImageResponse
forall x.
Rep CreateStreamingImageResponse x -> CreateStreamingImageResponse
forall x.
CreateStreamingImageResponse -> Rep CreateStreamingImageResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateStreamingImageResponse x -> CreateStreamingImageResponse
$cfrom :: forall x.
CreateStreamingImageResponse -> Rep CreateStreamingImageResponse x
Prelude.Generic)
newCreateStreamingImageResponse ::
Prelude.Int ->
CreateStreamingImageResponse
newCreateStreamingImageResponse :: Int -> CreateStreamingImageResponse
newCreateStreamingImageResponse Int
pHttpStatus_ =
CreateStreamingImageResponse' :: Maybe StreamingImage -> Int -> CreateStreamingImageResponse
CreateStreamingImageResponse'
{ $sel:streamingImage:CreateStreamingImageResponse' :: Maybe StreamingImage
streamingImage =
Maybe StreamingImage
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateStreamingImageResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createStreamingImageResponse_streamingImage :: Lens.Lens' CreateStreamingImageResponse (Prelude.Maybe StreamingImage)
createStreamingImageResponse_streamingImage :: (Maybe StreamingImage -> f (Maybe StreamingImage))
-> CreateStreamingImageResponse -> f CreateStreamingImageResponse
createStreamingImageResponse_streamingImage = (CreateStreamingImageResponse -> Maybe StreamingImage)
-> (CreateStreamingImageResponse
-> Maybe StreamingImage -> CreateStreamingImageResponse)
-> Lens
CreateStreamingImageResponse
CreateStreamingImageResponse
(Maybe StreamingImage)
(Maybe StreamingImage)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStreamingImageResponse' {Maybe StreamingImage
streamingImage :: Maybe StreamingImage
$sel:streamingImage:CreateStreamingImageResponse' :: CreateStreamingImageResponse -> Maybe StreamingImage
streamingImage} -> Maybe StreamingImage
streamingImage) (\s :: CreateStreamingImageResponse
s@CreateStreamingImageResponse' {} Maybe StreamingImage
a -> CreateStreamingImageResponse
s {$sel:streamingImage:CreateStreamingImageResponse' :: Maybe StreamingImage
streamingImage = Maybe StreamingImage
a} :: CreateStreamingImageResponse)
createStreamingImageResponse_httpStatus :: Lens.Lens' CreateStreamingImageResponse Prelude.Int
createStreamingImageResponse_httpStatus :: (Int -> f Int)
-> CreateStreamingImageResponse -> f CreateStreamingImageResponse
createStreamingImageResponse_httpStatus = (CreateStreamingImageResponse -> Int)
-> (CreateStreamingImageResponse
-> Int -> CreateStreamingImageResponse)
-> Lens
CreateStreamingImageResponse CreateStreamingImageResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStreamingImageResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateStreamingImageResponse' :: CreateStreamingImageResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateStreamingImageResponse
s@CreateStreamingImageResponse' {} Int
a -> CreateStreamingImageResponse
s {$sel:httpStatus:CreateStreamingImageResponse' :: Int
httpStatus = Int
a} :: CreateStreamingImageResponse)
instance Prelude.NFData CreateStreamingImageResponse