module Stratosphere.WorkSpaces.WorkspacesPool.ApplicationSettingsProperty (
        ApplicationSettingsProperty(..), mkApplicationSettingsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ApplicationSettingsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspaces-workspacespool-applicationsettings.html>
    ApplicationSettingsProperty {ApplicationSettingsProperty -> ()
haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspaces-workspacespool-applicationsettings.html#cfn-workspaces-workspacespool-applicationsettings-settingsgroup>
                                 ApplicationSettingsProperty -> Maybe (Value Text)
settingsGroup :: (Prelude.Maybe (Value Prelude.Text)),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspaces-workspacespool-applicationsettings.html#cfn-workspaces-workspacespool-applicationsettings-status>
                                 ApplicationSettingsProperty -> Value Text
status :: (Value Prelude.Text)}
  deriving stock (ApplicationSettingsProperty -> ApplicationSettingsProperty -> Bool
(ApplicationSettingsProperty
 -> ApplicationSettingsProperty -> Bool)
-> (ApplicationSettingsProperty
    -> ApplicationSettingsProperty -> Bool)
-> Eq ApplicationSettingsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ApplicationSettingsProperty -> ApplicationSettingsProperty -> Bool
== :: ApplicationSettingsProperty -> ApplicationSettingsProperty -> Bool
$c/= :: ApplicationSettingsProperty -> ApplicationSettingsProperty -> Bool
/= :: ApplicationSettingsProperty -> ApplicationSettingsProperty -> Bool
Prelude.Eq, Int -> ApplicationSettingsProperty -> ShowS
[ApplicationSettingsProperty] -> ShowS
ApplicationSettingsProperty -> String
(Int -> ApplicationSettingsProperty -> ShowS)
-> (ApplicationSettingsProperty -> String)
-> ([ApplicationSettingsProperty] -> ShowS)
-> Show ApplicationSettingsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ApplicationSettingsProperty -> ShowS
showsPrec :: Int -> ApplicationSettingsProperty -> ShowS
$cshow :: ApplicationSettingsProperty -> String
show :: ApplicationSettingsProperty -> String
$cshowList :: [ApplicationSettingsProperty] -> ShowS
showList :: [ApplicationSettingsProperty] -> ShowS
Prelude.Show)
mkApplicationSettingsProperty ::
  Value Prelude.Text -> ApplicationSettingsProperty
mkApplicationSettingsProperty :: Value Text -> ApplicationSettingsProperty
mkApplicationSettingsProperty Value Text
status
  = ApplicationSettingsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), status :: Value Text
status = Value Text
status,
       settingsGroup :: Maybe (Value Text)
settingsGroup = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ApplicationSettingsProperty where
  toResourceProperties :: ApplicationSettingsProperty -> ResourceProperties
toResourceProperties ApplicationSettingsProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ApplicationSettingsProperty -> ()
settingsGroup :: ApplicationSettingsProperty -> Maybe (Value Text)
status :: ApplicationSettingsProperty -> Value Text
haddock_workaround_ :: ()
settingsGroup :: Maybe (Value Text)
status :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::WorkSpaces::WorkspacesPool.ApplicationSettings",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"Status" 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..= Value Text
status]
                           ([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
"SettingsGroup" (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)
settingsGroup]))}
instance JSON.ToJSON ApplicationSettingsProperty where
  toJSON :: ApplicationSettingsProperty -> Value
toJSON ApplicationSettingsProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ApplicationSettingsProperty -> ()
settingsGroup :: ApplicationSettingsProperty -> Maybe (Value Text)
status :: ApplicationSettingsProperty -> Value Text
haddock_workaround_ :: ()
settingsGroup :: Maybe (Value Text)
status :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"Status" 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..= Value Text
status]
              ([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
"SettingsGroup" (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)
settingsGroup])))
instance Property "SettingsGroup" ApplicationSettingsProperty where
  type PropertyType "SettingsGroup" ApplicationSettingsProperty = Value Prelude.Text
  set :: PropertyType "SettingsGroup" ApplicationSettingsProperty
-> ApplicationSettingsProperty -> ApplicationSettingsProperty
set PropertyType "SettingsGroup" ApplicationSettingsProperty
newValue ApplicationSettingsProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ApplicationSettingsProperty -> ()
settingsGroup :: ApplicationSettingsProperty -> Maybe (Value Text)
status :: ApplicationSettingsProperty -> Value Text
haddock_workaround_ :: ()
settingsGroup :: Maybe (Value Text)
status :: Value Text
..}
    = ApplicationSettingsProperty
        {settingsGroup :: Maybe (Value Text)
settingsGroup = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SettingsGroup" ApplicationSettingsProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
status :: Value Text
haddock_workaround_ :: ()
status :: Value Text
..}
instance Property "Status" ApplicationSettingsProperty where
  type PropertyType "Status" ApplicationSettingsProperty = Value Prelude.Text
  set :: PropertyType "Status" ApplicationSettingsProperty
-> ApplicationSettingsProperty -> ApplicationSettingsProperty
set PropertyType "Status" ApplicationSettingsProperty
newValue ApplicationSettingsProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ApplicationSettingsProperty -> ()
settingsGroup :: ApplicationSettingsProperty -> Maybe (Value Text)
status :: ApplicationSettingsProperty -> Value Text
haddock_workaround_ :: ()
settingsGroup :: Maybe (Value Text)
status :: Value Text
..}
    = ApplicationSettingsProperty {status :: Value Text
status = PropertyType "Status" ApplicationSettingsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
settingsGroup :: Maybe (Value Text)
haddock_workaround_ :: ()
settingsGroup :: Maybe (Value Text)
..}