-- | 'BundleTask' constructor.
--
-- The fields accessible through corresponding lenses are:
--
-- * 'btBundleId' @::@ 'Text'
--
-- * 'btBundleTaskError' @::@ 'Maybe' 'BundleTaskError'
--
-- * 'btInstanceId' @::@ 'Text'
--
-- * 'btProgress' @::@ 'Text'
--
-- * 'btStartTime' @::@ 'UTCTime'
--
-- * 'btState' @::@ 'BundleTaskState'
--
-- * 'btStorage' @::@ 'Storage'
--
-- * 'btUpdateTime' @::@ 'UTCTime'
--
bundleTask :: Text -- ^ 'btInstanceId'
           -> Text -- ^ 'btBundleId'
           -> BundleTaskState -- ^ 'btState'
           -> UTCTime -- ^ 'btStartTime'
           -> UTCTime -- ^ 'btUpdateTime'
           -> Storage -- ^ 'btStorage'
           -> Text -- ^ 'btProgress'
           -> BundleTask
bundleTask p1 p2 p3 p4 p5 p6 p7 = BundleTask
    { _btInstanceId      = p1
    , _btBundleId        = p2
    , _btState           = p3
    , _btStartTime       = withIso _Time (const id) p4
    , _btUpdateTime      = withIso _Time (const id) p5
    , _btStorage         = p6
    , _btProgress        = p7
    , _btBundleTaskError = Nothing
    }
bundleTask :: Text -- ^ 'btInstanceId'
           -> Text -- ^ 'btBundleId'
           -> BundleTaskState -- ^ 'btState'
           -> UTCTime -- ^ 'btStartTime'
           -> UTCTime -- ^ 'btUpdateTime'
           -> Storage -- ^ 'btStorage'
           -> Text -- ^ 'btProgress'
           -> BundleTask
bundleTask p1 p2 p3 p4 p5 p6 p7 = BundleTask
    { _btInstanceId      = p1
    , _btBundleId        = p2
    , _btState           = p3
    , _btStartTime       = withIso _Time (const id) p4
    , _btUpdateTime      = withIso _Time (const id) p5
    , _btStorage         = p6
    , _btProgress        = p7
    , _btBundleTaskError = Nothing
    }
bundleTask p1 p2 p3 p4 p5 p6 p7 = BundleTask
    { _btInstanceId      = p1
    , _btBundleId        = p2
    , _btState           = p3
    , _btStartTime       = withIso _Time (const id) p4
    , _btUpdateTime      = withIso _Time (const id) p5
    , _btStorage         = p6
    , _btProgress        = p7
    , _btBundleTaskError = Nothing
    }