{-# 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.SSM.ListOpsMetadata
(
ListOpsMetadata (..),
newListOpsMetadata,
listOpsMetadata_filters,
listOpsMetadata_nextToken,
listOpsMetadata_maxResults,
ListOpsMetadataResponse (..),
newListOpsMetadataResponse,
listOpsMetadataResponse_nextToken,
listOpsMetadataResponse_opsMetadataList,
listOpsMetadataResponse_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.SSM.Types
data ListOpsMetadata = ListOpsMetadata'
{
ListOpsMetadata -> Maybe [OpsMetadataFilter]
filters :: Prelude.Maybe [OpsMetadataFilter],
ListOpsMetadata -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListOpsMetadata -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListOpsMetadata -> ListOpsMetadata -> Bool
(ListOpsMetadata -> ListOpsMetadata -> Bool)
-> (ListOpsMetadata -> ListOpsMetadata -> Bool)
-> Eq ListOpsMetadata
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListOpsMetadata -> ListOpsMetadata -> Bool
$c/= :: ListOpsMetadata -> ListOpsMetadata -> Bool
== :: ListOpsMetadata -> ListOpsMetadata -> Bool
$c== :: ListOpsMetadata -> ListOpsMetadata -> Bool
Prelude.Eq, ReadPrec [ListOpsMetadata]
ReadPrec ListOpsMetadata
Int -> ReadS ListOpsMetadata
ReadS [ListOpsMetadata]
(Int -> ReadS ListOpsMetadata)
-> ReadS [ListOpsMetadata]
-> ReadPrec ListOpsMetadata
-> ReadPrec [ListOpsMetadata]
-> Read ListOpsMetadata
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListOpsMetadata]
$creadListPrec :: ReadPrec [ListOpsMetadata]
readPrec :: ReadPrec ListOpsMetadata
$creadPrec :: ReadPrec ListOpsMetadata
readList :: ReadS [ListOpsMetadata]
$creadList :: ReadS [ListOpsMetadata]
readsPrec :: Int -> ReadS ListOpsMetadata
$creadsPrec :: Int -> ReadS ListOpsMetadata
Prelude.Read, Int -> ListOpsMetadata -> ShowS
[ListOpsMetadata] -> ShowS
ListOpsMetadata -> String
(Int -> ListOpsMetadata -> ShowS)
-> (ListOpsMetadata -> String)
-> ([ListOpsMetadata] -> ShowS)
-> Show ListOpsMetadata
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListOpsMetadata] -> ShowS
$cshowList :: [ListOpsMetadata] -> ShowS
show :: ListOpsMetadata -> String
$cshow :: ListOpsMetadata -> String
showsPrec :: Int -> ListOpsMetadata -> ShowS
$cshowsPrec :: Int -> ListOpsMetadata -> ShowS
Prelude.Show, (forall x. ListOpsMetadata -> Rep ListOpsMetadata x)
-> (forall x. Rep ListOpsMetadata x -> ListOpsMetadata)
-> Generic ListOpsMetadata
forall x. Rep ListOpsMetadata x -> ListOpsMetadata
forall x. ListOpsMetadata -> Rep ListOpsMetadata x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListOpsMetadata x -> ListOpsMetadata
$cfrom :: forall x. ListOpsMetadata -> Rep ListOpsMetadata x
Prelude.Generic)
newListOpsMetadata ::
ListOpsMetadata
newListOpsMetadata :: ListOpsMetadata
newListOpsMetadata =
ListOpsMetadata' :: Maybe [OpsMetadataFilter]
-> Maybe Text -> Maybe Natural -> ListOpsMetadata
ListOpsMetadata'
{ $sel:filters:ListOpsMetadata' :: Maybe [OpsMetadataFilter]
filters = Maybe [OpsMetadataFilter]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListOpsMetadata' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListOpsMetadata' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listOpsMetadata_filters :: Lens.Lens' ListOpsMetadata (Prelude.Maybe [OpsMetadataFilter])
listOpsMetadata_filters :: (Maybe [OpsMetadataFilter] -> f (Maybe [OpsMetadataFilter]))
-> ListOpsMetadata -> f ListOpsMetadata
listOpsMetadata_filters = (ListOpsMetadata -> Maybe [OpsMetadataFilter])
-> (ListOpsMetadata
-> Maybe [OpsMetadataFilter] -> ListOpsMetadata)
-> Lens
ListOpsMetadata
ListOpsMetadata
(Maybe [OpsMetadataFilter])
(Maybe [OpsMetadataFilter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOpsMetadata' {Maybe [OpsMetadataFilter]
filters :: Maybe [OpsMetadataFilter]
$sel:filters:ListOpsMetadata' :: ListOpsMetadata -> Maybe [OpsMetadataFilter]
filters} -> Maybe [OpsMetadataFilter]
filters) (\s :: ListOpsMetadata
s@ListOpsMetadata' {} Maybe [OpsMetadataFilter]
a -> ListOpsMetadata
s {$sel:filters:ListOpsMetadata' :: Maybe [OpsMetadataFilter]
filters = Maybe [OpsMetadataFilter]
a} :: ListOpsMetadata) ((Maybe [OpsMetadataFilter] -> f (Maybe [OpsMetadataFilter]))
-> ListOpsMetadata -> f ListOpsMetadata)
-> ((Maybe [OpsMetadataFilter] -> f (Maybe [OpsMetadataFilter]))
-> Maybe [OpsMetadataFilter] -> f (Maybe [OpsMetadataFilter]))
-> (Maybe [OpsMetadataFilter] -> f (Maybe [OpsMetadataFilter]))
-> ListOpsMetadata
-> f ListOpsMetadata
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[OpsMetadataFilter]
[OpsMetadataFilter]
[OpsMetadataFilter]
[OpsMetadataFilter]
-> Iso
(Maybe [OpsMetadataFilter])
(Maybe [OpsMetadataFilter])
(Maybe [OpsMetadataFilter])
(Maybe [OpsMetadataFilter])
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
[OpsMetadataFilter]
[OpsMetadataFilter]
[OpsMetadataFilter]
[OpsMetadataFilter]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listOpsMetadata_nextToken :: Lens.Lens' ListOpsMetadata (Prelude.Maybe Prelude.Text)
listOpsMetadata_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListOpsMetadata -> f ListOpsMetadata
listOpsMetadata_nextToken = (ListOpsMetadata -> Maybe Text)
-> (ListOpsMetadata -> Maybe Text -> ListOpsMetadata)
-> Lens ListOpsMetadata ListOpsMetadata (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOpsMetadata' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListOpsMetadata' :: ListOpsMetadata -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListOpsMetadata
s@ListOpsMetadata' {} Maybe Text
a -> ListOpsMetadata
s {$sel:nextToken:ListOpsMetadata' :: Maybe Text
nextToken = Maybe Text
a} :: ListOpsMetadata)
listOpsMetadata_maxResults :: Lens.Lens' ListOpsMetadata (Prelude.Maybe Prelude.Natural)
listOpsMetadata_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListOpsMetadata -> f ListOpsMetadata
listOpsMetadata_maxResults = (ListOpsMetadata -> Maybe Natural)
-> (ListOpsMetadata -> Maybe Natural -> ListOpsMetadata)
-> Lens
ListOpsMetadata ListOpsMetadata (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOpsMetadata' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListOpsMetadata' :: ListOpsMetadata -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListOpsMetadata
s@ListOpsMetadata' {} Maybe Natural
a -> ListOpsMetadata
s {$sel:maxResults:ListOpsMetadata' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListOpsMetadata)
instance Core.AWSPager ListOpsMetadata where
page :: ListOpsMetadata
-> AWSResponse ListOpsMetadata -> Maybe ListOpsMetadata
page ListOpsMetadata
rq AWSResponse ListOpsMetadata
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListOpsMetadata
ListOpsMetadataResponse
rs
ListOpsMetadataResponse
-> Getting (First Text) ListOpsMetadataResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListOpsMetadataResponse
-> Const (First Text) ListOpsMetadataResponse
Lens' ListOpsMetadataResponse (Maybe Text)
listOpsMetadataResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListOpsMetadataResponse
-> Const (First Text) ListOpsMetadataResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListOpsMetadataResponse 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 ListOpsMetadata
forall a. Maybe a
Prelude.Nothing
| Maybe [OpsMetadata] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListOpsMetadata
ListOpsMetadataResponse
rs
ListOpsMetadataResponse
-> Getting
(First [OpsMetadata]) ListOpsMetadataResponse [OpsMetadata]
-> Maybe [OpsMetadata]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe (NonEmpty OpsMetadata)
-> Const (First [OpsMetadata]) (Maybe (NonEmpty OpsMetadata)))
-> ListOpsMetadataResponse
-> Const (First [OpsMetadata]) ListOpsMetadataResponse
Lens' ListOpsMetadataResponse (Maybe (NonEmpty OpsMetadata))
listOpsMetadataResponse_opsMetadataList
((Maybe (NonEmpty OpsMetadata)
-> Const (First [OpsMetadata]) (Maybe (NonEmpty OpsMetadata)))
-> ListOpsMetadataResponse
-> Const (First [OpsMetadata]) ListOpsMetadataResponse)
-> (([OpsMetadata] -> Const (First [OpsMetadata]) [OpsMetadata])
-> Maybe (NonEmpty OpsMetadata)
-> Const (First [OpsMetadata]) (Maybe (NonEmpty OpsMetadata)))
-> Getting
(First [OpsMetadata]) ListOpsMetadataResponse [OpsMetadata]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (NonEmpty OpsMetadata
-> Const (First [OpsMetadata]) (NonEmpty OpsMetadata))
-> Maybe (NonEmpty OpsMetadata)
-> Const (First [OpsMetadata]) (Maybe (NonEmpty OpsMetadata))
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
((NonEmpty OpsMetadata
-> Const (First [OpsMetadata]) (NonEmpty OpsMetadata))
-> Maybe (NonEmpty OpsMetadata)
-> Const (First [OpsMetadata]) (Maybe (NonEmpty OpsMetadata)))
-> (([OpsMetadata] -> Const (First [OpsMetadata]) [OpsMetadata])
-> NonEmpty OpsMetadata
-> Const (First [OpsMetadata]) (NonEmpty OpsMetadata))
-> ([OpsMetadata] -> Const (First [OpsMetadata]) [OpsMetadata])
-> Maybe (NonEmpty OpsMetadata)
-> Const (First [OpsMetadata]) (Maybe (NonEmpty OpsMetadata))
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (NonEmpty OpsMetadata -> [OpsMetadata])
-> ([OpsMetadata] -> Const (First [OpsMetadata]) [OpsMetadata])
-> NonEmpty OpsMetadata
-> Const (First [OpsMetadata]) (NonEmpty OpsMetadata)
forall (p :: * -> * -> *) (f :: * -> *) s a.
(Profunctor p, Contravariant f) =>
(s -> a) -> Optic' p f s a
Lens.to NonEmpty OpsMetadata -> [OpsMetadata]
forall l. IsList l => l -> [Item l]
Prelude.toList
) =
Maybe ListOpsMetadata
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListOpsMetadata -> Maybe ListOpsMetadata
forall a. a -> Maybe a
Prelude.Just (ListOpsMetadata -> Maybe ListOpsMetadata)
-> ListOpsMetadata -> Maybe ListOpsMetadata
forall a b. (a -> b) -> a -> b
Prelude.$
ListOpsMetadata
rq
ListOpsMetadata
-> (ListOpsMetadata -> ListOpsMetadata) -> ListOpsMetadata
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListOpsMetadata -> Identity ListOpsMetadata
Lens ListOpsMetadata ListOpsMetadata (Maybe Text) (Maybe Text)
listOpsMetadata_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListOpsMetadata -> Identity ListOpsMetadata)
-> Maybe Text -> ListOpsMetadata -> ListOpsMetadata
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListOpsMetadata
ListOpsMetadataResponse
rs
ListOpsMetadataResponse
-> Getting (First Text) ListOpsMetadataResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListOpsMetadataResponse
-> Const (First Text) ListOpsMetadataResponse
Lens' ListOpsMetadataResponse (Maybe Text)
listOpsMetadataResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListOpsMetadataResponse
-> Const (First Text) ListOpsMetadataResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListOpsMetadataResponse 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 ListOpsMetadata where
type
AWSResponse ListOpsMetadata =
ListOpsMetadataResponse
request :: ListOpsMetadata -> Request ListOpsMetadata
request = Service -> ListOpsMetadata -> Request ListOpsMetadata
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListOpsMetadata
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListOpsMetadata)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListOpsMetadata))
-> Logger
-> Service
-> Proxy ListOpsMetadata
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListOpsMetadata)))
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 (NonEmpty OpsMetadata) -> Int -> ListOpsMetadataResponse
ListOpsMetadataResponse'
(Maybe Text
-> Maybe (NonEmpty OpsMetadata) -> Int -> ListOpsMetadataResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe (NonEmpty OpsMetadata) -> Int -> ListOpsMetadataResponse)
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
"NextToken")
Either
String
(Maybe (NonEmpty OpsMetadata) -> Int -> ListOpsMetadataResponse)
-> Either String (Maybe (NonEmpty OpsMetadata))
-> Either String (Int -> ListOpsMetadataResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (NonEmpty OpsMetadata))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"OpsMetadataList")
Either String (Int -> ListOpsMetadataResponse)
-> Either String Int -> Either String ListOpsMetadataResponse
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 ListOpsMetadata
instance Prelude.NFData ListOpsMetadata
instance Core.ToHeaders ListOpsMetadata where
toHeaders :: ListOpsMetadata -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListOpsMetadata -> 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
"AmazonSSM.ListOpsMetadata" :: 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 ListOpsMetadata where
toJSON :: ListOpsMetadata -> Value
toJSON ListOpsMetadata' {Maybe Natural
Maybe [OpsMetadataFilter]
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
filters :: Maybe [OpsMetadataFilter]
$sel:maxResults:ListOpsMetadata' :: ListOpsMetadata -> Maybe Natural
$sel:nextToken:ListOpsMetadata' :: ListOpsMetadata -> Maybe Text
$sel:filters:ListOpsMetadata' :: ListOpsMetadata -> Maybe [OpsMetadataFilter]
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"Filters" Text -> [OpsMetadataFilter] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([OpsMetadataFilter] -> Pair)
-> Maybe [OpsMetadataFilter] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [OpsMetadataFilter]
filters,
(Text
"NextToken" 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
nextToken,
(Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults
]
)
instance Core.ToPath ListOpsMetadata where
toPath :: ListOpsMetadata -> ByteString
toPath = ByteString -> ListOpsMetadata -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListOpsMetadata where
toQuery :: ListOpsMetadata -> QueryString
toQuery = QueryString -> ListOpsMetadata -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListOpsMetadataResponse = ListOpsMetadataResponse'
{
ListOpsMetadataResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListOpsMetadataResponse -> Maybe (NonEmpty OpsMetadata)
opsMetadataList :: Prelude.Maybe (Prelude.NonEmpty OpsMetadata),
ListOpsMetadataResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListOpsMetadataResponse -> ListOpsMetadataResponse -> Bool
(ListOpsMetadataResponse -> ListOpsMetadataResponse -> Bool)
-> (ListOpsMetadataResponse -> ListOpsMetadataResponse -> Bool)
-> Eq ListOpsMetadataResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListOpsMetadataResponse -> ListOpsMetadataResponse -> Bool
$c/= :: ListOpsMetadataResponse -> ListOpsMetadataResponse -> Bool
== :: ListOpsMetadataResponse -> ListOpsMetadataResponse -> Bool
$c== :: ListOpsMetadataResponse -> ListOpsMetadataResponse -> Bool
Prelude.Eq, ReadPrec [ListOpsMetadataResponse]
ReadPrec ListOpsMetadataResponse
Int -> ReadS ListOpsMetadataResponse
ReadS [ListOpsMetadataResponse]
(Int -> ReadS ListOpsMetadataResponse)
-> ReadS [ListOpsMetadataResponse]
-> ReadPrec ListOpsMetadataResponse
-> ReadPrec [ListOpsMetadataResponse]
-> Read ListOpsMetadataResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListOpsMetadataResponse]
$creadListPrec :: ReadPrec [ListOpsMetadataResponse]
readPrec :: ReadPrec ListOpsMetadataResponse
$creadPrec :: ReadPrec ListOpsMetadataResponse
readList :: ReadS [ListOpsMetadataResponse]
$creadList :: ReadS [ListOpsMetadataResponse]
readsPrec :: Int -> ReadS ListOpsMetadataResponse
$creadsPrec :: Int -> ReadS ListOpsMetadataResponse
Prelude.Read, Int -> ListOpsMetadataResponse -> ShowS
[ListOpsMetadataResponse] -> ShowS
ListOpsMetadataResponse -> String
(Int -> ListOpsMetadataResponse -> ShowS)
-> (ListOpsMetadataResponse -> String)
-> ([ListOpsMetadataResponse] -> ShowS)
-> Show ListOpsMetadataResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListOpsMetadataResponse] -> ShowS
$cshowList :: [ListOpsMetadataResponse] -> ShowS
show :: ListOpsMetadataResponse -> String
$cshow :: ListOpsMetadataResponse -> String
showsPrec :: Int -> ListOpsMetadataResponse -> ShowS
$cshowsPrec :: Int -> ListOpsMetadataResponse -> ShowS
Prelude.Show, (forall x.
ListOpsMetadataResponse -> Rep ListOpsMetadataResponse x)
-> (forall x.
Rep ListOpsMetadataResponse x -> ListOpsMetadataResponse)
-> Generic ListOpsMetadataResponse
forall x. Rep ListOpsMetadataResponse x -> ListOpsMetadataResponse
forall x. ListOpsMetadataResponse -> Rep ListOpsMetadataResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListOpsMetadataResponse x -> ListOpsMetadataResponse
$cfrom :: forall x. ListOpsMetadataResponse -> Rep ListOpsMetadataResponse x
Prelude.Generic)
newListOpsMetadataResponse ::
Prelude.Int ->
ListOpsMetadataResponse
newListOpsMetadataResponse :: Int -> ListOpsMetadataResponse
newListOpsMetadataResponse Int
pHttpStatus_ =
ListOpsMetadataResponse' :: Maybe Text
-> Maybe (NonEmpty OpsMetadata) -> Int -> ListOpsMetadataResponse
ListOpsMetadataResponse'
{ $sel:nextToken:ListOpsMetadataResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:opsMetadataList:ListOpsMetadataResponse' :: Maybe (NonEmpty OpsMetadata)
opsMetadataList = Maybe (NonEmpty OpsMetadata)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListOpsMetadataResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listOpsMetadataResponse_nextToken :: Lens.Lens' ListOpsMetadataResponse (Prelude.Maybe Prelude.Text)
listOpsMetadataResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListOpsMetadataResponse -> f ListOpsMetadataResponse
listOpsMetadataResponse_nextToken = (ListOpsMetadataResponse -> Maybe Text)
-> (ListOpsMetadataResponse
-> Maybe Text -> ListOpsMetadataResponse)
-> Lens' ListOpsMetadataResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOpsMetadataResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListOpsMetadataResponse' :: ListOpsMetadataResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListOpsMetadataResponse
s@ListOpsMetadataResponse' {} Maybe Text
a -> ListOpsMetadataResponse
s {$sel:nextToken:ListOpsMetadataResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListOpsMetadataResponse)
listOpsMetadataResponse_opsMetadataList :: Lens.Lens' ListOpsMetadataResponse (Prelude.Maybe (Prelude.NonEmpty OpsMetadata))
listOpsMetadataResponse_opsMetadataList :: (Maybe (NonEmpty OpsMetadata) -> f (Maybe (NonEmpty OpsMetadata)))
-> ListOpsMetadataResponse -> f ListOpsMetadataResponse
listOpsMetadataResponse_opsMetadataList = (ListOpsMetadataResponse -> Maybe (NonEmpty OpsMetadata))
-> (ListOpsMetadataResponse
-> Maybe (NonEmpty OpsMetadata) -> ListOpsMetadataResponse)
-> Lens' ListOpsMetadataResponse (Maybe (NonEmpty OpsMetadata))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOpsMetadataResponse' {Maybe (NonEmpty OpsMetadata)
opsMetadataList :: Maybe (NonEmpty OpsMetadata)
$sel:opsMetadataList:ListOpsMetadataResponse' :: ListOpsMetadataResponse -> Maybe (NonEmpty OpsMetadata)
opsMetadataList} -> Maybe (NonEmpty OpsMetadata)
opsMetadataList) (\s :: ListOpsMetadataResponse
s@ListOpsMetadataResponse' {} Maybe (NonEmpty OpsMetadata)
a -> ListOpsMetadataResponse
s {$sel:opsMetadataList:ListOpsMetadataResponse' :: Maybe (NonEmpty OpsMetadata)
opsMetadataList = Maybe (NonEmpty OpsMetadata)
a} :: ListOpsMetadataResponse) ((Maybe (NonEmpty OpsMetadata) -> f (Maybe (NonEmpty OpsMetadata)))
-> ListOpsMetadataResponse -> f ListOpsMetadataResponse)
-> ((Maybe (NonEmpty OpsMetadata)
-> f (Maybe (NonEmpty OpsMetadata)))
-> Maybe (NonEmpty OpsMetadata)
-> f (Maybe (NonEmpty OpsMetadata)))
-> (Maybe (NonEmpty OpsMetadata)
-> f (Maybe (NonEmpty OpsMetadata)))
-> ListOpsMetadataResponse
-> f ListOpsMetadataResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty OpsMetadata)
(NonEmpty OpsMetadata)
(NonEmpty OpsMetadata)
(NonEmpty OpsMetadata)
-> Iso
(Maybe (NonEmpty OpsMetadata))
(Maybe (NonEmpty OpsMetadata))
(Maybe (NonEmpty OpsMetadata))
(Maybe (NonEmpty OpsMetadata))
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
(NonEmpty OpsMetadata)
(NonEmpty OpsMetadata)
(NonEmpty OpsMetadata)
(NonEmpty OpsMetadata)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listOpsMetadataResponse_httpStatus :: Lens.Lens' ListOpsMetadataResponse Prelude.Int
listOpsMetadataResponse_httpStatus :: (Int -> f Int)
-> ListOpsMetadataResponse -> f ListOpsMetadataResponse
listOpsMetadataResponse_httpStatus = (ListOpsMetadataResponse -> Int)
-> (ListOpsMetadataResponse -> Int -> ListOpsMetadataResponse)
-> Lens ListOpsMetadataResponse ListOpsMetadataResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOpsMetadataResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListOpsMetadataResponse' :: ListOpsMetadataResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListOpsMetadataResponse
s@ListOpsMetadataResponse' {} Int
a -> ListOpsMetadataResponse
s {$sel:httpStatus:ListOpsMetadataResponse' :: Int
httpStatus = Int
a} :: ListOpsMetadataResponse)
instance Prelude.NFData ListOpsMetadataResponse