module Stratosphere.WorkSpaces.WorkspacesPool.CapacityProperty (
        CapacityProperty(..), mkCapacityProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CapacityProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspaces-workspacespool-capacity.html>
    CapacityProperty {CapacityProperty -> ()
haddock_workaround_ :: (),
                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspaces-workspacespool-capacity.html#cfn-workspaces-workspacespool-capacity-desiredusersessions>
                      CapacityProperty -> Value Integer
desiredUserSessions :: (Value Prelude.Integer)}
  deriving stock (CapacityProperty -> CapacityProperty -> Bool
(CapacityProperty -> CapacityProperty -> Bool)
-> (CapacityProperty -> CapacityProperty -> Bool)
-> Eq CapacityProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CapacityProperty -> CapacityProperty -> Bool
== :: CapacityProperty -> CapacityProperty -> Bool
$c/= :: CapacityProperty -> CapacityProperty -> Bool
/= :: CapacityProperty -> CapacityProperty -> Bool
Prelude.Eq, Int -> CapacityProperty -> ShowS
[CapacityProperty] -> ShowS
CapacityProperty -> String
(Int -> CapacityProperty -> ShowS)
-> (CapacityProperty -> String)
-> ([CapacityProperty] -> ShowS)
-> Show CapacityProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CapacityProperty -> ShowS
showsPrec :: Int -> CapacityProperty -> ShowS
$cshow :: CapacityProperty -> String
show :: CapacityProperty -> String
$cshowList :: [CapacityProperty] -> ShowS
showList :: [CapacityProperty] -> ShowS
Prelude.Show)
mkCapacityProperty :: Value Prelude.Integer -> CapacityProperty
mkCapacityProperty :: Value Integer -> CapacityProperty
mkCapacityProperty Value Integer
desiredUserSessions
  = CapacityProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       desiredUserSessions :: Value Integer
desiredUserSessions = Value Integer
desiredUserSessions}
instance ToResourceProperties CapacityProperty where
  toResourceProperties :: CapacityProperty -> ResourceProperties
toResourceProperties CapacityProperty {()
Value Integer
haddock_workaround_ :: CapacityProperty -> ()
desiredUserSessions :: CapacityProperty -> Value Integer
haddock_workaround_ :: ()
desiredUserSessions :: Value Integer
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::WorkSpaces::WorkspacesPool.Capacity",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"DesiredUserSessions" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
desiredUserSessions]}
instance JSON.ToJSON CapacityProperty where
  toJSON :: CapacityProperty -> Value
toJSON CapacityProperty {()
Value Integer
haddock_workaround_ :: CapacityProperty -> ()
desiredUserSessions :: CapacityProperty -> Value Integer
haddock_workaround_ :: ()
desiredUserSessions :: Value Integer
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"DesiredUserSessions" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
desiredUserSessions]
instance Property "DesiredUserSessions" CapacityProperty where
  type PropertyType "DesiredUserSessions" CapacityProperty = Value Prelude.Integer
  set :: PropertyType "DesiredUserSessions" CapacityProperty
-> CapacityProperty -> CapacityProperty
set PropertyType "DesiredUserSessions" CapacityProperty
newValue CapacityProperty {()
Value Integer
haddock_workaround_ :: CapacityProperty -> ()
desiredUserSessions :: CapacityProperty -> Value Integer
haddock_workaround_ :: ()
desiredUserSessions :: Value Integer
..}
    = CapacityProperty {desiredUserSessions :: Value Integer
desiredUserSessions = PropertyType "DesiredUserSessions" CapacityProperty
Value Integer
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}