{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.ElasticSearch.Types.ServiceSoftwareOptions
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.ElasticSearch.Types.ServiceSoftwareOptions where

import qualified Amazonka.Core as Core
import Amazonka.ElasticSearch.Types.DeploymentStatus
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | The current options of an Elasticsearch domain service software options.
--
-- /See:/ 'newServiceSoftwareOptions' smart constructor.
data ServiceSoftwareOptions = ServiceSoftwareOptions'
  { -- | Timestamp, in Epoch time, until which you can manually request a service
    -- software update. After this date, we automatically update your service
    -- software.
    ServiceSoftwareOptions -> Maybe POSIX
automatedUpdateDate :: Prelude.Maybe Core.POSIX,
    -- | The current service software version that is present on the domain.
    ServiceSoftwareOptions -> Maybe Text
currentVersion :: Prelude.Maybe Prelude.Text,
    -- | @True@ if a service software is never automatically updated. @False@ if
    -- a service software is automatically updated after @AutomatedUpdateDate@.
    ServiceSoftwareOptions -> Maybe Bool
optionalDeployment :: Prelude.Maybe Prelude.Bool,
    -- | The status of your service software update. This field can take the
    -- following values: @ELIGIBLE@, @PENDING_UPDATE@, @IN_PROGRESS@,
    -- @COMPLETED@, and @NOT_ELIGIBLE@.
    ServiceSoftwareOptions -> Maybe DeploymentStatus
updateStatus :: Prelude.Maybe DeploymentStatus,
    -- | @True@ if you are able to cancel your service software version update.
    -- @False@ if you are not able to cancel your service software version.
    ServiceSoftwareOptions -> Maybe Bool
cancellable :: Prelude.Maybe Prelude.Bool,
    -- | @True@ if you are able to update you service software version. @False@
    -- if you are not able to update your service software version.
    ServiceSoftwareOptions -> Maybe Bool
updateAvailable :: Prelude.Maybe Prelude.Bool,
    -- | The description of the @UpdateStatus@.
    ServiceSoftwareOptions -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The new service software version if one is available.
    ServiceSoftwareOptions -> Maybe Text
newVersion' :: Prelude.Maybe Prelude.Text
  }
  deriving (ServiceSoftwareOptions -> ServiceSoftwareOptions -> Bool
(ServiceSoftwareOptions -> ServiceSoftwareOptions -> Bool)
-> (ServiceSoftwareOptions -> ServiceSoftwareOptions -> Bool)
-> Eq ServiceSoftwareOptions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ServiceSoftwareOptions -> ServiceSoftwareOptions -> Bool
$c/= :: ServiceSoftwareOptions -> ServiceSoftwareOptions -> Bool
== :: ServiceSoftwareOptions -> ServiceSoftwareOptions -> Bool
$c== :: ServiceSoftwareOptions -> ServiceSoftwareOptions -> Bool
Prelude.Eq, ReadPrec [ServiceSoftwareOptions]
ReadPrec ServiceSoftwareOptions
Int -> ReadS ServiceSoftwareOptions
ReadS [ServiceSoftwareOptions]
(Int -> ReadS ServiceSoftwareOptions)
-> ReadS [ServiceSoftwareOptions]
-> ReadPrec ServiceSoftwareOptions
-> ReadPrec [ServiceSoftwareOptions]
-> Read ServiceSoftwareOptions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ServiceSoftwareOptions]
$creadListPrec :: ReadPrec [ServiceSoftwareOptions]
readPrec :: ReadPrec ServiceSoftwareOptions
$creadPrec :: ReadPrec ServiceSoftwareOptions
readList :: ReadS [ServiceSoftwareOptions]
$creadList :: ReadS [ServiceSoftwareOptions]
readsPrec :: Int -> ReadS ServiceSoftwareOptions
$creadsPrec :: Int -> ReadS ServiceSoftwareOptions
Prelude.Read, Int -> ServiceSoftwareOptions -> ShowS
[ServiceSoftwareOptions] -> ShowS
ServiceSoftwareOptions -> String
(Int -> ServiceSoftwareOptions -> ShowS)
-> (ServiceSoftwareOptions -> String)
-> ([ServiceSoftwareOptions] -> ShowS)
-> Show ServiceSoftwareOptions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ServiceSoftwareOptions] -> ShowS
$cshowList :: [ServiceSoftwareOptions] -> ShowS
show :: ServiceSoftwareOptions -> String
$cshow :: ServiceSoftwareOptions -> String
showsPrec :: Int -> ServiceSoftwareOptions -> ShowS
$cshowsPrec :: Int -> ServiceSoftwareOptions -> ShowS
Prelude.Show, (forall x. ServiceSoftwareOptions -> Rep ServiceSoftwareOptions x)
-> (forall x.
    Rep ServiceSoftwareOptions x -> ServiceSoftwareOptions)
-> Generic ServiceSoftwareOptions
forall x. Rep ServiceSoftwareOptions x -> ServiceSoftwareOptions
forall x. ServiceSoftwareOptions -> Rep ServiceSoftwareOptions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ServiceSoftwareOptions x -> ServiceSoftwareOptions
$cfrom :: forall x. ServiceSoftwareOptions -> Rep ServiceSoftwareOptions x
Prelude.Generic)

-- |
-- Create a value of 'ServiceSoftwareOptions' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'automatedUpdateDate', 'serviceSoftwareOptions_automatedUpdateDate' - Timestamp, in Epoch time, until which you can manually request a service
-- software update. After this date, we automatically update your service
-- software.
--
-- 'currentVersion', 'serviceSoftwareOptions_currentVersion' - The current service software version that is present on the domain.
--
-- 'optionalDeployment', 'serviceSoftwareOptions_optionalDeployment' - @True@ if a service software is never automatically updated. @False@ if
-- a service software is automatically updated after @AutomatedUpdateDate@.
--
-- 'updateStatus', 'serviceSoftwareOptions_updateStatus' - The status of your service software update. This field can take the
-- following values: @ELIGIBLE@, @PENDING_UPDATE@, @IN_PROGRESS@,
-- @COMPLETED@, and @NOT_ELIGIBLE@.
--
-- 'cancellable', 'serviceSoftwareOptions_cancellable' - @True@ if you are able to cancel your service software version update.
-- @False@ if you are not able to cancel your service software version.
--
-- 'updateAvailable', 'serviceSoftwareOptions_updateAvailable' - @True@ if you are able to update you service software version. @False@
-- if you are not able to update your service software version.
--
-- 'description', 'serviceSoftwareOptions_description' - The description of the @UpdateStatus@.
--
-- 'newVersion'', 'serviceSoftwareOptions_newVersion' - The new service software version if one is available.
newServiceSoftwareOptions ::
  ServiceSoftwareOptions
newServiceSoftwareOptions :: ServiceSoftwareOptions
newServiceSoftwareOptions =
  ServiceSoftwareOptions' :: Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe DeploymentStatus
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> ServiceSoftwareOptions
ServiceSoftwareOptions'
    { $sel:automatedUpdateDate:ServiceSoftwareOptions' :: Maybe POSIX
automatedUpdateDate =
        Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:currentVersion:ServiceSoftwareOptions' :: Maybe Text
currentVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:optionalDeployment:ServiceSoftwareOptions' :: Maybe Bool
optionalDeployment = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:updateStatus:ServiceSoftwareOptions' :: Maybe DeploymentStatus
updateStatus = Maybe DeploymentStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:cancellable:ServiceSoftwareOptions' :: Maybe Bool
cancellable = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:updateAvailable:ServiceSoftwareOptions' :: Maybe Bool
updateAvailable = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:description:ServiceSoftwareOptions' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:newVersion':ServiceSoftwareOptions' :: Maybe Text
newVersion' = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | Timestamp, in Epoch time, until which you can manually request a service
-- software update. After this date, we automatically update your service
-- software.
serviceSoftwareOptions_automatedUpdateDate :: Lens.Lens' ServiceSoftwareOptions (Prelude.Maybe Prelude.UTCTime)
serviceSoftwareOptions_automatedUpdateDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ServiceSoftwareOptions -> f ServiceSoftwareOptions
serviceSoftwareOptions_automatedUpdateDate = (ServiceSoftwareOptions -> Maybe POSIX)
-> (ServiceSoftwareOptions
    -> Maybe POSIX -> ServiceSoftwareOptions)
-> Lens
     ServiceSoftwareOptions
     ServiceSoftwareOptions
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceSoftwareOptions' {Maybe POSIX
automatedUpdateDate :: Maybe POSIX
$sel:automatedUpdateDate:ServiceSoftwareOptions' :: ServiceSoftwareOptions -> Maybe POSIX
automatedUpdateDate} -> Maybe POSIX
automatedUpdateDate) (\s :: ServiceSoftwareOptions
s@ServiceSoftwareOptions' {} Maybe POSIX
a -> ServiceSoftwareOptions
s {$sel:automatedUpdateDate:ServiceSoftwareOptions' :: Maybe POSIX
automatedUpdateDate = Maybe POSIX
a} :: ServiceSoftwareOptions) ((Maybe POSIX -> f (Maybe POSIX))
 -> ServiceSoftwareOptions -> f ServiceSoftwareOptions)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ServiceSoftwareOptions
-> f ServiceSoftwareOptions
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The current service software version that is present on the domain.
serviceSoftwareOptions_currentVersion :: Lens.Lens' ServiceSoftwareOptions (Prelude.Maybe Prelude.Text)
serviceSoftwareOptions_currentVersion :: (Maybe Text -> f (Maybe Text))
-> ServiceSoftwareOptions -> f ServiceSoftwareOptions
serviceSoftwareOptions_currentVersion = (ServiceSoftwareOptions -> Maybe Text)
-> (ServiceSoftwareOptions -> Maybe Text -> ServiceSoftwareOptions)
-> Lens
     ServiceSoftwareOptions
     ServiceSoftwareOptions
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceSoftwareOptions' {Maybe Text
currentVersion :: Maybe Text
$sel:currentVersion:ServiceSoftwareOptions' :: ServiceSoftwareOptions -> Maybe Text
currentVersion} -> Maybe Text
currentVersion) (\s :: ServiceSoftwareOptions
s@ServiceSoftwareOptions' {} Maybe Text
a -> ServiceSoftwareOptions
s {$sel:currentVersion:ServiceSoftwareOptions' :: Maybe Text
currentVersion = Maybe Text
a} :: ServiceSoftwareOptions)

-- | @True@ if a service software is never automatically updated. @False@ if
-- a service software is automatically updated after @AutomatedUpdateDate@.
serviceSoftwareOptions_optionalDeployment :: Lens.Lens' ServiceSoftwareOptions (Prelude.Maybe Prelude.Bool)
serviceSoftwareOptions_optionalDeployment :: (Maybe Bool -> f (Maybe Bool))
-> ServiceSoftwareOptions -> f ServiceSoftwareOptions
serviceSoftwareOptions_optionalDeployment = (ServiceSoftwareOptions -> Maybe Bool)
-> (ServiceSoftwareOptions -> Maybe Bool -> ServiceSoftwareOptions)
-> Lens
     ServiceSoftwareOptions
     ServiceSoftwareOptions
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceSoftwareOptions' {Maybe Bool
optionalDeployment :: Maybe Bool
$sel:optionalDeployment:ServiceSoftwareOptions' :: ServiceSoftwareOptions -> Maybe Bool
optionalDeployment} -> Maybe Bool
optionalDeployment) (\s :: ServiceSoftwareOptions
s@ServiceSoftwareOptions' {} Maybe Bool
a -> ServiceSoftwareOptions
s {$sel:optionalDeployment:ServiceSoftwareOptions' :: Maybe Bool
optionalDeployment = Maybe Bool
a} :: ServiceSoftwareOptions)

-- | The status of your service software update. This field can take the
-- following values: @ELIGIBLE@, @PENDING_UPDATE@, @IN_PROGRESS@,
-- @COMPLETED@, and @NOT_ELIGIBLE@.
serviceSoftwareOptions_updateStatus :: Lens.Lens' ServiceSoftwareOptions (Prelude.Maybe DeploymentStatus)
serviceSoftwareOptions_updateStatus :: (Maybe DeploymentStatus -> f (Maybe DeploymentStatus))
-> ServiceSoftwareOptions -> f ServiceSoftwareOptions
serviceSoftwareOptions_updateStatus = (ServiceSoftwareOptions -> Maybe DeploymentStatus)
-> (ServiceSoftwareOptions
    -> Maybe DeploymentStatus -> ServiceSoftwareOptions)
-> Lens
     ServiceSoftwareOptions
     ServiceSoftwareOptions
     (Maybe DeploymentStatus)
     (Maybe DeploymentStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceSoftwareOptions' {Maybe DeploymentStatus
updateStatus :: Maybe DeploymentStatus
$sel:updateStatus:ServiceSoftwareOptions' :: ServiceSoftwareOptions -> Maybe DeploymentStatus
updateStatus} -> Maybe DeploymentStatus
updateStatus) (\s :: ServiceSoftwareOptions
s@ServiceSoftwareOptions' {} Maybe DeploymentStatus
a -> ServiceSoftwareOptions
s {$sel:updateStatus:ServiceSoftwareOptions' :: Maybe DeploymentStatus
updateStatus = Maybe DeploymentStatus
a} :: ServiceSoftwareOptions)

-- | @True@ if you are able to cancel your service software version update.
-- @False@ if you are not able to cancel your service software version.
serviceSoftwareOptions_cancellable :: Lens.Lens' ServiceSoftwareOptions (Prelude.Maybe Prelude.Bool)
serviceSoftwareOptions_cancellable :: (Maybe Bool -> f (Maybe Bool))
-> ServiceSoftwareOptions -> f ServiceSoftwareOptions
serviceSoftwareOptions_cancellable = (ServiceSoftwareOptions -> Maybe Bool)
-> (ServiceSoftwareOptions -> Maybe Bool -> ServiceSoftwareOptions)
-> Lens
     ServiceSoftwareOptions
     ServiceSoftwareOptions
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceSoftwareOptions' {Maybe Bool
cancellable :: Maybe Bool
$sel:cancellable:ServiceSoftwareOptions' :: ServiceSoftwareOptions -> Maybe Bool
cancellable} -> Maybe Bool
cancellable) (\s :: ServiceSoftwareOptions
s@ServiceSoftwareOptions' {} Maybe Bool
a -> ServiceSoftwareOptions
s {$sel:cancellable:ServiceSoftwareOptions' :: Maybe Bool
cancellable = Maybe Bool
a} :: ServiceSoftwareOptions)

-- | @True@ if you are able to update you service software version. @False@
-- if you are not able to update your service software version.
serviceSoftwareOptions_updateAvailable :: Lens.Lens' ServiceSoftwareOptions (Prelude.Maybe Prelude.Bool)
serviceSoftwareOptions_updateAvailable :: (Maybe Bool -> f (Maybe Bool))
-> ServiceSoftwareOptions -> f ServiceSoftwareOptions
serviceSoftwareOptions_updateAvailable = (ServiceSoftwareOptions -> Maybe Bool)
-> (ServiceSoftwareOptions -> Maybe Bool -> ServiceSoftwareOptions)
-> Lens
     ServiceSoftwareOptions
     ServiceSoftwareOptions
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceSoftwareOptions' {Maybe Bool
updateAvailable :: Maybe Bool
$sel:updateAvailable:ServiceSoftwareOptions' :: ServiceSoftwareOptions -> Maybe Bool
updateAvailable} -> Maybe Bool
updateAvailable) (\s :: ServiceSoftwareOptions
s@ServiceSoftwareOptions' {} Maybe Bool
a -> ServiceSoftwareOptions
s {$sel:updateAvailable:ServiceSoftwareOptions' :: Maybe Bool
updateAvailable = Maybe Bool
a} :: ServiceSoftwareOptions)

-- | The description of the @UpdateStatus@.
serviceSoftwareOptions_description :: Lens.Lens' ServiceSoftwareOptions (Prelude.Maybe Prelude.Text)
serviceSoftwareOptions_description :: (Maybe Text -> f (Maybe Text))
-> ServiceSoftwareOptions -> f ServiceSoftwareOptions
serviceSoftwareOptions_description = (ServiceSoftwareOptions -> Maybe Text)
-> (ServiceSoftwareOptions -> Maybe Text -> ServiceSoftwareOptions)
-> Lens
     ServiceSoftwareOptions
     ServiceSoftwareOptions
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceSoftwareOptions' {Maybe Text
description :: Maybe Text
$sel:description:ServiceSoftwareOptions' :: ServiceSoftwareOptions -> Maybe Text
description} -> Maybe Text
description) (\s :: ServiceSoftwareOptions
s@ServiceSoftwareOptions' {} Maybe Text
a -> ServiceSoftwareOptions
s {$sel:description:ServiceSoftwareOptions' :: Maybe Text
description = Maybe Text
a} :: ServiceSoftwareOptions)

-- | The new service software version if one is available.
serviceSoftwareOptions_newVersion :: Lens.Lens' ServiceSoftwareOptions (Prelude.Maybe Prelude.Text)
serviceSoftwareOptions_newVersion :: (Maybe Text -> f (Maybe Text))
-> ServiceSoftwareOptions -> f ServiceSoftwareOptions
serviceSoftwareOptions_newVersion = (ServiceSoftwareOptions -> Maybe Text)
-> (ServiceSoftwareOptions -> Maybe Text -> ServiceSoftwareOptions)
-> Lens
     ServiceSoftwareOptions
     ServiceSoftwareOptions
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceSoftwareOptions' {Maybe Text
newVersion' :: Maybe Text
$sel:newVersion':ServiceSoftwareOptions' :: ServiceSoftwareOptions -> Maybe Text
newVersion'} -> Maybe Text
newVersion') (\s :: ServiceSoftwareOptions
s@ServiceSoftwareOptions' {} Maybe Text
a -> ServiceSoftwareOptions
s {$sel:newVersion':ServiceSoftwareOptions' :: Maybe Text
newVersion' = Maybe Text
a} :: ServiceSoftwareOptions)

instance Core.FromJSON ServiceSoftwareOptions where
  parseJSON :: Value -> Parser ServiceSoftwareOptions
parseJSON =
    String
-> (Object -> Parser ServiceSoftwareOptions)
-> Value
-> Parser ServiceSoftwareOptions
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"ServiceSoftwareOptions"
      ( \Object
x ->
          Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe DeploymentStatus
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> ServiceSoftwareOptions
ServiceSoftwareOptions'
            (Maybe POSIX
 -> Maybe Text
 -> Maybe Bool
 -> Maybe DeploymentStatus
 -> Maybe Bool
 -> Maybe Bool
 -> Maybe Text
 -> Maybe Text
 -> ServiceSoftwareOptions)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Text
      -> Maybe Bool
      -> Maybe DeploymentStatus
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> ServiceSoftwareOptions)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"AutomatedUpdateDate")
            Parser
  (Maybe Text
   -> Maybe Bool
   -> Maybe DeploymentStatus
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> ServiceSoftwareOptions)
-> Parser (Maybe Text)
-> Parser
     (Maybe Bool
      -> Maybe DeploymentStatus
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> ServiceSoftwareOptions)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CurrentVersion")
            Parser
  (Maybe Bool
   -> Maybe DeploymentStatus
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> ServiceSoftwareOptions)
-> Parser (Maybe Bool)
-> Parser
     (Maybe DeploymentStatus
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> ServiceSoftwareOptions)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"OptionalDeployment")
            Parser
  (Maybe DeploymentStatus
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> ServiceSoftwareOptions)
-> Parser (Maybe DeploymentStatus)
-> Parser
     (Maybe Bool
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> ServiceSoftwareOptions)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe DeploymentStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"UpdateStatus")
            Parser
  (Maybe Bool
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> ServiceSoftwareOptions)
-> Parser (Maybe Bool)
-> Parser
     (Maybe Bool -> Maybe Text -> Maybe Text -> ServiceSoftwareOptions)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Cancellable")
            Parser
  (Maybe Bool -> Maybe Text -> Maybe Text -> ServiceSoftwareOptions)
-> Parser (Maybe Bool)
-> Parser (Maybe Text -> Maybe Text -> ServiceSoftwareOptions)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"UpdateAvailable")
            Parser (Maybe Text -> Maybe Text -> ServiceSoftwareOptions)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> ServiceSoftwareOptions)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Description")
            Parser (Maybe Text -> ServiceSoftwareOptions)
-> Parser (Maybe Text) -> Parser ServiceSoftwareOptions
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"NewVersion")
      )

instance Prelude.Hashable ServiceSoftwareOptions

instance Prelude.NFData ServiceSoftwareOptions