{-# 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.DataPipeline.DescribeObjects
(
DescribeObjects (..),
newDescribeObjects,
describeObjects_evaluateExpressions,
describeObjects_marker,
describeObjects_pipelineId,
describeObjects_objectIds,
DescribeObjectsResponse (..),
newDescribeObjectsResponse,
describeObjectsResponse_hasMoreResults,
describeObjectsResponse_marker,
describeObjectsResponse_httpStatus,
describeObjectsResponse_pipelineObjects,
)
where
import qualified Amazonka.Core as Core
import Amazonka.DataPipeline.Types
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 DescribeObjects = DescribeObjects'
{
DescribeObjects -> Maybe Bool
evaluateExpressions :: Prelude.Maybe Prelude.Bool,
DescribeObjects -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeObjects -> Text
pipelineId :: Prelude.Text,
DescribeObjects -> [Text]
objectIds :: [Prelude.Text]
}
deriving (DescribeObjects -> DescribeObjects -> Bool
(DescribeObjects -> DescribeObjects -> Bool)
-> (DescribeObjects -> DescribeObjects -> Bool)
-> Eq DescribeObjects
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeObjects -> DescribeObjects -> Bool
$c/= :: DescribeObjects -> DescribeObjects -> Bool
== :: DescribeObjects -> DescribeObjects -> Bool
$c== :: DescribeObjects -> DescribeObjects -> Bool
Prelude.Eq, ReadPrec [DescribeObjects]
ReadPrec DescribeObjects
Int -> ReadS DescribeObjects
ReadS [DescribeObjects]
(Int -> ReadS DescribeObjects)
-> ReadS [DescribeObjects]
-> ReadPrec DescribeObjects
-> ReadPrec [DescribeObjects]
-> Read DescribeObjects
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeObjects]
$creadListPrec :: ReadPrec [DescribeObjects]
readPrec :: ReadPrec DescribeObjects
$creadPrec :: ReadPrec DescribeObjects
readList :: ReadS [DescribeObjects]
$creadList :: ReadS [DescribeObjects]
readsPrec :: Int -> ReadS DescribeObjects
$creadsPrec :: Int -> ReadS DescribeObjects
Prelude.Read, Int -> DescribeObjects -> ShowS
[DescribeObjects] -> ShowS
DescribeObjects -> String
(Int -> DescribeObjects -> ShowS)
-> (DescribeObjects -> String)
-> ([DescribeObjects] -> ShowS)
-> Show DescribeObjects
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeObjects] -> ShowS
$cshowList :: [DescribeObjects] -> ShowS
show :: DescribeObjects -> String
$cshow :: DescribeObjects -> String
showsPrec :: Int -> DescribeObjects -> ShowS
$cshowsPrec :: Int -> DescribeObjects -> ShowS
Prelude.Show, (forall x. DescribeObjects -> Rep DescribeObjects x)
-> (forall x. Rep DescribeObjects x -> DescribeObjects)
-> Generic DescribeObjects
forall x. Rep DescribeObjects x -> DescribeObjects
forall x. DescribeObjects -> Rep DescribeObjects x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeObjects x -> DescribeObjects
$cfrom :: forall x. DescribeObjects -> Rep DescribeObjects x
Prelude.Generic)
newDescribeObjects ::
Prelude.Text ->
DescribeObjects
newDescribeObjects :: Text -> DescribeObjects
newDescribeObjects Text
pPipelineId_ =
DescribeObjects' :: Maybe Bool -> Maybe Text -> Text -> [Text] -> DescribeObjects
DescribeObjects'
{ $sel:evaluateExpressions:DescribeObjects' :: Maybe Bool
evaluateExpressions =
Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:marker:DescribeObjects' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:pipelineId:DescribeObjects' :: Text
pipelineId = Text
pPipelineId_,
$sel:objectIds:DescribeObjects' :: [Text]
objectIds = [Text]
forall a. Monoid a => a
Prelude.mempty
}
describeObjects_evaluateExpressions :: Lens.Lens' DescribeObjects (Prelude.Maybe Prelude.Bool)
describeObjects_evaluateExpressions :: (Maybe Bool -> f (Maybe Bool))
-> DescribeObjects -> f DescribeObjects
describeObjects_evaluateExpressions = (DescribeObjects -> Maybe Bool)
-> (DescribeObjects -> Maybe Bool -> DescribeObjects)
-> Lens DescribeObjects DescribeObjects (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeObjects' {Maybe Bool
evaluateExpressions :: Maybe Bool
$sel:evaluateExpressions:DescribeObjects' :: DescribeObjects -> Maybe Bool
evaluateExpressions} -> Maybe Bool
evaluateExpressions) (\s :: DescribeObjects
s@DescribeObjects' {} Maybe Bool
a -> DescribeObjects
s {$sel:evaluateExpressions:DescribeObjects' :: Maybe Bool
evaluateExpressions = Maybe Bool
a} :: DescribeObjects)
describeObjects_marker :: Lens.Lens' DescribeObjects (Prelude.Maybe Prelude.Text)
describeObjects_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeObjects -> f DescribeObjects
describeObjects_marker = (DescribeObjects -> Maybe Text)
-> (DescribeObjects -> Maybe Text -> DescribeObjects)
-> Lens DescribeObjects DescribeObjects (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeObjects' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeObjects' :: DescribeObjects -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeObjects
s@DescribeObjects' {} Maybe Text
a -> DescribeObjects
s {$sel:marker:DescribeObjects' :: Maybe Text
marker = Maybe Text
a} :: DescribeObjects)
describeObjects_pipelineId :: Lens.Lens' DescribeObjects Prelude.Text
describeObjects_pipelineId :: (Text -> f Text) -> DescribeObjects -> f DescribeObjects
describeObjects_pipelineId = (DescribeObjects -> Text)
-> (DescribeObjects -> Text -> DescribeObjects)
-> Lens DescribeObjects DescribeObjects Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeObjects' {Text
pipelineId :: Text
$sel:pipelineId:DescribeObjects' :: DescribeObjects -> Text
pipelineId} -> Text
pipelineId) (\s :: DescribeObjects
s@DescribeObjects' {} Text
a -> DescribeObjects
s {$sel:pipelineId:DescribeObjects' :: Text
pipelineId = Text
a} :: DescribeObjects)
describeObjects_objectIds :: Lens.Lens' DescribeObjects [Prelude.Text]
describeObjects_objectIds :: ([Text] -> f [Text]) -> DescribeObjects -> f DescribeObjects
describeObjects_objectIds = (DescribeObjects -> [Text])
-> (DescribeObjects -> [Text] -> DescribeObjects)
-> Lens DescribeObjects DescribeObjects [Text] [Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeObjects' {[Text]
objectIds :: [Text]
$sel:objectIds:DescribeObjects' :: DescribeObjects -> [Text]
objectIds} -> [Text]
objectIds) (\s :: DescribeObjects
s@DescribeObjects' {} [Text]
a -> DescribeObjects
s {$sel:objectIds:DescribeObjects' :: [Text]
objectIds = [Text]
a} :: DescribeObjects) (([Text] -> f [Text]) -> DescribeObjects -> f DescribeObjects)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> DescribeObjects
-> f DescribeObjects
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Text] -> f [Text]) -> [Text] -> f [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.AWSPager DescribeObjects where
page :: DescribeObjects
-> AWSResponse DescribeObjects -> Maybe DescribeObjects
page DescribeObjects
rq AWSResponse DescribeObjects
rs
| Maybe Bool -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeObjects
DescribeObjectsResponse
rs
DescribeObjectsResponse
-> Getting (First Bool) DescribeObjectsResponse Bool -> Maybe Bool
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Bool -> Const (First Bool) (Maybe Bool))
-> DescribeObjectsResponse
-> Const (First Bool) DescribeObjectsResponse
Lens' DescribeObjectsResponse (Maybe Bool)
describeObjectsResponse_hasMoreResults
((Maybe Bool -> Const (First Bool) (Maybe Bool))
-> DescribeObjectsResponse
-> Const (First Bool) DescribeObjectsResponse)
-> ((Bool -> Const (First Bool) Bool)
-> Maybe Bool -> Const (First Bool) (Maybe Bool))
-> Getting (First Bool) DescribeObjectsResponse Bool
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Bool -> Const (First Bool) Bool)
-> Maybe Bool -> Const (First Bool) (Maybe Bool)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeObjects
forall a. Maybe a
Prelude.Nothing
| Maybe Text -> Bool
forall a. Maybe a -> Bool
Prelude.isNothing
( AWSResponse DescribeObjects
DescribeObjectsResponse
rs
DescribeObjectsResponse
-> Getting (First Text) DescribeObjectsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeObjectsResponse
-> Const (First Text) DescribeObjectsResponse
Lens' DescribeObjectsResponse (Maybe Text)
describeObjectsResponse_marker ((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeObjectsResponse
-> Const (First Text) DescribeObjectsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeObjectsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeObjects
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeObjects -> Maybe DescribeObjects
forall a. a -> Maybe a
Prelude.Just (DescribeObjects -> Maybe DescribeObjects)
-> DescribeObjects -> Maybe DescribeObjects
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeObjects
rq
DescribeObjects
-> (DescribeObjects -> DescribeObjects) -> DescribeObjects
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeObjects -> Identity DescribeObjects
Lens DescribeObjects DescribeObjects (Maybe Text) (Maybe Text)
describeObjects_marker
((Maybe Text -> Identity (Maybe Text))
-> DescribeObjects -> Identity DescribeObjects)
-> Maybe Text -> DescribeObjects -> DescribeObjects
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeObjects
DescribeObjectsResponse
rs
DescribeObjectsResponse
-> Getting (First Text) DescribeObjectsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeObjectsResponse
-> Const (First Text) DescribeObjectsResponse
Lens' DescribeObjectsResponse (Maybe Text)
describeObjectsResponse_marker ((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeObjectsResponse
-> Const (First Text) DescribeObjectsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeObjectsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest DescribeObjects where
type
AWSResponse DescribeObjects =
DescribeObjectsResponse
request :: DescribeObjects -> Request DescribeObjects
request = Service -> DescribeObjects -> Request DescribeObjects
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeObjects
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeObjects)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeObjects))
-> Logger
-> Service
-> Proxy DescribeObjects
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeObjects)))
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 Bool
-> Maybe Text -> Int -> [PipelineObject] -> DescribeObjectsResponse
DescribeObjectsResponse'
(Maybe Bool
-> Maybe Text
-> Int
-> [PipelineObject]
-> DescribeObjectsResponse)
-> Either String (Maybe Bool)
-> Either
String
(Maybe Text -> Int -> [PipelineObject] -> DescribeObjectsResponse)
forall (f :: * -> *) a b. Functor 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
"hasMoreResults")
Either
String
(Maybe Text -> Int -> [PipelineObject] -> DescribeObjectsResponse)
-> Either String (Maybe Text)
-> Either
String (Int -> [PipelineObject] -> DescribeObjectsResponse)
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
"marker")
Either String (Int -> [PipelineObject] -> DescribeObjectsResponse)
-> Either String Int
-> Either String ([PipelineObject] -> DescribeObjectsResponse)
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))
Either String ([PipelineObject] -> DescribeObjectsResponse)
-> Either String [PipelineObject]
-> Either String DescribeObjectsResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe [PipelineObject])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"pipelineObjects"
Either String (Maybe [PipelineObject])
-> [PipelineObject] -> Either String [PipelineObject]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [PipelineObject]
forall a. Monoid a => a
Prelude.mempty
)
)
instance Prelude.Hashable DescribeObjects
instance Prelude.NFData DescribeObjects
instance Core.ToHeaders DescribeObjects where
toHeaders :: DescribeObjects -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeObjects -> 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
"DataPipeline.DescribeObjects" ::
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 DescribeObjects where
toJSON :: DescribeObjects -> Value
toJSON DescribeObjects' {[Text]
Maybe Bool
Maybe Text
Text
objectIds :: [Text]
pipelineId :: Text
marker :: Maybe Text
evaluateExpressions :: Maybe Bool
$sel:objectIds:DescribeObjects' :: DescribeObjects -> [Text]
$sel:pipelineId:DescribeObjects' :: DescribeObjects -> Text
$sel:marker:DescribeObjects' :: DescribeObjects -> Maybe Text
$sel:evaluateExpressions:DescribeObjects' :: DescribeObjects -> Maybe Bool
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"evaluateExpressions" 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
evaluateExpressions,
(Text
"marker" 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
marker,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"pipelineId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
pipelineId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"objectIds" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= [Text]
objectIds)
]
)
instance Core.ToPath DescribeObjects where
toPath :: DescribeObjects -> ByteString
toPath = ByteString -> DescribeObjects -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeObjects where
toQuery :: DescribeObjects -> QueryString
toQuery = QueryString -> DescribeObjects -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeObjectsResponse = DescribeObjectsResponse'
{
DescribeObjectsResponse -> Maybe Bool
hasMoreResults :: Prelude.Maybe Prelude.Bool,
DescribeObjectsResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeObjectsResponse -> Int
httpStatus :: Prelude.Int,
DescribeObjectsResponse -> [PipelineObject]
pipelineObjects :: [PipelineObject]
}
deriving (DescribeObjectsResponse -> DescribeObjectsResponse -> Bool
(DescribeObjectsResponse -> DescribeObjectsResponse -> Bool)
-> (DescribeObjectsResponse -> DescribeObjectsResponse -> Bool)
-> Eq DescribeObjectsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeObjectsResponse -> DescribeObjectsResponse -> Bool
$c/= :: DescribeObjectsResponse -> DescribeObjectsResponse -> Bool
== :: DescribeObjectsResponse -> DescribeObjectsResponse -> Bool
$c== :: DescribeObjectsResponse -> DescribeObjectsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeObjectsResponse]
ReadPrec DescribeObjectsResponse
Int -> ReadS DescribeObjectsResponse
ReadS [DescribeObjectsResponse]
(Int -> ReadS DescribeObjectsResponse)
-> ReadS [DescribeObjectsResponse]
-> ReadPrec DescribeObjectsResponse
-> ReadPrec [DescribeObjectsResponse]
-> Read DescribeObjectsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeObjectsResponse]
$creadListPrec :: ReadPrec [DescribeObjectsResponse]
readPrec :: ReadPrec DescribeObjectsResponse
$creadPrec :: ReadPrec DescribeObjectsResponse
readList :: ReadS [DescribeObjectsResponse]
$creadList :: ReadS [DescribeObjectsResponse]
readsPrec :: Int -> ReadS DescribeObjectsResponse
$creadsPrec :: Int -> ReadS DescribeObjectsResponse
Prelude.Read, Int -> DescribeObjectsResponse -> ShowS
[DescribeObjectsResponse] -> ShowS
DescribeObjectsResponse -> String
(Int -> DescribeObjectsResponse -> ShowS)
-> (DescribeObjectsResponse -> String)
-> ([DescribeObjectsResponse] -> ShowS)
-> Show DescribeObjectsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeObjectsResponse] -> ShowS
$cshowList :: [DescribeObjectsResponse] -> ShowS
show :: DescribeObjectsResponse -> String
$cshow :: DescribeObjectsResponse -> String
showsPrec :: Int -> DescribeObjectsResponse -> ShowS
$cshowsPrec :: Int -> DescribeObjectsResponse -> ShowS
Prelude.Show, (forall x.
DescribeObjectsResponse -> Rep DescribeObjectsResponse x)
-> (forall x.
Rep DescribeObjectsResponse x -> DescribeObjectsResponse)
-> Generic DescribeObjectsResponse
forall x. Rep DescribeObjectsResponse x -> DescribeObjectsResponse
forall x. DescribeObjectsResponse -> Rep DescribeObjectsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeObjectsResponse x -> DescribeObjectsResponse
$cfrom :: forall x. DescribeObjectsResponse -> Rep DescribeObjectsResponse x
Prelude.Generic)
newDescribeObjectsResponse ::
Prelude.Int ->
DescribeObjectsResponse
newDescribeObjectsResponse :: Int -> DescribeObjectsResponse
newDescribeObjectsResponse Int
pHttpStatus_ =
DescribeObjectsResponse' :: Maybe Bool
-> Maybe Text -> Int -> [PipelineObject] -> DescribeObjectsResponse
DescribeObjectsResponse'
{ $sel:hasMoreResults:DescribeObjectsResponse' :: Maybe Bool
hasMoreResults =
Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:marker:DescribeObjectsResponse' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeObjectsResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:pipelineObjects:DescribeObjectsResponse' :: [PipelineObject]
pipelineObjects = [PipelineObject]
forall a. Monoid a => a
Prelude.mempty
}
describeObjectsResponse_hasMoreResults :: Lens.Lens' DescribeObjectsResponse (Prelude.Maybe Prelude.Bool)
describeObjectsResponse_hasMoreResults :: (Maybe Bool -> f (Maybe Bool))
-> DescribeObjectsResponse -> f DescribeObjectsResponse
describeObjectsResponse_hasMoreResults = (DescribeObjectsResponse -> Maybe Bool)
-> (DescribeObjectsResponse
-> Maybe Bool -> DescribeObjectsResponse)
-> Lens' DescribeObjectsResponse (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeObjectsResponse' {Maybe Bool
hasMoreResults :: Maybe Bool
$sel:hasMoreResults:DescribeObjectsResponse' :: DescribeObjectsResponse -> Maybe Bool
hasMoreResults} -> Maybe Bool
hasMoreResults) (\s :: DescribeObjectsResponse
s@DescribeObjectsResponse' {} Maybe Bool
a -> DescribeObjectsResponse
s {$sel:hasMoreResults:DescribeObjectsResponse' :: Maybe Bool
hasMoreResults = Maybe Bool
a} :: DescribeObjectsResponse)
describeObjectsResponse_marker :: Lens.Lens' DescribeObjectsResponse (Prelude.Maybe Prelude.Text)
describeObjectsResponse_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeObjectsResponse -> f DescribeObjectsResponse
describeObjectsResponse_marker = (DescribeObjectsResponse -> Maybe Text)
-> (DescribeObjectsResponse
-> Maybe Text -> DescribeObjectsResponse)
-> Lens' DescribeObjectsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeObjectsResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeObjectsResponse' :: DescribeObjectsResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeObjectsResponse
s@DescribeObjectsResponse' {} Maybe Text
a -> DescribeObjectsResponse
s {$sel:marker:DescribeObjectsResponse' :: Maybe Text
marker = Maybe Text
a} :: DescribeObjectsResponse)
describeObjectsResponse_httpStatus :: Lens.Lens' DescribeObjectsResponse Prelude.Int
describeObjectsResponse_httpStatus :: (Int -> f Int)
-> DescribeObjectsResponse -> f DescribeObjectsResponse
describeObjectsResponse_httpStatus = (DescribeObjectsResponse -> Int)
-> (DescribeObjectsResponse -> Int -> DescribeObjectsResponse)
-> Lens DescribeObjectsResponse DescribeObjectsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeObjectsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeObjectsResponse' :: DescribeObjectsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeObjectsResponse
s@DescribeObjectsResponse' {} Int
a -> DescribeObjectsResponse
s {$sel:httpStatus:DescribeObjectsResponse' :: Int
httpStatus = Int
a} :: DescribeObjectsResponse)
describeObjectsResponse_pipelineObjects :: Lens.Lens' DescribeObjectsResponse [PipelineObject]
describeObjectsResponse_pipelineObjects :: ([PipelineObject] -> f [PipelineObject])
-> DescribeObjectsResponse -> f DescribeObjectsResponse
describeObjectsResponse_pipelineObjects = (DescribeObjectsResponse -> [PipelineObject])
-> (DescribeObjectsResponse
-> [PipelineObject] -> DescribeObjectsResponse)
-> Lens
DescribeObjectsResponse
DescribeObjectsResponse
[PipelineObject]
[PipelineObject]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeObjectsResponse' {[PipelineObject]
pipelineObjects :: [PipelineObject]
$sel:pipelineObjects:DescribeObjectsResponse' :: DescribeObjectsResponse -> [PipelineObject]
pipelineObjects} -> [PipelineObject]
pipelineObjects) (\s :: DescribeObjectsResponse
s@DescribeObjectsResponse' {} [PipelineObject]
a -> DescribeObjectsResponse
s {$sel:pipelineObjects:DescribeObjectsResponse' :: [PipelineObject]
pipelineObjects = [PipelineObject]
a} :: DescribeObjectsResponse) (([PipelineObject] -> f [PipelineObject])
-> DescribeObjectsResponse -> f DescribeObjectsResponse)
-> (([PipelineObject] -> f [PipelineObject])
-> [PipelineObject] -> f [PipelineObject])
-> ([PipelineObject] -> f [PipelineObject])
-> DescribeObjectsResponse
-> f DescribeObjectsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([PipelineObject] -> f [PipelineObject])
-> [PipelineObject] -> f [PipelineObject]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Prelude.NFData DescribeObjectsResponse