module Stratosphere.GameLift.GameSessionQueue.PriorityConfigurationProperty (
PriorityConfigurationProperty(..), mkPriorityConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PriorityConfigurationProperty
=
PriorityConfigurationProperty {PriorityConfigurationProperty -> ()
haddock_workaround_ :: (),
PriorityConfigurationProperty -> Maybe (ValueList Text)
locationOrder :: (Prelude.Maybe (ValueList Prelude.Text)),
PriorityConfigurationProperty -> Maybe (ValueList Text)
priorityOrder :: (Prelude.Maybe (ValueList Prelude.Text))}
deriving stock (PriorityConfigurationProperty
-> PriorityConfigurationProperty -> Bool
(PriorityConfigurationProperty
-> PriorityConfigurationProperty -> Bool)
-> (PriorityConfigurationProperty
-> PriorityConfigurationProperty -> Bool)
-> Eq PriorityConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PriorityConfigurationProperty
-> PriorityConfigurationProperty -> Bool
== :: PriorityConfigurationProperty
-> PriorityConfigurationProperty -> Bool
$c/= :: PriorityConfigurationProperty
-> PriorityConfigurationProperty -> Bool
/= :: PriorityConfigurationProperty
-> PriorityConfigurationProperty -> Bool
Prelude.Eq, Int -> PriorityConfigurationProperty -> ShowS
[PriorityConfigurationProperty] -> ShowS
PriorityConfigurationProperty -> String
(Int -> PriorityConfigurationProperty -> ShowS)
-> (PriorityConfigurationProperty -> String)
-> ([PriorityConfigurationProperty] -> ShowS)
-> Show PriorityConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PriorityConfigurationProperty -> ShowS
showsPrec :: Int -> PriorityConfigurationProperty -> ShowS
$cshow :: PriorityConfigurationProperty -> String
show :: PriorityConfigurationProperty -> String
$cshowList :: [PriorityConfigurationProperty] -> ShowS
showList :: [PriorityConfigurationProperty] -> ShowS
Prelude.Show)
mkPriorityConfigurationProperty :: PriorityConfigurationProperty
mkPriorityConfigurationProperty :: PriorityConfigurationProperty
mkPriorityConfigurationProperty
= PriorityConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), locationOrder :: Maybe (ValueList Text)
locationOrder = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
priorityOrder :: Maybe (ValueList Text)
priorityOrder = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties PriorityConfigurationProperty where
toResourceProperties :: PriorityConfigurationProperty -> ResourceProperties
toResourceProperties PriorityConfigurationProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: PriorityConfigurationProperty -> ()
locationOrder :: PriorityConfigurationProperty -> Maybe (ValueList Text)
priorityOrder :: PriorityConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
locationOrder :: Maybe (ValueList Text)
priorityOrder :: Maybe (ValueList Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::GameLift::GameSessionQueue.PriorityConfiguration",
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 -> ValueList 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
"LocationOrder" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
locationOrder,
Key -> ValueList 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
"PriorityOrder" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
priorityOrder])}
instance JSON.ToJSON PriorityConfigurationProperty where
toJSON :: PriorityConfigurationProperty -> Value
toJSON PriorityConfigurationProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: PriorityConfigurationProperty -> ()
locationOrder :: PriorityConfigurationProperty -> Maybe (ValueList Text)
priorityOrder :: PriorityConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
locationOrder :: Maybe (ValueList Text)
priorityOrder :: Maybe (ValueList 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 -> ValueList 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
"LocationOrder" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
locationOrder,
Key -> ValueList 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
"PriorityOrder" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
priorityOrder]))
instance Property "LocationOrder" PriorityConfigurationProperty where
type PropertyType "LocationOrder" PriorityConfigurationProperty = ValueList Prelude.Text
set :: PropertyType "LocationOrder" PriorityConfigurationProperty
-> PriorityConfigurationProperty -> PriorityConfigurationProperty
set PropertyType "LocationOrder" PriorityConfigurationProperty
newValue PriorityConfigurationProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: PriorityConfigurationProperty -> ()
locationOrder :: PriorityConfigurationProperty -> Maybe (ValueList Text)
priorityOrder :: PriorityConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
locationOrder :: Maybe (ValueList Text)
priorityOrder :: Maybe (ValueList Text)
..}
= PriorityConfigurationProperty
{locationOrder :: Maybe (ValueList Text)
locationOrder = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "LocationOrder" PriorityConfigurationProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
priorityOrder :: Maybe (ValueList Text)
haddock_workaround_ :: ()
priorityOrder :: Maybe (ValueList Text)
..}
instance Property "PriorityOrder" PriorityConfigurationProperty where
type PropertyType "PriorityOrder" PriorityConfigurationProperty = ValueList Prelude.Text
set :: PropertyType "PriorityOrder" PriorityConfigurationProperty
-> PriorityConfigurationProperty -> PriorityConfigurationProperty
set PropertyType "PriorityOrder" PriorityConfigurationProperty
newValue PriorityConfigurationProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: PriorityConfigurationProperty -> ()
locationOrder :: PriorityConfigurationProperty -> Maybe (ValueList Text)
priorityOrder :: PriorityConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
locationOrder :: Maybe (ValueList Text)
priorityOrder :: Maybe (ValueList Text)
..}
= PriorityConfigurationProperty
{priorityOrder :: Maybe (ValueList Text)
priorityOrder = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PriorityOrder" PriorityConfigurationProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
locationOrder :: Maybe (ValueList Text)
haddock_workaround_ :: ()
locationOrder :: Maybe (ValueList Text)
..}