module Stratosphere.LookoutEquipment.InferenceScheduler.InputNameConfigurationProperty (
        InputNameConfigurationProperty(..),
        mkInputNameConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data InputNameConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutequipment-inferencescheduler-inputnameconfiguration.html>
    InputNameConfigurationProperty {InputNameConfigurationProperty -> ()
haddock_workaround_ :: (),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutequipment-inferencescheduler-inputnameconfiguration.html#cfn-lookoutequipment-inferencescheduler-inputnameconfiguration-componenttimestampdelimiter>
                                    InputNameConfigurationProperty -> Maybe (Value Text)
componentTimestampDelimiter :: (Prelude.Maybe (Value Prelude.Text)),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutequipment-inferencescheduler-inputnameconfiguration.html#cfn-lookoutequipment-inferencescheduler-inputnameconfiguration-timestampformat>
                                    InputNameConfigurationProperty -> Maybe (Value Text)
timestampFormat :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (InputNameConfigurationProperty
-> InputNameConfigurationProperty -> Bool
(InputNameConfigurationProperty
 -> InputNameConfigurationProperty -> Bool)
-> (InputNameConfigurationProperty
    -> InputNameConfigurationProperty -> Bool)
-> Eq InputNameConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: InputNameConfigurationProperty
-> InputNameConfigurationProperty -> Bool
== :: InputNameConfigurationProperty
-> InputNameConfigurationProperty -> Bool
$c/= :: InputNameConfigurationProperty
-> InputNameConfigurationProperty -> Bool
/= :: InputNameConfigurationProperty
-> InputNameConfigurationProperty -> Bool
Prelude.Eq, Int -> InputNameConfigurationProperty -> ShowS
[InputNameConfigurationProperty] -> ShowS
InputNameConfigurationProperty -> String
(Int -> InputNameConfigurationProperty -> ShowS)
-> (InputNameConfigurationProperty -> String)
-> ([InputNameConfigurationProperty] -> ShowS)
-> Show InputNameConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> InputNameConfigurationProperty -> ShowS
showsPrec :: Int -> InputNameConfigurationProperty -> ShowS
$cshow :: InputNameConfigurationProperty -> String
show :: InputNameConfigurationProperty -> String
$cshowList :: [InputNameConfigurationProperty] -> ShowS
showList :: [InputNameConfigurationProperty] -> ShowS
Prelude.Show)
mkInputNameConfigurationProperty :: InputNameConfigurationProperty
mkInputNameConfigurationProperty :: InputNameConfigurationProperty
mkInputNameConfigurationProperty
  = InputNameConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       componentTimestampDelimiter :: Maybe (Value Text)
componentTimestampDelimiter = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       timestampFormat :: Maybe (Value Text)
timestampFormat = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties InputNameConfigurationProperty where
  toResourceProperties :: InputNameConfigurationProperty -> ResourceProperties
toResourceProperties InputNameConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: InputNameConfigurationProperty -> ()
componentTimestampDelimiter :: InputNameConfigurationProperty -> Maybe (Value Text)
timestampFormat :: InputNameConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
componentTimestampDelimiter :: Maybe (Value Text)
timestampFormat :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::LookoutEquipment::InferenceScheduler.InputNameConfiguration",
         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 -> 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
"ComponentTimestampDelimiter"
                              (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)
componentTimestampDelimiter,
                            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
"TimestampFormat" (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)
timestampFormat])}
instance JSON.ToJSON InputNameConfigurationProperty where
  toJSON :: InputNameConfigurationProperty -> Value
toJSON InputNameConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: InputNameConfigurationProperty -> ()
componentTimestampDelimiter :: InputNameConfigurationProperty -> Maybe (Value Text)
timestampFormat :: InputNameConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
componentTimestampDelimiter :: Maybe (Value Text)
timestampFormat :: Maybe (Value 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 -> 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
"ComponentTimestampDelimiter"
                 (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)
componentTimestampDelimiter,
               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
"TimestampFormat" (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)
timestampFormat]))
instance Property "ComponentTimestampDelimiter" InputNameConfigurationProperty where
  type PropertyType "ComponentTimestampDelimiter" InputNameConfigurationProperty = Value Prelude.Text
  set :: PropertyType
  "ComponentTimestampDelimiter" InputNameConfigurationProperty
-> InputNameConfigurationProperty -> InputNameConfigurationProperty
set PropertyType
  "ComponentTimestampDelimiter" InputNameConfigurationProperty
newValue InputNameConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: InputNameConfigurationProperty -> ()
componentTimestampDelimiter :: InputNameConfigurationProperty -> Maybe (Value Text)
timestampFormat :: InputNameConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
componentTimestampDelimiter :: Maybe (Value Text)
timestampFormat :: Maybe (Value Text)
..}
    = InputNameConfigurationProperty
        {componentTimestampDelimiter :: Maybe (Value Text)
componentTimestampDelimiter = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "ComponentTimestampDelimiter" InputNameConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
timestampFormat :: Maybe (Value Text)
haddock_workaround_ :: ()
timestampFormat :: Maybe (Value Text)
..}
instance Property "TimestampFormat" InputNameConfigurationProperty where
  type PropertyType "TimestampFormat" InputNameConfigurationProperty = Value Prelude.Text
  set :: PropertyType "TimestampFormat" InputNameConfigurationProperty
-> InputNameConfigurationProperty -> InputNameConfigurationProperty
set PropertyType "TimestampFormat" InputNameConfigurationProperty
newValue InputNameConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: InputNameConfigurationProperty -> ()
componentTimestampDelimiter :: InputNameConfigurationProperty -> Maybe (Value Text)
timestampFormat :: InputNameConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
componentTimestampDelimiter :: Maybe (Value Text)
timestampFormat :: Maybe (Value Text)
..}
    = InputNameConfigurationProperty
        {timestampFormat :: Maybe (Value Text)
timestampFormat = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TimestampFormat" InputNameConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
componentTimestampDelimiter :: Maybe (Value Text)
haddock_workaround_ :: ()
componentTimestampDelimiter :: Maybe (Value Text)
..}