{-# 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 #-}
module Amazonka.SecurityHub.Types.AwsElasticsearchDomainServiceSoftwareOptions where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data AwsElasticsearchDomainServiceSoftwareOptions = AwsElasticsearchDomainServiceSoftwareOptions'
{
AwsElasticsearchDomainServiceSoftwareOptions -> Maybe Text
automatedUpdateDate :: Prelude.Maybe Prelude.Text,
AwsElasticsearchDomainServiceSoftwareOptions -> Maybe Text
currentVersion :: Prelude.Maybe Prelude.Text,
AwsElasticsearchDomainServiceSoftwareOptions -> Maybe Text
updateStatus :: Prelude.Maybe Prelude.Text,
AwsElasticsearchDomainServiceSoftwareOptions -> Maybe Bool
cancellable :: Prelude.Maybe Prelude.Bool,
AwsElasticsearchDomainServiceSoftwareOptions -> Maybe Bool
updateAvailable :: Prelude.Maybe Prelude.Bool,
AwsElasticsearchDomainServiceSoftwareOptions -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
AwsElasticsearchDomainServiceSoftwareOptions -> Maybe Text
newVersion' :: Prelude.Maybe Prelude.Text
}
deriving (AwsElasticsearchDomainServiceSoftwareOptions
-> AwsElasticsearchDomainServiceSoftwareOptions -> Bool
(AwsElasticsearchDomainServiceSoftwareOptions
-> AwsElasticsearchDomainServiceSoftwareOptions -> Bool)
-> (AwsElasticsearchDomainServiceSoftwareOptions
-> AwsElasticsearchDomainServiceSoftwareOptions -> Bool)
-> Eq AwsElasticsearchDomainServiceSoftwareOptions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AwsElasticsearchDomainServiceSoftwareOptions
-> AwsElasticsearchDomainServiceSoftwareOptions -> Bool
$c/= :: AwsElasticsearchDomainServiceSoftwareOptions
-> AwsElasticsearchDomainServiceSoftwareOptions -> Bool
== :: AwsElasticsearchDomainServiceSoftwareOptions
-> AwsElasticsearchDomainServiceSoftwareOptions -> Bool
$c== :: AwsElasticsearchDomainServiceSoftwareOptions
-> AwsElasticsearchDomainServiceSoftwareOptions -> Bool
Prelude.Eq, ReadPrec [AwsElasticsearchDomainServiceSoftwareOptions]
ReadPrec AwsElasticsearchDomainServiceSoftwareOptions
Int -> ReadS AwsElasticsearchDomainServiceSoftwareOptions
ReadS [AwsElasticsearchDomainServiceSoftwareOptions]
(Int -> ReadS AwsElasticsearchDomainServiceSoftwareOptions)
-> ReadS [AwsElasticsearchDomainServiceSoftwareOptions]
-> ReadPrec AwsElasticsearchDomainServiceSoftwareOptions
-> ReadPrec [AwsElasticsearchDomainServiceSoftwareOptions]
-> Read AwsElasticsearchDomainServiceSoftwareOptions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AwsElasticsearchDomainServiceSoftwareOptions]
$creadListPrec :: ReadPrec [AwsElasticsearchDomainServiceSoftwareOptions]
readPrec :: ReadPrec AwsElasticsearchDomainServiceSoftwareOptions
$creadPrec :: ReadPrec AwsElasticsearchDomainServiceSoftwareOptions
readList :: ReadS [AwsElasticsearchDomainServiceSoftwareOptions]
$creadList :: ReadS [AwsElasticsearchDomainServiceSoftwareOptions]
readsPrec :: Int -> ReadS AwsElasticsearchDomainServiceSoftwareOptions
$creadsPrec :: Int -> ReadS AwsElasticsearchDomainServiceSoftwareOptions
Prelude.Read, Int -> AwsElasticsearchDomainServiceSoftwareOptions -> ShowS
[AwsElasticsearchDomainServiceSoftwareOptions] -> ShowS
AwsElasticsearchDomainServiceSoftwareOptions -> String
(Int -> AwsElasticsearchDomainServiceSoftwareOptions -> ShowS)
-> (AwsElasticsearchDomainServiceSoftwareOptions -> String)
-> ([AwsElasticsearchDomainServiceSoftwareOptions] -> ShowS)
-> Show AwsElasticsearchDomainServiceSoftwareOptions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AwsElasticsearchDomainServiceSoftwareOptions] -> ShowS
$cshowList :: [AwsElasticsearchDomainServiceSoftwareOptions] -> ShowS
show :: AwsElasticsearchDomainServiceSoftwareOptions -> String
$cshow :: AwsElasticsearchDomainServiceSoftwareOptions -> String
showsPrec :: Int -> AwsElasticsearchDomainServiceSoftwareOptions -> ShowS
$cshowsPrec :: Int -> AwsElasticsearchDomainServiceSoftwareOptions -> ShowS
Prelude.Show, (forall x.
AwsElasticsearchDomainServiceSoftwareOptions
-> Rep AwsElasticsearchDomainServiceSoftwareOptions x)
-> (forall x.
Rep AwsElasticsearchDomainServiceSoftwareOptions x
-> AwsElasticsearchDomainServiceSoftwareOptions)
-> Generic AwsElasticsearchDomainServiceSoftwareOptions
forall x.
Rep AwsElasticsearchDomainServiceSoftwareOptions x
-> AwsElasticsearchDomainServiceSoftwareOptions
forall x.
AwsElasticsearchDomainServiceSoftwareOptions
-> Rep AwsElasticsearchDomainServiceSoftwareOptions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AwsElasticsearchDomainServiceSoftwareOptions x
-> AwsElasticsearchDomainServiceSoftwareOptions
$cfrom :: forall x.
AwsElasticsearchDomainServiceSoftwareOptions
-> Rep AwsElasticsearchDomainServiceSoftwareOptions x
Prelude.Generic)
newAwsElasticsearchDomainServiceSoftwareOptions ::
AwsElasticsearchDomainServiceSoftwareOptions
newAwsElasticsearchDomainServiceSoftwareOptions :: AwsElasticsearchDomainServiceSoftwareOptions
newAwsElasticsearchDomainServiceSoftwareOptions =
AwsElasticsearchDomainServiceSoftwareOptions' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> AwsElasticsearchDomainServiceSoftwareOptions
AwsElasticsearchDomainServiceSoftwareOptions'
{ $sel:automatedUpdateDate:AwsElasticsearchDomainServiceSoftwareOptions' :: Maybe Text
automatedUpdateDate =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:currentVersion:AwsElasticsearchDomainServiceSoftwareOptions' :: Maybe Text
currentVersion =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:updateStatus:AwsElasticsearchDomainServiceSoftwareOptions' :: Maybe Text
updateStatus =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:cancellable:AwsElasticsearchDomainServiceSoftwareOptions' :: Maybe Bool
cancellable = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:updateAvailable:AwsElasticsearchDomainServiceSoftwareOptions' :: Maybe Bool
updateAvailable =
Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:description:AwsElasticsearchDomainServiceSoftwareOptions' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:newVersion':AwsElasticsearchDomainServiceSoftwareOptions' :: Maybe Text
newVersion' = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
awsElasticsearchDomainServiceSoftwareOptions_automatedUpdateDate :: Lens.Lens' AwsElasticsearchDomainServiceSoftwareOptions (Prelude.Maybe Prelude.Text)
awsElasticsearchDomainServiceSoftwareOptions_automatedUpdateDate :: (Maybe Text -> f (Maybe Text))
-> AwsElasticsearchDomainServiceSoftwareOptions
-> f AwsElasticsearchDomainServiceSoftwareOptions
awsElasticsearchDomainServiceSoftwareOptions_automatedUpdateDate = (AwsElasticsearchDomainServiceSoftwareOptions -> Maybe Text)
-> (AwsElasticsearchDomainServiceSoftwareOptions
-> Maybe Text -> AwsElasticsearchDomainServiceSoftwareOptions)
-> Lens
AwsElasticsearchDomainServiceSoftwareOptions
AwsElasticsearchDomainServiceSoftwareOptions
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsElasticsearchDomainServiceSoftwareOptions' {Maybe Text
automatedUpdateDate :: Maybe Text
$sel:automatedUpdateDate:AwsElasticsearchDomainServiceSoftwareOptions' :: AwsElasticsearchDomainServiceSoftwareOptions -> Maybe Text
automatedUpdateDate} -> Maybe Text
automatedUpdateDate) (\s :: AwsElasticsearchDomainServiceSoftwareOptions
s@AwsElasticsearchDomainServiceSoftwareOptions' {} Maybe Text
a -> AwsElasticsearchDomainServiceSoftwareOptions
s {$sel:automatedUpdateDate:AwsElasticsearchDomainServiceSoftwareOptions' :: Maybe Text
automatedUpdateDate = Maybe Text
a} :: AwsElasticsearchDomainServiceSoftwareOptions)
awsElasticsearchDomainServiceSoftwareOptions_currentVersion :: Lens.Lens' AwsElasticsearchDomainServiceSoftwareOptions (Prelude.Maybe Prelude.Text)
awsElasticsearchDomainServiceSoftwareOptions_currentVersion :: (Maybe Text -> f (Maybe Text))
-> AwsElasticsearchDomainServiceSoftwareOptions
-> f AwsElasticsearchDomainServiceSoftwareOptions
awsElasticsearchDomainServiceSoftwareOptions_currentVersion = (AwsElasticsearchDomainServiceSoftwareOptions -> Maybe Text)
-> (AwsElasticsearchDomainServiceSoftwareOptions
-> Maybe Text -> AwsElasticsearchDomainServiceSoftwareOptions)
-> Lens
AwsElasticsearchDomainServiceSoftwareOptions
AwsElasticsearchDomainServiceSoftwareOptions
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsElasticsearchDomainServiceSoftwareOptions' {Maybe Text
currentVersion :: Maybe Text
$sel:currentVersion:AwsElasticsearchDomainServiceSoftwareOptions' :: AwsElasticsearchDomainServiceSoftwareOptions -> Maybe Text
currentVersion} -> Maybe Text
currentVersion) (\s :: AwsElasticsearchDomainServiceSoftwareOptions
s@AwsElasticsearchDomainServiceSoftwareOptions' {} Maybe Text
a -> AwsElasticsearchDomainServiceSoftwareOptions
s {$sel:currentVersion:AwsElasticsearchDomainServiceSoftwareOptions' :: Maybe Text
currentVersion = Maybe Text
a} :: AwsElasticsearchDomainServiceSoftwareOptions)
awsElasticsearchDomainServiceSoftwareOptions_updateStatus :: Lens.Lens' AwsElasticsearchDomainServiceSoftwareOptions (Prelude.Maybe Prelude.Text)
awsElasticsearchDomainServiceSoftwareOptions_updateStatus :: (Maybe Text -> f (Maybe Text))
-> AwsElasticsearchDomainServiceSoftwareOptions
-> f AwsElasticsearchDomainServiceSoftwareOptions
awsElasticsearchDomainServiceSoftwareOptions_updateStatus = (AwsElasticsearchDomainServiceSoftwareOptions -> Maybe Text)
-> (AwsElasticsearchDomainServiceSoftwareOptions
-> Maybe Text -> AwsElasticsearchDomainServiceSoftwareOptions)
-> Lens
AwsElasticsearchDomainServiceSoftwareOptions
AwsElasticsearchDomainServiceSoftwareOptions
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsElasticsearchDomainServiceSoftwareOptions' {Maybe Text
updateStatus :: Maybe Text
$sel:updateStatus:AwsElasticsearchDomainServiceSoftwareOptions' :: AwsElasticsearchDomainServiceSoftwareOptions -> Maybe Text
updateStatus} -> Maybe Text
updateStatus) (\s :: AwsElasticsearchDomainServiceSoftwareOptions
s@AwsElasticsearchDomainServiceSoftwareOptions' {} Maybe Text
a -> AwsElasticsearchDomainServiceSoftwareOptions
s {$sel:updateStatus:AwsElasticsearchDomainServiceSoftwareOptions' :: Maybe Text
updateStatus = Maybe Text
a} :: AwsElasticsearchDomainServiceSoftwareOptions)
awsElasticsearchDomainServiceSoftwareOptions_cancellable :: Lens.Lens' AwsElasticsearchDomainServiceSoftwareOptions (Prelude.Maybe Prelude.Bool)
awsElasticsearchDomainServiceSoftwareOptions_cancellable :: (Maybe Bool -> f (Maybe Bool))
-> AwsElasticsearchDomainServiceSoftwareOptions
-> f AwsElasticsearchDomainServiceSoftwareOptions
awsElasticsearchDomainServiceSoftwareOptions_cancellable = (AwsElasticsearchDomainServiceSoftwareOptions -> Maybe Bool)
-> (AwsElasticsearchDomainServiceSoftwareOptions
-> Maybe Bool -> AwsElasticsearchDomainServiceSoftwareOptions)
-> Lens
AwsElasticsearchDomainServiceSoftwareOptions
AwsElasticsearchDomainServiceSoftwareOptions
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsElasticsearchDomainServiceSoftwareOptions' {Maybe Bool
cancellable :: Maybe Bool
$sel:cancellable:AwsElasticsearchDomainServiceSoftwareOptions' :: AwsElasticsearchDomainServiceSoftwareOptions -> Maybe Bool
cancellable} -> Maybe Bool
cancellable) (\s :: AwsElasticsearchDomainServiceSoftwareOptions
s@AwsElasticsearchDomainServiceSoftwareOptions' {} Maybe Bool
a -> AwsElasticsearchDomainServiceSoftwareOptions
s {$sel:cancellable:AwsElasticsearchDomainServiceSoftwareOptions' :: Maybe Bool
cancellable = Maybe Bool
a} :: AwsElasticsearchDomainServiceSoftwareOptions)
awsElasticsearchDomainServiceSoftwareOptions_updateAvailable :: Lens.Lens' AwsElasticsearchDomainServiceSoftwareOptions (Prelude.Maybe Prelude.Bool)
awsElasticsearchDomainServiceSoftwareOptions_updateAvailable :: (Maybe Bool -> f (Maybe Bool))
-> AwsElasticsearchDomainServiceSoftwareOptions
-> f AwsElasticsearchDomainServiceSoftwareOptions
awsElasticsearchDomainServiceSoftwareOptions_updateAvailable = (AwsElasticsearchDomainServiceSoftwareOptions -> Maybe Bool)
-> (AwsElasticsearchDomainServiceSoftwareOptions
-> Maybe Bool -> AwsElasticsearchDomainServiceSoftwareOptions)
-> Lens
AwsElasticsearchDomainServiceSoftwareOptions
AwsElasticsearchDomainServiceSoftwareOptions
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsElasticsearchDomainServiceSoftwareOptions' {Maybe Bool
updateAvailable :: Maybe Bool
$sel:updateAvailable:AwsElasticsearchDomainServiceSoftwareOptions' :: AwsElasticsearchDomainServiceSoftwareOptions -> Maybe Bool
updateAvailable} -> Maybe Bool
updateAvailable) (\s :: AwsElasticsearchDomainServiceSoftwareOptions
s@AwsElasticsearchDomainServiceSoftwareOptions' {} Maybe Bool
a -> AwsElasticsearchDomainServiceSoftwareOptions
s {$sel:updateAvailable:AwsElasticsearchDomainServiceSoftwareOptions' :: Maybe Bool
updateAvailable = Maybe Bool
a} :: AwsElasticsearchDomainServiceSoftwareOptions)
awsElasticsearchDomainServiceSoftwareOptions_description :: Lens.Lens' AwsElasticsearchDomainServiceSoftwareOptions (Prelude.Maybe Prelude.Text)
awsElasticsearchDomainServiceSoftwareOptions_description :: (Maybe Text -> f (Maybe Text))
-> AwsElasticsearchDomainServiceSoftwareOptions
-> f AwsElasticsearchDomainServiceSoftwareOptions
awsElasticsearchDomainServiceSoftwareOptions_description = (AwsElasticsearchDomainServiceSoftwareOptions -> Maybe Text)
-> (AwsElasticsearchDomainServiceSoftwareOptions
-> Maybe Text -> AwsElasticsearchDomainServiceSoftwareOptions)
-> Lens
AwsElasticsearchDomainServiceSoftwareOptions
AwsElasticsearchDomainServiceSoftwareOptions
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsElasticsearchDomainServiceSoftwareOptions' {Maybe Text
description :: Maybe Text
$sel:description:AwsElasticsearchDomainServiceSoftwareOptions' :: AwsElasticsearchDomainServiceSoftwareOptions -> Maybe Text
description} -> Maybe Text
description) (\s :: AwsElasticsearchDomainServiceSoftwareOptions
s@AwsElasticsearchDomainServiceSoftwareOptions' {} Maybe Text
a -> AwsElasticsearchDomainServiceSoftwareOptions
s {$sel:description:AwsElasticsearchDomainServiceSoftwareOptions' :: Maybe Text
description = Maybe Text
a} :: AwsElasticsearchDomainServiceSoftwareOptions)
awsElasticsearchDomainServiceSoftwareOptions_newVersion :: Lens.Lens' AwsElasticsearchDomainServiceSoftwareOptions (Prelude.Maybe Prelude.Text)
awsElasticsearchDomainServiceSoftwareOptions_newVersion :: (Maybe Text -> f (Maybe Text))
-> AwsElasticsearchDomainServiceSoftwareOptions
-> f AwsElasticsearchDomainServiceSoftwareOptions
awsElasticsearchDomainServiceSoftwareOptions_newVersion = (AwsElasticsearchDomainServiceSoftwareOptions -> Maybe Text)
-> (AwsElasticsearchDomainServiceSoftwareOptions
-> Maybe Text -> AwsElasticsearchDomainServiceSoftwareOptions)
-> Lens
AwsElasticsearchDomainServiceSoftwareOptions
AwsElasticsearchDomainServiceSoftwareOptions
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsElasticsearchDomainServiceSoftwareOptions' {Maybe Text
newVersion' :: Maybe Text
$sel:newVersion':AwsElasticsearchDomainServiceSoftwareOptions' :: AwsElasticsearchDomainServiceSoftwareOptions -> Maybe Text
newVersion'} -> Maybe Text
newVersion') (\s :: AwsElasticsearchDomainServiceSoftwareOptions
s@AwsElasticsearchDomainServiceSoftwareOptions' {} Maybe Text
a -> AwsElasticsearchDomainServiceSoftwareOptions
s {$sel:newVersion':AwsElasticsearchDomainServiceSoftwareOptions' :: Maybe Text
newVersion' = Maybe Text
a} :: AwsElasticsearchDomainServiceSoftwareOptions)
instance
Core.FromJSON
AwsElasticsearchDomainServiceSoftwareOptions
where
parseJSON :: Value -> Parser AwsElasticsearchDomainServiceSoftwareOptions
parseJSON =
String
-> (Object -> Parser AwsElasticsearchDomainServiceSoftwareOptions)
-> Value
-> Parser AwsElasticsearchDomainServiceSoftwareOptions
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"AwsElasticsearchDomainServiceSoftwareOptions"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> AwsElasticsearchDomainServiceSoftwareOptions
AwsElasticsearchDomainServiceSoftwareOptions'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> AwsElasticsearchDomainServiceSoftwareOptions)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> AwsElasticsearchDomainServiceSoftwareOptions)
forall (f :: * -> *) a b. Functor 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
"AutomatedUpdateDate")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> AwsElasticsearchDomainServiceSoftwareOptions)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> AwsElasticsearchDomainServiceSoftwareOptions)
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 Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> AwsElasticsearchDomainServiceSoftwareOptions)
-> Parser (Maybe Text)
-> Parser
(Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> AwsElasticsearchDomainServiceSoftwareOptions)
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
"UpdateStatus")
Parser
(Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> AwsElasticsearchDomainServiceSoftwareOptions)
-> Parser (Maybe Bool)
-> Parser
(Maybe Bool
-> Maybe Text
-> Maybe Text
-> AwsElasticsearchDomainServiceSoftwareOptions)
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
-> AwsElasticsearchDomainServiceSoftwareOptions)
-> Parser (Maybe Bool)
-> Parser
(Maybe Text
-> Maybe Text -> AwsElasticsearchDomainServiceSoftwareOptions)
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 -> AwsElasticsearchDomainServiceSoftwareOptions)
-> Parser (Maybe Text)
-> Parser
(Maybe Text -> AwsElasticsearchDomainServiceSoftwareOptions)
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 -> AwsElasticsearchDomainServiceSoftwareOptions)
-> Parser (Maybe Text)
-> Parser AwsElasticsearchDomainServiceSoftwareOptions
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
AwsElasticsearchDomainServiceSoftwareOptions
instance
Prelude.NFData
AwsElasticsearchDomainServiceSoftwareOptions
instance
Core.ToJSON
AwsElasticsearchDomainServiceSoftwareOptions
where
toJSON :: AwsElasticsearchDomainServiceSoftwareOptions -> Value
toJSON
AwsElasticsearchDomainServiceSoftwareOptions' {Maybe Bool
Maybe Text
newVersion' :: Maybe Text
description :: Maybe Text
updateAvailable :: Maybe Bool
cancellable :: Maybe Bool
updateStatus :: Maybe Text
currentVersion :: Maybe Text
automatedUpdateDate :: Maybe Text
$sel:newVersion':AwsElasticsearchDomainServiceSoftwareOptions' :: AwsElasticsearchDomainServiceSoftwareOptions -> Maybe Text
$sel:description:AwsElasticsearchDomainServiceSoftwareOptions' :: AwsElasticsearchDomainServiceSoftwareOptions -> Maybe Text
$sel:updateAvailable:AwsElasticsearchDomainServiceSoftwareOptions' :: AwsElasticsearchDomainServiceSoftwareOptions -> Maybe Bool
$sel:cancellable:AwsElasticsearchDomainServiceSoftwareOptions' :: AwsElasticsearchDomainServiceSoftwareOptions -> Maybe Bool
$sel:updateStatus:AwsElasticsearchDomainServiceSoftwareOptions' :: AwsElasticsearchDomainServiceSoftwareOptions -> Maybe Text
$sel:currentVersion:AwsElasticsearchDomainServiceSoftwareOptions' :: AwsElasticsearchDomainServiceSoftwareOptions -> Maybe Text
$sel:automatedUpdateDate:AwsElasticsearchDomainServiceSoftwareOptions' :: AwsElasticsearchDomainServiceSoftwareOptions -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"AutomatedUpdateDate" 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
automatedUpdateDate,
(Text
"CurrentVersion" 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
currentVersion,
(Text
"UpdateStatus" 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
updateStatus,
(Text
"Cancellable" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
cancellable,
(Text
"UpdateAvailable" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
updateAvailable,
(Text
"Description" 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
description,
(Text
"NewVersion" 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
newVersion'
]
)