module Stratosphere.Personalize.Solution.AlgorithmHyperParameterRangesProperty (
        module Exports, AlgorithmHyperParameterRangesProperty(..),
        mkAlgorithmHyperParameterRangesProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Personalize.Solution.CategoricalHyperParameterRangeProperty as Exports
import {-# SOURCE #-} Stratosphere.Personalize.Solution.ContinuousHyperParameterRangeProperty as Exports
import {-# SOURCE #-} Stratosphere.Personalize.Solution.IntegerHyperParameterRangeProperty as Exports
import Stratosphere.ResourceProperties
data AlgorithmHyperParameterRangesProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-personalize-solution-algorithmhyperparameterranges.html>
    AlgorithmHyperParameterRangesProperty {AlgorithmHyperParameterRangesProperty -> ()
haddock_workaround_ :: (),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-personalize-solution-algorithmhyperparameterranges.html#cfn-personalize-solution-algorithmhyperparameterranges-categoricalhyperparameterranges>
                                           AlgorithmHyperParameterRangesProperty
-> Maybe [CategoricalHyperParameterRangeProperty]
categoricalHyperParameterRanges :: (Prelude.Maybe [CategoricalHyperParameterRangeProperty]),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-personalize-solution-algorithmhyperparameterranges.html#cfn-personalize-solution-algorithmhyperparameterranges-continuoushyperparameterranges>
                                           AlgorithmHyperParameterRangesProperty
-> Maybe [ContinuousHyperParameterRangeProperty]
continuousHyperParameterRanges :: (Prelude.Maybe [ContinuousHyperParameterRangeProperty]),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-personalize-solution-algorithmhyperparameterranges.html#cfn-personalize-solution-algorithmhyperparameterranges-integerhyperparameterranges>
                                           AlgorithmHyperParameterRangesProperty
-> Maybe [IntegerHyperParameterRangeProperty]
integerHyperParameterRanges :: (Prelude.Maybe [IntegerHyperParameterRangeProperty])}
  deriving stock (AlgorithmHyperParameterRangesProperty
-> AlgorithmHyperParameterRangesProperty -> Bool
(AlgorithmHyperParameterRangesProperty
 -> AlgorithmHyperParameterRangesProperty -> Bool)
-> (AlgorithmHyperParameterRangesProperty
    -> AlgorithmHyperParameterRangesProperty -> Bool)
-> Eq AlgorithmHyperParameterRangesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AlgorithmHyperParameterRangesProperty
-> AlgorithmHyperParameterRangesProperty -> Bool
== :: AlgorithmHyperParameterRangesProperty
-> AlgorithmHyperParameterRangesProperty -> Bool
$c/= :: AlgorithmHyperParameterRangesProperty
-> AlgorithmHyperParameterRangesProperty -> Bool
/= :: AlgorithmHyperParameterRangesProperty
-> AlgorithmHyperParameterRangesProperty -> Bool
Prelude.Eq, Int -> AlgorithmHyperParameterRangesProperty -> ShowS
[AlgorithmHyperParameterRangesProperty] -> ShowS
AlgorithmHyperParameterRangesProperty -> String
(Int -> AlgorithmHyperParameterRangesProperty -> ShowS)
-> (AlgorithmHyperParameterRangesProperty -> String)
-> ([AlgorithmHyperParameterRangesProperty] -> ShowS)
-> Show AlgorithmHyperParameterRangesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AlgorithmHyperParameterRangesProperty -> ShowS
showsPrec :: Int -> AlgorithmHyperParameterRangesProperty -> ShowS
$cshow :: AlgorithmHyperParameterRangesProperty -> String
show :: AlgorithmHyperParameterRangesProperty -> String
$cshowList :: [AlgorithmHyperParameterRangesProperty] -> ShowS
showList :: [AlgorithmHyperParameterRangesProperty] -> ShowS
Prelude.Show)
mkAlgorithmHyperParameterRangesProperty ::
  AlgorithmHyperParameterRangesProperty
mkAlgorithmHyperParameterRangesProperty :: AlgorithmHyperParameterRangesProperty
mkAlgorithmHyperParameterRangesProperty
  = AlgorithmHyperParameterRangesProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       categoricalHyperParameterRanges :: Maybe [CategoricalHyperParameterRangeProperty]
categoricalHyperParameterRanges = Maybe [CategoricalHyperParameterRangeProperty]
forall a. Maybe a
Prelude.Nothing,
       continuousHyperParameterRanges :: Maybe [ContinuousHyperParameterRangeProperty]
continuousHyperParameterRanges = Maybe [ContinuousHyperParameterRangeProperty]
forall a. Maybe a
Prelude.Nothing,
       integerHyperParameterRanges :: Maybe [IntegerHyperParameterRangeProperty]
integerHyperParameterRanges = Maybe [IntegerHyperParameterRangeProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AlgorithmHyperParameterRangesProperty where
  toResourceProperties :: AlgorithmHyperParameterRangesProperty -> ResourceProperties
toResourceProperties AlgorithmHyperParameterRangesProperty {Maybe [CategoricalHyperParameterRangeProperty]
Maybe [ContinuousHyperParameterRangeProperty]
Maybe [IntegerHyperParameterRangeProperty]
()
haddock_workaround_ :: AlgorithmHyperParameterRangesProperty -> ()
categoricalHyperParameterRanges :: AlgorithmHyperParameterRangesProperty
-> Maybe [CategoricalHyperParameterRangeProperty]
continuousHyperParameterRanges :: AlgorithmHyperParameterRangesProperty
-> Maybe [ContinuousHyperParameterRangeProperty]
integerHyperParameterRanges :: AlgorithmHyperParameterRangesProperty
-> Maybe [IntegerHyperParameterRangeProperty]
haddock_workaround_ :: ()
categoricalHyperParameterRanges :: Maybe [CategoricalHyperParameterRangeProperty]
continuousHyperParameterRanges :: Maybe [ContinuousHyperParameterRangeProperty]
integerHyperParameterRanges :: Maybe [IntegerHyperParameterRangeProperty]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Personalize::Solution.AlgorithmHyperParameterRanges",
         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 -> [CategoricalHyperParameterRangeProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CategoricalHyperParameterRanges"
                              ([CategoricalHyperParameterRangeProperty] -> (Key, Value))
-> Maybe [CategoricalHyperParameterRangeProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [CategoricalHyperParameterRangeProperty]
categoricalHyperParameterRanges,
                            Key -> [ContinuousHyperParameterRangeProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ContinuousHyperParameterRanges"
                              ([ContinuousHyperParameterRangeProperty] -> (Key, Value))
-> Maybe [ContinuousHyperParameterRangeProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ContinuousHyperParameterRangeProperty]
continuousHyperParameterRanges,
                            Key -> [IntegerHyperParameterRangeProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IntegerHyperParameterRanges"
                              ([IntegerHyperParameterRangeProperty] -> (Key, Value))
-> Maybe [IntegerHyperParameterRangeProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [IntegerHyperParameterRangeProperty]
integerHyperParameterRanges])}
instance JSON.ToJSON AlgorithmHyperParameterRangesProperty where
  toJSON :: AlgorithmHyperParameterRangesProperty -> Value
toJSON AlgorithmHyperParameterRangesProperty {Maybe [CategoricalHyperParameterRangeProperty]
Maybe [ContinuousHyperParameterRangeProperty]
Maybe [IntegerHyperParameterRangeProperty]
()
haddock_workaround_ :: AlgorithmHyperParameterRangesProperty -> ()
categoricalHyperParameterRanges :: AlgorithmHyperParameterRangesProperty
-> Maybe [CategoricalHyperParameterRangeProperty]
continuousHyperParameterRanges :: AlgorithmHyperParameterRangesProperty
-> Maybe [ContinuousHyperParameterRangeProperty]
integerHyperParameterRanges :: AlgorithmHyperParameterRangesProperty
-> Maybe [IntegerHyperParameterRangeProperty]
haddock_workaround_ :: ()
categoricalHyperParameterRanges :: Maybe [CategoricalHyperParameterRangeProperty]
continuousHyperParameterRanges :: Maybe [ContinuousHyperParameterRangeProperty]
integerHyperParameterRanges :: Maybe [IntegerHyperParameterRangeProperty]
..}
    = [(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 -> [CategoricalHyperParameterRangeProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CategoricalHyperParameterRanges"
                 ([CategoricalHyperParameterRangeProperty] -> (Key, Value))
-> Maybe [CategoricalHyperParameterRangeProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [CategoricalHyperParameterRangeProperty]
categoricalHyperParameterRanges,
               Key -> [ContinuousHyperParameterRangeProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ContinuousHyperParameterRanges"
                 ([ContinuousHyperParameterRangeProperty] -> (Key, Value))
-> Maybe [ContinuousHyperParameterRangeProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ContinuousHyperParameterRangeProperty]
continuousHyperParameterRanges,
               Key -> [IntegerHyperParameterRangeProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IntegerHyperParameterRanges"
                 ([IntegerHyperParameterRangeProperty] -> (Key, Value))
-> Maybe [IntegerHyperParameterRangeProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [IntegerHyperParameterRangeProperty]
integerHyperParameterRanges]))
instance Property "CategoricalHyperParameterRanges" AlgorithmHyperParameterRangesProperty where
  type PropertyType "CategoricalHyperParameterRanges" AlgorithmHyperParameterRangesProperty = [CategoricalHyperParameterRangeProperty]
  set :: PropertyType
  "CategoricalHyperParameterRanges"
  AlgorithmHyperParameterRangesProperty
-> AlgorithmHyperParameterRangesProperty
-> AlgorithmHyperParameterRangesProperty
set PropertyType
  "CategoricalHyperParameterRanges"
  AlgorithmHyperParameterRangesProperty
newValue AlgorithmHyperParameterRangesProperty {Maybe [CategoricalHyperParameterRangeProperty]
Maybe [ContinuousHyperParameterRangeProperty]
Maybe [IntegerHyperParameterRangeProperty]
()
haddock_workaround_ :: AlgorithmHyperParameterRangesProperty -> ()
categoricalHyperParameterRanges :: AlgorithmHyperParameterRangesProperty
-> Maybe [CategoricalHyperParameterRangeProperty]
continuousHyperParameterRanges :: AlgorithmHyperParameterRangesProperty
-> Maybe [ContinuousHyperParameterRangeProperty]
integerHyperParameterRanges :: AlgorithmHyperParameterRangesProperty
-> Maybe [IntegerHyperParameterRangeProperty]
haddock_workaround_ :: ()
categoricalHyperParameterRanges :: Maybe [CategoricalHyperParameterRangeProperty]
continuousHyperParameterRanges :: Maybe [ContinuousHyperParameterRangeProperty]
integerHyperParameterRanges :: Maybe [IntegerHyperParameterRangeProperty]
..}
    = AlgorithmHyperParameterRangesProperty
        {categoricalHyperParameterRanges :: Maybe [CategoricalHyperParameterRangeProperty]
categoricalHyperParameterRanges = [CategoricalHyperParameterRangeProperty]
-> Maybe [CategoricalHyperParameterRangeProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [CategoricalHyperParameterRangeProperty]
PropertyType
  "CategoricalHyperParameterRanges"
  AlgorithmHyperParameterRangesProperty
newValue, Maybe [ContinuousHyperParameterRangeProperty]
Maybe [IntegerHyperParameterRangeProperty]
()
haddock_workaround_ :: ()
continuousHyperParameterRanges :: Maybe [ContinuousHyperParameterRangeProperty]
integerHyperParameterRanges :: Maybe [IntegerHyperParameterRangeProperty]
haddock_workaround_ :: ()
continuousHyperParameterRanges :: Maybe [ContinuousHyperParameterRangeProperty]
integerHyperParameterRanges :: Maybe [IntegerHyperParameterRangeProperty]
..}
instance Property "ContinuousHyperParameterRanges" AlgorithmHyperParameterRangesProperty where
  type PropertyType "ContinuousHyperParameterRanges" AlgorithmHyperParameterRangesProperty = [ContinuousHyperParameterRangeProperty]
  set :: PropertyType
  "ContinuousHyperParameterRanges"
  AlgorithmHyperParameterRangesProperty
-> AlgorithmHyperParameterRangesProperty
-> AlgorithmHyperParameterRangesProperty
set PropertyType
  "ContinuousHyperParameterRanges"
  AlgorithmHyperParameterRangesProperty
newValue AlgorithmHyperParameterRangesProperty {Maybe [CategoricalHyperParameterRangeProperty]
Maybe [ContinuousHyperParameterRangeProperty]
Maybe [IntegerHyperParameterRangeProperty]
()
haddock_workaround_ :: AlgorithmHyperParameterRangesProperty -> ()
categoricalHyperParameterRanges :: AlgorithmHyperParameterRangesProperty
-> Maybe [CategoricalHyperParameterRangeProperty]
continuousHyperParameterRanges :: AlgorithmHyperParameterRangesProperty
-> Maybe [ContinuousHyperParameterRangeProperty]
integerHyperParameterRanges :: AlgorithmHyperParameterRangesProperty
-> Maybe [IntegerHyperParameterRangeProperty]
haddock_workaround_ :: ()
categoricalHyperParameterRanges :: Maybe [CategoricalHyperParameterRangeProperty]
continuousHyperParameterRanges :: Maybe [ContinuousHyperParameterRangeProperty]
integerHyperParameterRanges :: Maybe [IntegerHyperParameterRangeProperty]
..}
    = AlgorithmHyperParameterRangesProperty
        {continuousHyperParameterRanges :: Maybe [ContinuousHyperParameterRangeProperty]
continuousHyperParameterRanges = [ContinuousHyperParameterRangeProperty]
-> Maybe [ContinuousHyperParameterRangeProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [ContinuousHyperParameterRangeProperty]
PropertyType
  "ContinuousHyperParameterRanges"
  AlgorithmHyperParameterRangesProperty
newValue, Maybe [CategoricalHyperParameterRangeProperty]
Maybe [IntegerHyperParameterRangeProperty]
()
haddock_workaround_ :: ()
categoricalHyperParameterRanges :: Maybe [CategoricalHyperParameterRangeProperty]
integerHyperParameterRanges :: Maybe [IntegerHyperParameterRangeProperty]
haddock_workaround_ :: ()
categoricalHyperParameterRanges :: Maybe [CategoricalHyperParameterRangeProperty]
integerHyperParameterRanges :: Maybe [IntegerHyperParameterRangeProperty]
..}
instance Property "IntegerHyperParameterRanges" AlgorithmHyperParameterRangesProperty where
  type PropertyType "IntegerHyperParameterRanges" AlgorithmHyperParameterRangesProperty = [IntegerHyperParameterRangeProperty]
  set :: PropertyType
  "IntegerHyperParameterRanges" AlgorithmHyperParameterRangesProperty
-> AlgorithmHyperParameterRangesProperty
-> AlgorithmHyperParameterRangesProperty
set PropertyType
  "IntegerHyperParameterRanges" AlgorithmHyperParameterRangesProperty
newValue AlgorithmHyperParameterRangesProperty {Maybe [CategoricalHyperParameterRangeProperty]
Maybe [ContinuousHyperParameterRangeProperty]
Maybe [IntegerHyperParameterRangeProperty]
()
haddock_workaround_ :: AlgorithmHyperParameterRangesProperty -> ()
categoricalHyperParameterRanges :: AlgorithmHyperParameterRangesProperty
-> Maybe [CategoricalHyperParameterRangeProperty]
continuousHyperParameterRanges :: AlgorithmHyperParameterRangesProperty
-> Maybe [ContinuousHyperParameterRangeProperty]
integerHyperParameterRanges :: AlgorithmHyperParameterRangesProperty
-> Maybe [IntegerHyperParameterRangeProperty]
haddock_workaround_ :: ()
categoricalHyperParameterRanges :: Maybe [CategoricalHyperParameterRangeProperty]
continuousHyperParameterRanges :: Maybe [ContinuousHyperParameterRangeProperty]
integerHyperParameterRanges :: Maybe [IntegerHyperParameterRangeProperty]
..}
    = AlgorithmHyperParameterRangesProperty
        {integerHyperParameterRanges :: Maybe [IntegerHyperParameterRangeProperty]
integerHyperParameterRanges = [IntegerHyperParameterRangeProperty]
-> Maybe [IntegerHyperParameterRangeProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [IntegerHyperParameterRangeProperty]
PropertyType
  "IntegerHyperParameterRanges" AlgorithmHyperParameterRangesProperty
newValue, Maybe [CategoricalHyperParameterRangeProperty]
Maybe [ContinuousHyperParameterRangeProperty]
()
haddock_workaround_ :: ()
categoricalHyperParameterRanges :: Maybe [CategoricalHyperParameterRangeProperty]
continuousHyperParameterRanges :: Maybe [ContinuousHyperParameterRangeProperty]
haddock_workaround_ :: ()
categoricalHyperParameterRanges :: Maybe [CategoricalHyperParameterRangeProperty]
continuousHyperParameterRanges :: Maybe [ContinuousHyperParameterRangeProperty]
..}