{-# 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.MediaLive.DescribeSchedule
(
DescribeSchedule (..),
newDescribeSchedule,
describeSchedule_nextToken,
describeSchedule_maxResults,
describeSchedule_channelId,
DescribeScheduleResponse (..),
newDescribeScheduleResponse,
describeScheduleResponse_nextToken,
describeScheduleResponse_scheduleActions,
describeScheduleResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MediaLive.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeSchedule = DescribeSchedule'
{ DescribeSchedule -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeSchedule -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
DescribeSchedule -> Text
channelId :: Prelude.Text
}
deriving (DescribeSchedule -> DescribeSchedule -> Bool
(DescribeSchedule -> DescribeSchedule -> Bool)
-> (DescribeSchedule -> DescribeSchedule -> Bool)
-> Eq DescribeSchedule
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeSchedule -> DescribeSchedule -> Bool
$c/= :: DescribeSchedule -> DescribeSchedule -> Bool
== :: DescribeSchedule -> DescribeSchedule -> Bool
$c== :: DescribeSchedule -> DescribeSchedule -> Bool
Prelude.Eq, ReadPrec [DescribeSchedule]
ReadPrec DescribeSchedule
Int -> ReadS DescribeSchedule
ReadS [DescribeSchedule]
(Int -> ReadS DescribeSchedule)
-> ReadS [DescribeSchedule]
-> ReadPrec DescribeSchedule
-> ReadPrec [DescribeSchedule]
-> Read DescribeSchedule
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeSchedule]
$creadListPrec :: ReadPrec [DescribeSchedule]
readPrec :: ReadPrec DescribeSchedule
$creadPrec :: ReadPrec DescribeSchedule
readList :: ReadS [DescribeSchedule]
$creadList :: ReadS [DescribeSchedule]
readsPrec :: Int -> ReadS DescribeSchedule
$creadsPrec :: Int -> ReadS DescribeSchedule
Prelude.Read, Int -> DescribeSchedule -> ShowS
[DescribeSchedule] -> ShowS
DescribeSchedule -> String
(Int -> DescribeSchedule -> ShowS)
-> (DescribeSchedule -> String)
-> ([DescribeSchedule] -> ShowS)
-> Show DescribeSchedule
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeSchedule] -> ShowS
$cshowList :: [DescribeSchedule] -> ShowS
show :: DescribeSchedule -> String
$cshow :: DescribeSchedule -> String
showsPrec :: Int -> DescribeSchedule -> ShowS
$cshowsPrec :: Int -> DescribeSchedule -> ShowS
Prelude.Show, (forall x. DescribeSchedule -> Rep DescribeSchedule x)
-> (forall x. Rep DescribeSchedule x -> DescribeSchedule)
-> Generic DescribeSchedule
forall x. Rep DescribeSchedule x -> DescribeSchedule
forall x. DescribeSchedule -> Rep DescribeSchedule x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeSchedule x -> DescribeSchedule
$cfrom :: forall x. DescribeSchedule -> Rep DescribeSchedule x
Prelude.Generic)
newDescribeSchedule ::
Prelude.Text ->
DescribeSchedule
newDescribeSchedule :: Text -> DescribeSchedule
newDescribeSchedule Text
pChannelId_ =
DescribeSchedule' :: Maybe Text -> Maybe Natural -> Text -> DescribeSchedule
DescribeSchedule'
{ $sel:nextToken:DescribeSchedule' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:DescribeSchedule' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:channelId:DescribeSchedule' :: Text
channelId = Text
pChannelId_
}
describeSchedule_nextToken :: Lens.Lens' DescribeSchedule (Prelude.Maybe Prelude.Text)
describeSchedule_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeSchedule -> f DescribeSchedule
describeSchedule_nextToken = (DescribeSchedule -> Maybe Text)
-> (DescribeSchedule -> Maybe Text -> DescribeSchedule)
-> Lens DescribeSchedule DescribeSchedule (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSchedule' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeSchedule' :: DescribeSchedule -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeSchedule
s@DescribeSchedule' {} Maybe Text
a -> DescribeSchedule
s {$sel:nextToken:DescribeSchedule' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeSchedule)
describeSchedule_maxResults :: Lens.Lens' DescribeSchedule (Prelude.Maybe Prelude.Natural)
describeSchedule_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> DescribeSchedule -> f DescribeSchedule
describeSchedule_maxResults = (DescribeSchedule -> Maybe Natural)
-> (DescribeSchedule -> Maybe Natural -> DescribeSchedule)
-> Lens
DescribeSchedule DescribeSchedule (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSchedule' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:DescribeSchedule' :: DescribeSchedule -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: DescribeSchedule
s@DescribeSchedule' {} Maybe Natural
a -> DescribeSchedule
s {$sel:maxResults:DescribeSchedule' :: Maybe Natural
maxResults = Maybe Natural
a} :: DescribeSchedule)
describeSchedule_channelId :: Lens.Lens' DescribeSchedule Prelude.Text
describeSchedule_channelId :: (Text -> f Text) -> DescribeSchedule -> f DescribeSchedule
describeSchedule_channelId = (DescribeSchedule -> Text)
-> (DescribeSchedule -> Text -> DescribeSchedule)
-> Lens DescribeSchedule DescribeSchedule Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSchedule' {Text
channelId :: Text
$sel:channelId:DescribeSchedule' :: DescribeSchedule -> Text
channelId} -> Text
channelId) (\s :: DescribeSchedule
s@DescribeSchedule' {} Text
a -> DescribeSchedule
s {$sel:channelId:DescribeSchedule' :: Text
channelId = Text
a} :: DescribeSchedule)
instance Core.AWSPager DescribeSchedule where
page :: DescribeSchedule
-> AWSResponse DescribeSchedule -> Maybe DescribeSchedule
page DescribeSchedule
rq AWSResponse DescribeSchedule
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeSchedule
DescribeScheduleResponse
rs
DescribeScheduleResponse
-> Getting (First Text) DescribeScheduleResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeScheduleResponse
-> Const (First Text) DescribeScheduleResponse
Lens' DescribeScheduleResponse (Maybe Text)
describeScheduleResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeScheduleResponse
-> Const (First Text) DescribeScheduleResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeScheduleResponse 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 DescribeSchedule
forall a. Maybe a
Prelude.Nothing
| Maybe [ScheduleAction] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeSchedule
DescribeScheduleResponse
rs
DescribeScheduleResponse
-> Getting
(First [ScheduleAction]) DescribeScheduleResponse [ScheduleAction]
-> Maybe [ScheduleAction]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [ScheduleAction]
-> Const (First [ScheduleAction]) (Maybe [ScheduleAction]))
-> DescribeScheduleResponse
-> Const (First [ScheduleAction]) DescribeScheduleResponse
Lens' DescribeScheduleResponse (Maybe [ScheduleAction])
describeScheduleResponse_scheduleActions
((Maybe [ScheduleAction]
-> Const (First [ScheduleAction]) (Maybe [ScheduleAction]))
-> DescribeScheduleResponse
-> Const (First [ScheduleAction]) DescribeScheduleResponse)
-> (([ScheduleAction]
-> Const (First [ScheduleAction]) [ScheduleAction])
-> Maybe [ScheduleAction]
-> Const (First [ScheduleAction]) (Maybe [ScheduleAction]))
-> Getting
(First [ScheduleAction]) DescribeScheduleResponse [ScheduleAction]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([ScheduleAction]
-> Const (First [ScheduleAction]) [ScheduleAction])
-> Maybe [ScheduleAction]
-> Const (First [ScheduleAction]) (Maybe [ScheduleAction])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeSchedule
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeSchedule -> Maybe DescribeSchedule
forall a. a -> Maybe a
Prelude.Just (DescribeSchedule -> Maybe DescribeSchedule)
-> DescribeSchedule -> Maybe DescribeSchedule
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeSchedule
rq
DescribeSchedule
-> (DescribeSchedule -> DescribeSchedule) -> DescribeSchedule
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeSchedule -> Identity DescribeSchedule
Lens DescribeSchedule DescribeSchedule (Maybe Text) (Maybe Text)
describeSchedule_nextToken
((Maybe Text -> Identity (Maybe Text))
-> DescribeSchedule -> Identity DescribeSchedule)
-> Maybe Text -> DescribeSchedule -> DescribeSchedule
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeSchedule
DescribeScheduleResponse
rs
DescribeScheduleResponse
-> Getting (First Text) DescribeScheduleResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeScheduleResponse
-> Const (First Text) DescribeScheduleResponse
Lens' DescribeScheduleResponse (Maybe Text)
describeScheduleResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeScheduleResponse
-> Const (First Text) DescribeScheduleResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeScheduleResponse 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 DescribeSchedule where
type
AWSResponse DescribeSchedule =
DescribeScheduleResponse
request :: DescribeSchedule -> Request DescribeSchedule
request = Service -> DescribeSchedule -> Request DescribeSchedule
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeSchedule
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeSchedule)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeSchedule))
-> Logger
-> Service
-> Proxy DescribeSchedule
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeSchedule)))
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 [ScheduleAction] -> Int -> DescribeScheduleResponse
DescribeScheduleResponse'
(Maybe Text
-> Maybe [ScheduleAction] -> Int -> DescribeScheduleResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe [ScheduleAction] -> Int -> DescribeScheduleResponse)
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 [ScheduleAction] -> Int -> DescribeScheduleResponse)
-> Either String (Maybe [ScheduleAction])
-> Either String (Int -> DescribeScheduleResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [ScheduleAction]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"scheduleActions"
Either String (Maybe (Maybe [ScheduleAction]))
-> Maybe [ScheduleAction] -> Either String (Maybe [ScheduleAction])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ScheduleAction]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> DescribeScheduleResponse)
-> Either String Int -> Either String DescribeScheduleResponse
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 DescribeSchedule
instance Prelude.NFData DescribeSchedule
instance Core.ToHeaders DescribeSchedule where
toHeaders :: DescribeSchedule -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeSchedule -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ 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.ToPath DescribeSchedule where
toPath :: DescribeSchedule -> ByteString
toPath DescribeSchedule' {Maybe Natural
Maybe Text
Text
channelId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:channelId:DescribeSchedule' :: DescribeSchedule -> Text
$sel:maxResults:DescribeSchedule' :: DescribeSchedule -> Maybe Natural
$sel:nextToken:DescribeSchedule' :: DescribeSchedule -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/prod/channels/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
channelId, ByteString
"/schedule"]
instance Core.ToQuery DescribeSchedule where
toQuery :: DescribeSchedule -> QueryString
toQuery DescribeSchedule' {Maybe Natural
Maybe Text
Text
channelId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:channelId:DescribeSchedule' :: DescribeSchedule -> Text
$sel:maxResults:DescribeSchedule' :: DescribeSchedule -> Maybe Natural
$sel:nextToken:DescribeSchedule' :: DescribeSchedule -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
]
data DescribeScheduleResponse = DescribeScheduleResponse'
{
DescribeScheduleResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeScheduleResponse -> Maybe [ScheduleAction]
scheduleActions :: Prelude.Maybe [ScheduleAction],
DescribeScheduleResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeScheduleResponse -> DescribeScheduleResponse -> Bool
(DescribeScheduleResponse -> DescribeScheduleResponse -> Bool)
-> (DescribeScheduleResponse -> DescribeScheduleResponse -> Bool)
-> Eq DescribeScheduleResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeScheduleResponse -> DescribeScheduleResponse -> Bool
$c/= :: DescribeScheduleResponse -> DescribeScheduleResponse -> Bool
== :: DescribeScheduleResponse -> DescribeScheduleResponse -> Bool
$c== :: DescribeScheduleResponse -> DescribeScheduleResponse -> Bool
Prelude.Eq, ReadPrec [DescribeScheduleResponse]
ReadPrec DescribeScheduleResponse
Int -> ReadS DescribeScheduleResponse
ReadS [DescribeScheduleResponse]
(Int -> ReadS DescribeScheduleResponse)
-> ReadS [DescribeScheduleResponse]
-> ReadPrec DescribeScheduleResponse
-> ReadPrec [DescribeScheduleResponse]
-> Read DescribeScheduleResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeScheduleResponse]
$creadListPrec :: ReadPrec [DescribeScheduleResponse]
readPrec :: ReadPrec DescribeScheduleResponse
$creadPrec :: ReadPrec DescribeScheduleResponse
readList :: ReadS [DescribeScheduleResponse]
$creadList :: ReadS [DescribeScheduleResponse]
readsPrec :: Int -> ReadS DescribeScheduleResponse
$creadsPrec :: Int -> ReadS DescribeScheduleResponse
Prelude.Read, Int -> DescribeScheduleResponse -> ShowS
[DescribeScheduleResponse] -> ShowS
DescribeScheduleResponse -> String
(Int -> DescribeScheduleResponse -> ShowS)
-> (DescribeScheduleResponse -> String)
-> ([DescribeScheduleResponse] -> ShowS)
-> Show DescribeScheduleResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeScheduleResponse] -> ShowS
$cshowList :: [DescribeScheduleResponse] -> ShowS
show :: DescribeScheduleResponse -> String
$cshow :: DescribeScheduleResponse -> String
showsPrec :: Int -> DescribeScheduleResponse -> ShowS
$cshowsPrec :: Int -> DescribeScheduleResponse -> ShowS
Prelude.Show, (forall x.
DescribeScheduleResponse -> Rep DescribeScheduleResponse x)
-> (forall x.
Rep DescribeScheduleResponse x -> DescribeScheduleResponse)
-> Generic DescribeScheduleResponse
forall x.
Rep DescribeScheduleResponse x -> DescribeScheduleResponse
forall x.
DescribeScheduleResponse -> Rep DescribeScheduleResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeScheduleResponse x -> DescribeScheduleResponse
$cfrom :: forall x.
DescribeScheduleResponse -> Rep DescribeScheduleResponse x
Prelude.Generic)
newDescribeScheduleResponse ::
Prelude.Int ->
DescribeScheduleResponse
newDescribeScheduleResponse :: Int -> DescribeScheduleResponse
newDescribeScheduleResponse Int
pHttpStatus_ =
DescribeScheduleResponse' :: Maybe Text
-> Maybe [ScheduleAction] -> Int -> DescribeScheduleResponse
DescribeScheduleResponse'
{ $sel:nextToken:DescribeScheduleResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:scheduleActions:DescribeScheduleResponse' :: Maybe [ScheduleAction]
scheduleActions = Maybe [ScheduleAction]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeScheduleResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeScheduleResponse_nextToken :: Lens.Lens' DescribeScheduleResponse (Prelude.Maybe Prelude.Text)
describeScheduleResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeScheduleResponse -> f DescribeScheduleResponse
describeScheduleResponse_nextToken = (DescribeScheduleResponse -> Maybe Text)
-> (DescribeScheduleResponse
-> Maybe Text -> DescribeScheduleResponse)
-> Lens' DescribeScheduleResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeScheduleResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeScheduleResponse' :: DescribeScheduleResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeScheduleResponse
s@DescribeScheduleResponse' {} Maybe Text
a -> DescribeScheduleResponse
s {$sel:nextToken:DescribeScheduleResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeScheduleResponse)
describeScheduleResponse_scheduleActions :: Lens.Lens' DescribeScheduleResponse (Prelude.Maybe [ScheduleAction])
describeScheduleResponse_scheduleActions :: (Maybe [ScheduleAction] -> f (Maybe [ScheduleAction]))
-> DescribeScheduleResponse -> f DescribeScheduleResponse
describeScheduleResponse_scheduleActions = (DescribeScheduleResponse -> Maybe [ScheduleAction])
-> (DescribeScheduleResponse
-> Maybe [ScheduleAction] -> DescribeScheduleResponse)
-> Lens' DescribeScheduleResponse (Maybe [ScheduleAction])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeScheduleResponse' {Maybe [ScheduleAction]
scheduleActions :: Maybe [ScheduleAction]
$sel:scheduleActions:DescribeScheduleResponse' :: DescribeScheduleResponse -> Maybe [ScheduleAction]
scheduleActions} -> Maybe [ScheduleAction]
scheduleActions) (\s :: DescribeScheduleResponse
s@DescribeScheduleResponse' {} Maybe [ScheduleAction]
a -> DescribeScheduleResponse
s {$sel:scheduleActions:DescribeScheduleResponse' :: Maybe [ScheduleAction]
scheduleActions = Maybe [ScheduleAction]
a} :: DescribeScheduleResponse) ((Maybe [ScheduleAction] -> f (Maybe [ScheduleAction]))
-> DescribeScheduleResponse -> f DescribeScheduleResponse)
-> ((Maybe [ScheduleAction] -> f (Maybe [ScheduleAction]))
-> Maybe [ScheduleAction] -> f (Maybe [ScheduleAction]))
-> (Maybe [ScheduleAction] -> f (Maybe [ScheduleAction]))
-> DescribeScheduleResponse
-> f DescribeScheduleResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ScheduleAction] [ScheduleAction] [ScheduleAction] [ScheduleAction]
-> Iso
(Maybe [ScheduleAction])
(Maybe [ScheduleAction])
(Maybe [ScheduleAction])
(Maybe [ScheduleAction])
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
[ScheduleAction] [ScheduleAction] [ScheduleAction] [ScheduleAction]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeScheduleResponse_httpStatus :: Lens.Lens' DescribeScheduleResponse Prelude.Int
describeScheduleResponse_httpStatus :: (Int -> f Int)
-> DescribeScheduleResponse -> f DescribeScheduleResponse
describeScheduleResponse_httpStatus = (DescribeScheduleResponse -> Int)
-> (DescribeScheduleResponse -> Int -> DescribeScheduleResponse)
-> Lens DescribeScheduleResponse DescribeScheduleResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeScheduleResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeScheduleResponse' :: DescribeScheduleResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeScheduleResponse
s@DescribeScheduleResponse' {} Int
a -> DescribeScheduleResponse
s {$sel:httpStatus:DescribeScheduleResponse' :: Int
httpStatus = Int
a} :: DescribeScheduleResponse)
instance Prelude.NFData DescribeScheduleResponse