module Stratosphere.WorkspacesInstances.WorkspaceInstance.InstanceMaintenanceOptionsRequestProperty (
        InstanceMaintenanceOptionsRequestProperty(..),
        mkInstanceMaintenanceOptionsRequestProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data InstanceMaintenanceOptionsRequestProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspacesinstances-workspaceinstance-instancemaintenanceoptionsrequest.html>
    InstanceMaintenanceOptionsRequestProperty {InstanceMaintenanceOptionsRequestProperty -> ()
haddock_workaround_ :: (),
                                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspacesinstances-workspaceinstance-instancemaintenanceoptionsrequest.html#cfn-workspacesinstances-workspaceinstance-instancemaintenanceoptionsrequest-autorecovery>
                                               InstanceMaintenanceOptionsRequestProperty -> Maybe (Value Text)
autoRecovery :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (InstanceMaintenanceOptionsRequestProperty
-> InstanceMaintenanceOptionsRequestProperty -> Bool
(InstanceMaintenanceOptionsRequestProperty
 -> InstanceMaintenanceOptionsRequestProperty -> Bool)
-> (InstanceMaintenanceOptionsRequestProperty
    -> InstanceMaintenanceOptionsRequestProperty -> Bool)
-> Eq InstanceMaintenanceOptionsRequestProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: InstanceMaintenanceOptionsRequestProperty
-> InstanceMaintenanceOptionsRequestProperty -> Bool
== :: InstanceMaintenanceOptionsRequestProperty
-> InstanceMaintenanceOptionsRequestProperty -> Bool
$c/= :: InstanceMaintenanceOptionsRequestProperty
-> InstanceMaintenanceOptionsRequestProperty -> Bool
/= :: InstanceMaintenanceOptionsRequestProperty
-> InstanceMaintenanceOptionsRequestProperty -> Bool
Prelude.Eq, Int -> InstanceMaintenanceOptionsRequestProperty -> ShowS
[InstanceMaintenanceOptionsRequestProperty] -> ShowS
InstanceMaintenanceOptionsRequestProperty -> String
(Int -> InstanceMaintenanceOptionsRequestProperty -> ShowS)
-> (InstanceMaintenanceOptionsRequestProperty -> String)
-> ([InstanceMaintenanceOptionsRequestProperty] -> ShowS)
-> Show InstanceMaintenanceOptionsRequestProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> InstanceMaintenanceOptionsRequestProperty -> ShowS
showsPrec :: Int -> InstanceMaintenanceOptionsRequestProperty -> ShowS
$cshow :: InstanceMaintenanceOptionsRequestProperty -> String
show :: InstanceMaintenanceOptionsRequestProperty -> String
$cshowList :: [InstanceMaintenanceOptionsRequestProperty] -> ShowS
showList :: [InstanceMaintenanceOptionsRequestProperty] -> ShowS
Prelude.Show)
mkInstanceMaintenanceOptionsRequestProperty ::
  InstanceMaintenanceOptionsRequestProperty
mkInstanceMaintenanceOptionsRequestProperty :: InstanceMaintenanceOptionsRequestProperty
mkInstanceMaintenanceOptionsRequestProperty
  = InstanceMaintenanceOptionsRequestProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), autoRecovery :: Maybe (Value Text)
autoRecovery = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties InstanceMaintenanceOptionsRequestProperty where
  toResourceProperties :: InstanceMaintenanceOptionsRequestProperty -> ResourceProperties
toResourceProperties InstanceMaintenanceOptionsRequestProperty {Maybe (Value Text)
()
haddock_workaround_ :: InstanceMaintenanceOptionsRequestProperty -> ()
autoRecovery :: InstanceMaintenanceOptionsRequestProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
autoRecovery :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::WorkspacesInstances::WorkspaceInstance.InstanceMaintenanceOptionsRequest",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                           [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AutoRecovery" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
autoRecovery])}
instance JSON.ToJSON InstanceMaintenanceOptionsRequestProperty where
  toJSON :: InstanceMaintenanceOptionsRequestProperty -> Value
toJSON InstanceMaintenanceOptionsRequestProperty {Maybe (Value Text)
()
haddock_workaround_ :: InstanceMaintenanceOptionsRequestProperty -> ()
autoRecovery :: InstanceMaintenanceOptionsRequestProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
autoRecovery :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
              [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AutoRecovery" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
autoRecovery]))
instance Property "AutoRecovery" InstanceMaintenanceOptionsRequestProperty where
  type PropertyType "AutoRecovery" InstanceMaintenanceOptionsRequestProperty = Value Prelude.Text
  set :: PropertyType
  "AutoRecovery" InstanceMaintenanceOptionsRequestProperty
-> InstanceMaintenanceOptionsRequestProperty
-> InstanceMaintenanceOptionsRequestProperty
set PropertyType
  "AutoRecovery" InstanceMaintenanceOptionsRequestProperty
newValue InstanceMaintenanceOptionsRequestProperty {Maybe (Value Text)
()
haddock_workaround_ :: InstanceMaintenanceOptionsRequestProperty -> ()
autoRecovery :: InstanceMaintenanceOptionsRequestProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
autoRecovery :: Maybe (Value Text)
..}
    = InstanceMaintenanceOptionsRequestProperty
        {autoRecovery :: Maybe (Value Text)
autoRecovery = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "AutoRecovery" InstanceMaintenanceOptionsRequestProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}