module Stratosphere.WorkspacesInstances.WorkspaceInstance.CpuOptionsRequestProperty ( CpuOptionsRequestProperty(..), mkCpuOptionsRequestProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data CpuOptionsRequestProperty = -- | See: CpuOptionsRequestProperty {haddock_workaround_ :: (), -- | See: coreCount :: (Prelude.Maybe (Value Prelude.Integer)), -- | See: threadsPerCore :: (Prelude.Maybe (Value Prelude.Integer))} deriving stock (Prelude.Eq, Prelude.Show) mkCpuOptionsRequestProperty :: CpuOptionsRequestProperty mkCpuOptionsRequestProperty = CpuOptionsRequestProperty {haddock_workaround_ = (), coreCount = Prelude.Nothing, threadsPerCore = Prelude.Nothing} instance ToResourceProperties CpuOptionsRequestProperty where toResourceProperties CpuOptionsRequestProperty {..} = ResourceProperties {awsType = "AWS::WorkspacesInstances::WorkspaceInstance.CpuOptionsRequest", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "CoreCount" Prelude.<$> coreCount, (JSON..=) "ThreadsPerCore" Prelude.<$> threadsPerCore])} instance JSON.ToJSON CpuOptionsRequestProperty where toJSON CpuOptionsRequestProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "CoreCount" Prelude.<$> coreCount, (JSON..=) "ThreadsPerCore" Prelude.<$> threadsPerCore])) instance Property "CoreCount" CpuOptionsRequestProperty where type PropertyType "CoreCount" CpuOptionsRequestProperty = Value Prelude.Integer set newValue CpuOptionsRequestProperty {..} = CpuOptionsRequestProperty {coreCount = Prelude.pure newValue, ..} instance Property "ThreadsPerCore" CpuOptionsRequestProperty where type PropertyType "ThreadsPerCore" CpuOptionsRequestProperty = Value Prelude.Integer set newValue CpuOptionsRequestProperty {..} = CpuOptionsRequestProperty {threadsPerCore = Prelude.pure newValue, ..}