{-# 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.Redshift.DescribeClusterTracks
(
DescribeClusterTracks (..),
newDescribeClusterTracks,
describeClusterTracks_maintenanceTrackName,
describeClusterTracks_marker,
describeClusterTracks_maxRecords,
DescribeClusterTracksResponse (..),
newDescribeClusterTracksResponse,
describeClusterTracksResponse_maintenanceTracks,
describeClusterTracksResponse_marker,
describeClusterTracksResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.Redshift.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeClusterTracks = DescribeClusterTracks'
{
DescribeClusterTracks -> Maybe Text
maintenanceTrackName :: Prelude.Maybe Prelude.Text,
DescribeClusterTracks -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeClusterTracks -> Maybe Int
maxRecords :: Prelude.Maybe Prelude.Int
}
deriving (DescribeClusterTracks -> DescribeClusterTracks -> Bool
(DescribeClusterTracks -> DescribeClusterTracks -> Bool)
-> (DescribeClusterTracks -> DescribeClusterTracks -> Bool)
-> Eq DescribeClusterTracks
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeClusterTracks -> DescribeClusterTracks -> Bool
$c/= :: DescribeClusterTracks -> DescribeClusterTracks -> Bool
== :: DescribeClusterTracks -> DescribeClusterTracks -> Bool
$c== :: DescribeClusterTracks -> DescribeClusterTracks -> Bool
Prelude.Eq, ReadPrec [DescribeClusterTracks]
ReadPrec DescribeClusterTracks
Int -> ReadS DescribeClusterTracks
ReadS [DescribeClusterTracks]
(Int -> ReadS DescribeClusterTracks)
-> ReadS [DescribeClusterTracks]
-> ReadPrec DescribeClusterTracks
-> ReadPrec [DescribeClusterTracks]
-> Read DescribeClusterTracks
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeClusterTracks]
$creadListPrec :: ReadPrec [DescribeClusterTracks]
readPrec :: ReadPrec DescribeClusterTracks
$creadPrec :: ReadPrec DescribeClusterTracks
readList :: ReadS [DescribeClusterTracks]
$creadList :: ReadS [DescribeClusterTracks]
readsPrec :: Int -> ReadS DescribeClusterTracks
$creadsPrec :: Int -> ReadS DescribeClusterTracks
Prelude.Read, Int -> DescribeClusterTracks -> ShowS
[DescribeClusterTracks] -> ShowS
DescribeClusterTracks -> String
(Int -> DescribeClusterTracks -> ShowS)
-> (DescribeClusterTracks -> String)
-> ([DescribeClusterTracks] -> ShowS)
-> Show DescribeClusterTracks
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeClusterTracks] -> ShowS
$cshowList :: [DescribeClusterTracks] -> ShowS
show :: DescribeClusterTracks -> String
$cshow :: DescribeClusterTracks -> String
showsPrec :: Int -> DescribeClusterTracks -> ShowS
$cshowsPrec :: Int -> DescribeClusterTracks -> ShowS
Prelude.Show, (forall x. DescribeClusterTracks -> Rep DescribeClusterTracks x)
-> (forall x. Rep DescribeClusterTracks x -> DescribeClusterTracks)
-> Generic DescribeClusterTracks
forall x. Rep DescribeClusterTracks x -> DescribeClusterTracks
forall x. DescribeClusterTracks -> Rep DescribeClusterTracks x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeClusterTracks x -> DescribeClusterTracks
$cfrom :: forall x. DescribeClusterTracks -> Rep DescribeClusterTracks x
Prelude.Generic)
newDescribeClusterTracks ::
DescribeClusterTracks
newDescribeClusterTracks :: DescribeClusterTracks
newDescribeClusterTracks =
DescribeClusterTracks' :: Maybe Text -> Maybe Text -> Maybe Int -> DescribeClusterTracks
DescribeClusterTracks'
{ $sel:maintenanceTrackName:DescribeClusterTracks' :: Maybe Text
maintenanceTrackName =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:marker:DescribeClusterTracks' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxRecords:DescribeClusterTracks' :: Maybe Int
maxRecords = Maybe Int
forall a. Maybe a
Prelude.Nothing
}
describeClusterTracks_maintenanceTrackName :: Lens.Lens' DescribeClusterTracks (Prelude.Maybe Prelude.Text)
describeClusterTracks_maintenanceTrackName :: (Maybe Text -> f (Maybe Text))
-> DescribeClusterTracks -> f DescribeClusterTracks
describeClusterTracks_maintenanceTrackName = (DescribeClusterTracks -> Maybe Text)
-> (DescribeClusterTracks -> Maybe Text -> DescribeClusterTracks)
-> Lens
DescribeClusterTracks
DescribeClusterTracks
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClusterTracks' {Maybe Text
maintenanceTrackName :: Maybe Text
$sel:maintenanceTrackName:DescribeClusterTracks' :: DescribeClusterTracks -> Maybe Text
maintenanceTrackName} -> Maybe Text
maintenanceTrackName) (\s :: DescribeClusterTracks
s@DescribeClusterTracks' {} Maybe Text
a -> DescribeClusterTracks
s {$sel:maintenanceTrackName:DescribeClusterTracks' :: Maybe Text
maintenanceTrackName = Maybe Text
a} :: DescribeClusterTracks)
describeClusterTracks_marker :: Lens.Lens' DescribeClusterTracks (Prelude.Maybe Prelude.Text)
describeClusterTracks_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeClusterTracks -> f DescribeClusterTracks
describeClusterTracks_marker = (DescribeClusterTracks -> Maybe Text)
-> (DescribeClusterTracks -> Maybe Text -> DescribeClusterTracks)
-> Lens
DescribeClusterTracks
DescribeClusterTracks
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClusterTracks' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeClusterTracks' :: DescribeClusterTracks -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeClusterTracks
s@DescribeClusterTracks' {} Maybe Text
a -> DescribeClusterTracks
s {$sel:marker:DescribeClusterTracks' :: Maybe Text
marker = Maybe Text
a} :: DescribeClusterTracks)
describeClusterTracks_maxRecords :: Lens.Lens' DescribeClusterTracks (Prelude.Maybe Prelude.Int)
describeClusterTracks_maxRecords :: (Maybe Int -> f (Maybe Int))
-> DescribeClusterTracks -> f DescribeClusterTracks
describeClusterTracks_maxRecords = (DescribeClusterTracks -> Maybe Int)
-> (DescribeClusterTracks -> Maybe Int -> DescribeClusterTracks)
-> Lens
DescribeClusterTracks DescribeClusterTracks (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClusterTracks' {Maybe Int
maxRecords :: Maybe Int
$sel:maxRecords:DescribeClusterTracks' :: DescribeClusterTracks -> Maybe Int
maxRecords} -> Maybe Int
maxRecords) (\s :: DescribeClusterTracks
s@DescribeClusterTracks' {} Maybe Int
a -> DescribeClusterTracks
s {$sel:maxRecords:DescribeClusterTracks' :: Maybe Int
maxRecords = Maybe Int
a} :: DescribeClusterTracks)
instance Core.AWSPager DescribeClusterTracks where
page :: DescribeClusterTracks
-> AWSResponse DescribeClusterTracks -> Maybe DescribeClusterTracks
page DescribeClusterTracks
rq AWSResponse DescribeClusterTracks
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeClusterTracks
DescribeClusterTracksResponse
rs
DescribeClusterTracksResponse
-> Getting (First Text) DescribeClusterTracksResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeClusterTracksResponse
-> Const (First Text) DescribeClusterTracksResponse
Lens' DescribeClusterTracksResponse (Maybe Text)
describeClusterTracksResponse_marker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeClusterTracksResponse
-> Const (First Text) DescribeClusterTracksResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeClusterTracksResponse 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 DescribeClusterTracks
forall a. Maybe a
Prelude.Nothing
| Maybe [MaintenanceTrack] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeClusterTracks
DescribeClusterTracksResponse
rs
DescribeClusterTracksResponse
-> Getting
(First [MaintenanceTrack])
DescribeClusterTracksResponse
[MaintenanceTrack]
-> Maybe [MaintenanceTrack]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [MaintenanceTrack]
-> Const (First [MaintenanceTrack]) (Maybe [MaintenanceTrack]))
-> DescribeClusterTracksResponse
-> Const (First [MaintenanceTrack]) DescribeClusterTracksResponse
Lens' DescribeClusterTracksResponse (Maybe [MaintenanceTrack])
describeClusterTracksResponse_maintenanceTracks
((Maybe [MaintenanceTrack]
-> Const (First [MaintenanceTrack]) (Maybe [MaintenanceTrack]))
-> DescribeClusterTracksResponse
-> Const (First [MaintenanceTrack]) DescribeClusterTracksResponse)
-> (([MaintenanceTrack]
-> Const (First [MaintenanceTrack]) [MaintenanceTrack])
-> Maybe [MaintenanceTrack]
-> Const (First [MaintenanceTrack]) (Maybe [MaintenanceTrack]))
-> Getting
(First [MaintenanceTrack])
DescribeClusterTracksResponse
[MaintenanceTrack]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([MaintenanceTrack]
-> Const (First [MaintenanceTrack]) [MaintenanceTrack])
-> Maybe [MaintenanceTrack]
-> Const (First [MaintenanceTrack]) (Maybe [MaintenanceTrack])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeClusterTracks
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeClusterTracks -> Maybe DescribeClusterTracks
forall a. a -> Maybe a
Prelude.Just (DescribeClusterTracks -> Maybe DescribeClusterTracks)
-> DescribeClusterTracks -> Maybe DescribeClusterTracks
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeClusterTracks
rq
DescribeClusterTracks
-> (DescribeClusterTracks -> DescribeClusterTracks)
-> DescribeClusterTracks
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeClusterTracks -> Identity DescribeClusterTracks
Lens
DescribeClusterTracks
DescribeClusterTracks
(Maybe Text)
(Maybe Text)
describeClusterTracks_marker
((Maybe Text -> Identity (Maybe Text))
-> DescribeClusterTracks -> Identity DescribeClusterTracks)
-> Maybe Text -> DescribeClusterTracks -> DescribeClusterTracks
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeClusterTracks
DescribeClusterTracksResponse
rs
DescribeClusterTracksResponse
-> Getting (First Text) DescribeClusterTracksResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeClusterTracksResponse
-> Const (First Text) DescribeClusterTracksResponse
Lens' DescribeClusterTracksResponse (Maybe Text)
describeClusterTracksResponse_marker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeClusterTracksResponse
-> Const (First Text) DescribeClusterTracksResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeClusterTracksResponse 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 DescribeClusterTracks where
type
AWSResponse DescribeClusterTracks =
DescribeClusterTracksResponse
request :: DescribeClusterTracks -> Request DescribeClusterTracks
request = Service -> DescribeClusterTracks -> Request DescribeClusterTracks
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeClusterTracks
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeClusterTracks)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse DescribeClusterTracks))
-> Logger
-> Service
-> Proxy DescribeClusterTracks
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeClusterTracks)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
-> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
Text
"DescribeClusterTracksResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe [MaintenanceTrack]
-> Maybe Text -> Int -> DescribeClusterTracksResponse
DescribeClusterTracksResponse'
(Maybe [MaintenanceTrack]
-> Maybe Text -> Int -> DescribeClusterTracksResponse)
-> Either String (Maybe [MaintenanceTrack])
-> Either
String (Maybe Text -> Int -> DescribeClusterTracksResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( [Node]
x [Node] -> Text -> Either String (Maybe [Node])
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"MaintenanceTracks"
Either String (Maybe [Node]) -> [Node] -> Either String [Node]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Node]
forall a. Monoid a => a
Prelude.mempty
Either String [Node]
-> ([Node] -> Either String (Maybe [MaintenanceTrack]))
-> Either String (Maybe [MaintenanceTrack])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [MaintenanceTrack])
-> [Node] -> Either String (Maybe [MaintenanceTrack])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [MaintenanceTrack]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"MaintenanceTrack")
)
Either String (Maybe Text -> Int -> DescribeClusterTracksResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeClusterTracksResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Marker")
Either String (Int -> DescribeClusterTracksResponse)
-> Either String Int -> Either String DescribeClusterTracksResponse
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 DescribeClusterTracks
instance Prelude.NFData DescribeClusterTracks
instance Core.ToHeaders DescribeClusterTracks where
toHeaders :: DescribeClusterTracks -> ResponseHeaders
toHeaders = ResponseHeaders -> DescribeClusterTracks -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath DescribeClusterTracks where
toPath :: DescribeClusterTracks -> ByteString
toPath = ByteString -> DescribeClusterTracks -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeClusterTracks where
toQuery :: DescribeClusterTracks -> QueryString
toQuery DescribeClusterTracks' {Maybe Int
Maybe Text
maxRecords :: Maybe Int
marker :: Maybe Text
maintenanceTrackName :: Maybe Text
$sel:maxRecords:DescribeClusterTracks' :: DescribeClusterTracks -> Maybe Int
$sel:marker:DescribeClusterTracks' :: DescribeClusterTracks -> Maybe Text
$sel:maintenanceTrackName:DescribeClusterTracks' :: DescribeClusterTracks -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"DescribeClusterTracks" :: Prelude.ByteString),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2012-12-01" :: Prelude.ByteString),
ByteString
"MaintenanceTrackName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
maintenanceTrackName,
ByteString
"Marker" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
marker,
ByteString
"MaxRecords" ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
maxRecords
]
data DescribeClusterTracksResponse = DescribeClusterTracksResponse'
{
DescribeClusterTracksResponse -> Maybe [MaintenanceTrack]
maintenanceTracks :: Prelude.Maybe [MaintenanceTrack],
DescribeClusterTracksResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeClusterTracksResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeClusterTracksResponse
-> DescribeClusterTracksResponse -> Bool
(DescribeClusterTracksResponse
-> DescribeClusterTracksResponse -> Bool)
-> (DescribeClusterTracksResponse
-> DescribeClusterTracksResponse -> Bool)
-> Eq DescribeClusterTracksResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeClusterTracksResponse
-> DescribeClusterTracksResponse -> Bool
$c/= :: DescribeClusterTracksResponse
-> DescribeClusterTracksResponse -> Bool
== :: DescribeClusterTracksResponse
-> DescribeClusterTracksResponse -> Bool
$c== :: DescribeClusterTracksResponse
-> DescribeClusterTracksResponse -> Bool
Prelude.Eq, ReadPrec [DescribeClusterTracksResponse]
ReadPrec DescribeClusterTracksResponse
Int -> ReadS DescribeClusterTracksResponse
ReadS [DescribeClusterTracksResponse]
(Int -> ReadS DescribeClusterTracksResponse)
-> ReadS [DescribeClusterTracksResponse]
-> ReadPrec DescribeClusterTracksResponse
-> ReadPrec [DescribeClusterTracksResponse]
-> Read DescribeClusterTracksResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeClusterTracksResponse]
$creadListPrec :: ReadPrec [DescribeClusterTracksResponse]
readPrec :: ReadPrec DescribeClusterTracksResponse
$creadPrec :: ReadPrec DescribeClusterTracksResponse
readList :: ReadS [DescribeClusterTracksResponse]
$creadList :: ReadS [DescribeClusterTracksResponse]
readsPrec :: Int -> ReadS DescribeClusterTracksResponse
$creadsPrec :: Int -> ReadS DescribeClusterTracksResponse
Prelude.Read, Int -> DescribeClusterTracksResponse -> ShowS
[DescribeClusterTracksResponse] -> ShowS
DescribeClusterTracksResponse -> String
(Int -> DescribeClusterTracksResponse -> ShowS)
-> (DescribeClusterTracksResponse -> String)
-> ([DescribeClusterTracksResponse] -> ShowS)
-> Show DescribeClusterTracksResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeClusterTracksResponse] -> ShowS
$cshowList :: [DescribeClusterTracksResponse] -> ShowS
show :: DescribeClusterTracksResponse -> String
$cshow :: DescribeClusterTracksResponse -> String
showsPrec :: Int -> DescribeClusterTracksResponse -> ShowS
$cshowsPrec :: Int -> DescribeClusterTracksResponse -> ShowS
Prelude.Show, (forall x.
DescribeClusterTracksResponse
-> Rep DescribeClusterTracksResponse x)
-> (forall x.
Rep DescribeClusterTracksResponse x
-> DescribeClusterTracksResponse)
-> Generic DescribeClusterTracksResponse
forall x.
Rep DescribeClusterTracksResponse x
-> DescribeClusterTracksResponse
forall x.
DescribeClusterTracksResponse
-> Rep DescribeClusterTracksResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeClusterTracksResponse x
-> DescribeClusterTracksResponse
$cfrom :: forall x.
DescribeClusterTracksResponse
-> Rep DescribeClusterTracksResponse x
Prelude.Generic)
newDescribeClusterTracksResponse ::
Prelude.Int ->
DescribeClusterTracksResponse
newDescribeClusterTracksResponse :: Int -> DescribeClusterTracksResponse
newDescribeClusterTracksResponse Int
pHttpStatus_ =
DescribeClusterTracksResponse' :: Maybe [MaintenanceTrack]
-> Maybe Text -> Int -> DescribeClusterTracksResponse
DescribeClusterTracksResponse'
{ $sel:maintenanceTracks:DescribeClusterTracksResponse' :: Maybe [MaintenanceTrack]
maintenanceTracks =
Maybe [MaintenanceTrack]
forall a. Maybe a
Prelude.Nothing,
$sel:marker:DescribeClusterTracksResponse' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeClusterTracksResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeClusterTracksResponse_maintenanceTracks :: Lens.Lens' DescribeClusterTracksResponse (Prelude.Maybe [MaintenanceTrack])
describeClusterTracksResponse_maintenanceTracks :: (Maybe [MaintenanceTrack] -> f (Maybe [MaintenanceTrack]))
-> DescribeClusterTracksResponse -> f DescribeClusterTracksResponse
describeClusterTracksResponse_maintenanceTracks = (DescribeClusterTracksResponse -> Maybe [MaintenanceTrack])
-> (DescribeClusterTracksResponse
-> Maybe [MaintenanceTrack] -> DescribeClusterTracksResponse)
-> Lens' DescribeClusterTracksResponse (Maybe [MaintenanceTrack])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClusterTracksResponse' {Maybe [MaintenanceTrack]
maintenanceTracks :: Maybe [MaintenanceTrack]
$sel:maintenanceTracks:DescribeClusterTracksResponse' :: DescribeClusterTracksResponse -> Maybe [MaintenanceTrack]
maintenanceTracks} -> Maybe [MaintenanceTrack]
maintenanceTracks) (\s :: DescribeClusterTracksResponse
s@DescribeClusterTracksResponse' {} Maybe [MaintenanceTrack]
a -> DescribeClusterTracksResponse
s {$sel:maintenanceTracks:DescribeClusterTracksResponse' :: Maybe [MaintenanceTrack]
maintenanceTracks = Maybe [MaintenanceTrack]
a} :: DescribeClusterTracksResponse) ((Maybe [MaintenanceTrack] -> f (Maybe [MaintenanceTrack]))
-> DescribeClusterTracksResponse
-> f DescribeClusterTracksResponse)
-> ((Maybe [MaintenanceTrack] -> f (Maybe [MaintenanceTrack]))
-> Maybe [MaintenanceTrack] -> f (Maybe [MaintenanceTrack]))
-> (Maybe [MaintenanceTrack] -> f (Maybe [MaintenanceTrack]))
-> DescribeClusterTracksResponse
-> f DescribeClusterTracksResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[MaintenanceTrack]
[MaintenanceTrack]
[MaintenanceTrack]
[MaintenanceTrack]
-> Iso
(Maybe [MaintenanceTrack])
(Maybe [MaintenanceTrack])
(Maybe [MaintenanceTrack])
(Maybe [MaintenanceTrack])
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
[MaintenanceTrack]
[MaintenanceTrack]
[MaintenanceTrack]
[MaintenanceTrack]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeClusterTracksResponse_marker :: Lens.Lens' DescribeClusterTracksResponse (Prelude.Maybe Prelude.Text)
describeClusterTracksResponse_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeClusterTracksResponse -> f DescribeClusterTracksResponse
describeClusterTracksResponse_marker = (DescribeClusterTracksResponse -> Maybe Text)
-> (DescribeClusterTracksResponse
-> Maybe Text -> DescribeClusterTracksResponse)
-> Lens' DescribeClusterTracksResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClusterTracksResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeClusterTracksResponse' :: DescribeClusterTracksResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeClusterTracksResponse
s@DescribeClusterTracksResponse' {} Maybe Text
a -> DescribeClusterTracksResponse
s {$sel:marker:DescribeClusterTracksResponse' :: Maybe Text
marker = Maybe Text
a} :: DescribeClusterTracksResponse)
describeClusterTracksResponse_httpStatus :: Lens.Lens' DescribeClusterTracksResponse Prelude.Int
describeClusterTracksResponse_httpStatus :: (Int -> f Int)
-> DescribeClusterTracksResponse -> f DescribeClusterTracksResponse
describeClusterTracksResponse_httpStatus = (DescribeClusterTracksResponse -> Int)
-> (DescribeClusterTracksResponse
-> Int -> DescribeClusterTracksResponse)
-> Lens
DescribeClusterTracksResponse DescribeClusterTracksResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClusterTracksResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeClusterTracksResponse' :: DescribeClusterTracksResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeClusterTracksResponse
s@DescribeClusterTracksResponse' {} Int
a -> DescribeClusterTracksResponse
s {$sel:httpStatus:DescribeClusterTracksResponse' :: Int
httpStatus = Int
a} :: DescribeClusterTracksResponse)
instance Prelude.NFData DescribeClusterTracksResponse