module Stratosphere.DataBrew.Dataset.FilterValueProperty (
        FilterValueProperty(..), mkFilterValueProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FilterValueProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-dataset-filtervalue.html>
    FilterValueProperty {FilterValueProperty -> ()
haddock_workaround_ :: (),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-dataset-filtervalue.html#cfn-databrew-dataset-filtervalue-value>
                         FilterValueProperty -> Value Text
value :: (Value Prelude.Text),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-dataset-filtervalue.html#cfn-databrew-dataset-filtervalue-valuereference>
                         FilterValueProperty -> Value Text
valueReference :: (Value Prelude.Text)}
  deriving stock (FilterValueProperty -> FilterValueProperty -> Bool
(FilterValueProperty -> FilterValueProperty -> Bool)
-> (FilterValueProperty -> FilterValueProperty -> Bool)
-> Eq FilterValueProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FilterValueProperty -> FilterValueProperty -> Bool
== :: FilterValueProperty -> FilterValueProperty -> Bool
$c/= :: FilterValueProperty -> FilterValueProperty -> Bool
/= :: FilterValueProperty -> FilterValueProperty -> Bool
Prelude.Eq, Int -> FilterValueProperty -> ShowS
[FilterValueProperty] -> ShowS
FilterValueProperty -> String
(Int -> FilterValueProperty -> ShowS)
-> (FilterValueProperty -> String)
-> ([FilterValueProperty] -> ShowS)
-> Show FilterValueProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FilterValueProperty -> ShowS
showsPrec :: Int -> FilterValueProperty -> ShowS
$cshow :: FilterValueProperty -> String
show :: FilterValueProperty -> String
$cshowList :: [FilterValueProperty] -> ShowS
showList :: [FilterValueProperty] -> ShowS
Prelude.Show)
mkFilterValueProperty ::
  Value Prelude.Text -> Value Prelude.Text -> FilterValueProperty
mkFilterValueProperty :: Value Text -> Value Text -> FilterValueProperty
mkFilterValueProperty Value Text
value Value Text
valueReference
  = FilterValueProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), value :: Value Text
value = Value Text
value,
       valueReference :: Value Text
valueReference = Value Text
valueReference}
instance ToResourceProperties FilterValueProperty where
  toResourceProperties :: FilterValueProperty -> ResourceProperties
toResourceProperties FilterValueProperty {()
Value Text
haddock_workaround_ :: FilterValueProperty -> ()
value :: FilterValueProperty -> Value Text
valueReference :: FilterValueProperty -> Value Text
haddock_workaround_ :: ()
value :: Value Text
valueReference :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::DataBrew::Dataset.FilterValue",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Value" 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..= Value Text
value,
                       Key
"ValueReference" 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..= Value Text
valueReference]}
instance JSON.ToJSON FilterValueProperty where
  toJSON :: FilterValueProperty -> Value
toJSON FilterValueProperty {()
Value Text
haddock_workaround_ :: FilterValueProperty -> ()
value :: FilterValueProperty -> Value Text
valueReference :: FilterValueProperty -> Value Text
haddock_workaround_ :: ()
value :: Value Text
valueReference :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"Value" 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..= Value Text
value, Key
"ValueReference" 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..= Value Text
valueReference]
instance Property "Value" FilterValueProperty where
  type PropertyType "Value" FilterValueProperty = Value Prelude.Text
  set :: PropertyType "Value" FilterValueProperty
-> FilterValueProperty -> FilterValueProperty
set PropertyType "Value" FilterValueProperty
newValue FilterValueProperty {()
Value Text
haddock_workaround_ :: FilterValueProperty -> ()
value :: FilterValueProperty -> Value Text
valueReference :: FilterValueProperty -> Value Text
haddock_workaround_ :: ()
value :: Value Text
valueReference :: Value Text
..}
    = FilterValueProperty {value :: Value Text
value = PropertyType "Value" FilterValueProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
valueReference :: Value Text
haddock_workaround_ :: ()
valueReference :: Value Text
..}
instance Property "ValueReference" FilterValueProperty where
  type PropertyType "ValueReference" FilterValueProperty = Value Prelude.Text
  set :: PropertyType "ValueReference" FilterValueProperty
-> FilterValueProperty -> FilterValueProperty
set PropertyType "ValueReference" FilterValueProperty
newValue FilterValueProperty {()
Value Text
haddock_workaround_ :: FilterValueProperty -> ()
value :: FilterValueProperty -> Value Text
valueReference :: FilterValueProperty -> Value Text
haddock_workaround_ :: ()
value :: Value Text
valueReference :: Value Text
..}
    = FilterValueProperty {valueReference :: Value Text
valueReference = PropertyType "ValueReference" FilterValueProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
value :: Value Text
haddock_workaround_ :: ()
value :: Value Text
..}