module Stratosphere.QuickSight.Dashboard.ReferenceLineProperty (
        module Exports, ReferenceLineProperty(..), mkReferenceLineProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Dashboard.ReferenceLineDataConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.QuickSight.Dashboard.ReferenceLineLabelConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.QuickSight.Dashboard.ReferenceLineStyleConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ReferenceLineProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-referenceline.html>
    ReferenceLineProperty {ReferenceLineProperty -> ()
haddock_workaround_ :: (),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-referenceline.html#cfn-quicksight-dashboard-referenceline-dataconfiguration>
                           ReferenceLineProperty -> ReferenceLineDataConfigurationProperty
dataConfiguration :: ReferenceLineDataConfigurationProperty,
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-referenceline.html#cfn-quicksight-dashboard-referenceline-labelconfiguration>
                           ReferenceLineProperty
-> Maybe ReferenceLineLabelConfigurationProperty
labelConfiguration :: (Prelude.Maybe ReferenceLineLabelConfigurationProperty),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-referenceline.html#cfn-quicksight-dashboard-referenceline-status>
                           ReferenceLineProperty -> Maybe (Value Text)
status :: (Prelude.Maybe (Value Prelude.Text)),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-referenceline.html#cfn-quicksight-dashboard-referenceline-styleconfiguration>
                           ReferenceLineProperty
-> Maybe ReferenceLineStyleConfigurationProperty
styleConfiguration :: (Prelude.Maybe ReferenceLineStyleConfigurationProperty)}
  deriving stock (ReferenceLineProperty -> ReferenceLineProperty -> Bool
(ReferenceLineProperty -> ReferenceLineProperty -> Bool)
-> (ReferenceLineProperty -> ReferenceLineProperty -> Bool)
-> Eq ReferenceLineProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ReferenceLineProperty -> ReferenceLineProperty -> Bool
== :: ReferenceLineProperty -> ReferenceLineProperty -> Bool
$c/= :: ReferenceLineProperty -> ReferenceLineProperty -> Bool
/= :: ReferenceLineProperty -> ReferenceLineProperty -> Bool
Prelude.Eq, Int -> ReferenceLineProperty -> ShowS
[ReferenceLineProperty] -> ShowS
ReferenceLineProperty -> String
(Int -> ReferenceLineProperty -> ShowS)
-> (ReferenceLineProperty -> String)
-> ([ReferenceLineProperty] -> ShowS)
-> Show ReferenceLineProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ReferenceLineProperty -> ShowS
showsPrec :: Int -> ReferenceLineProperty -> ShowS
$cshow :: ReferenceLineProperty -> String
show :: ReferenceLineProperty -> String
$cshowList :: [ReferenceLineProperty] -> ShowS
showList :: [ReferenceLineProperty] -> ShowS
Prelude.Show)
mkReferenceLineProperty ::
  ReferenceLineDataConfigurationProperty -> ReferenceLineProperty
mkReferenceLineProperty :: ReferenceLineDataConfigurationProperty -> ReferenceLineProperty
mkReferenceLineProperty ReferenceLineDataConfigurationProperty
dataConfiguration
  = ReferenceLineProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), dataConfiguration :: ReferenceLineDataConfigurationProperty
dataConfiguration = ReferenceLineDataConfigurationProperty
dataConfiguration,
       labelConfiguration :: Maybe ReferenceLineLabelConfigurationProperty
labelConfiguration = Maybe ReferenceLineLabelConfigurationProperty
forall a. Maybe a
Prelude.Nothing, status :: Maybe (Value Text)
status = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       styleConfiguration :: Maybe ReferenceLineStyleConfigurationProperty
styleConfiguration = Maybe ReferenceLineStyleConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ReferenceLineProperty where
  toResourceProperties :: ReferenceLineProperty -> ResourceProperties
toResourceProperties ReferenceLineProperty {Maybe (Value Text)
Maybe ReferenceLineStyleConfigurationProperty
Maybe ReferenceLineLabelConfigurationProperty
()
ReferenceLineDataConfigurationProperty
haddock_workaround_ :: ReferenceLineProperty -> ()
dataConfiguration :: ReferenceLineProperty -> ReferenceLineDataConfigurationProperty
labelConfiguration :: ReferenceLineProperty
-> Maybe ReferenceLineLabelConfigurationProperty
status :: ReferenceLineProperty -> Maybe (Value Text)
styleConfiguration :: ReferenceLineProperty
-> Maybe ReferenceLineStyleConfigurationProperty
haddock_workaround_ :: ()
dataConfiguration :: ReferenceLineDataConfigurationProperty
labelConfiguration :: Maybe ReferenceLineLabelConfigurationProperty
status :: Maybe (Value Text)
styleConfiguration :: Maybe ReferenceLineStyleConfigurationProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Dashboard.ReferenceLine",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"DataConfiguration" Key -> ReferenceLineDataConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ReferenceLineDataConfigurationProperty
dataConfiguration]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> ReferenceLineLabelConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LabelConfiguration" (ReferenceLineLabelConfigurationProperty -> (Key, Value))
-> Maybe ReferenceLineLabelConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ReferenceLineLabelConfigurationProperty
labelConfiguration,
                               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
"Status" (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)
status,
                               Key -> ReferenceLineStyleConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StyleConfiguration" (ReferenceLineStyleConfigurationProperty -> (Key, Value))
-> Maybe ReferenceLineStyleConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ReferenceLineStyleConfigurationProperty
styleConfiguration]))}
instance JSON.ToJSON ReferenceLineProperty where
  toJSON :: ReferenceLineProperty -> Value
toJSON ReferenceLineProperty {Maybe (Value Text)
Maybe ReferenceLineStyleConfigurationProperty
Maybe ReferenceLineLabelConfigurationProperty
()
ReferenceLineDataConfigurationProperty
haddock_workaround_ :: ReferenceLineProperty -> ()
dataConfiguration :: ReferenceLineProperty -> ReferenceLineDataConfigurationProperty
labelConfiguration :: ReferenceLineProperty
-> Maybe ReferenceLineLabelConfigurationProperty
status :: ReferenceLineProperty -> Maybe (Value Text)
styleConfiguration :: ReferenceLineProperty
-> Maybe ReferenceLineStyleConfigurationProperty
haddock_workaround_ :: ()
dataConfiguration :: ReferenceLineDataConfigurationProperty
labelConfiguration :: Maybe ReferenceLineLabelConfigurationProperty
status :: Maybe (Value Text)
styleConfiguration :: Maybe ReferenceLineStyleConfigurationProperty
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"DataConfiguration" Key -> ReferenceLineDataConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ReferenceLineDataConfigurationProperty
dataConfiguration]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> ReferenceLineLabelConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LabelConfiguration" (ReferenceLineLabelConfigurationProperty -> (Key, Value))
-> Maybe ReferenceLineLabelConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ReferenceLineLabelConfigurationProperty
labelConfiguration,
                  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
"Status" (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)
status,
                  Key -> ReferenceLineStyleConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StyleConfiguration" (ReferenceLineStyleConfigurationProperty -> (Key, Value))
-> Maybe ReferenceLineStyleConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ReferenceLineStyleConfigurationProperty
styleConfiguration])))
instance Property "DataConfiguration" ReferenceLineProperty where
  type PropertyType "DataConfiguration" ReferenceLineProperty = ReferenceLineDataConfigurationProperty
  set :: PropertyType "DataConfiguration" ReferenceLineProperty
-> ReferenceLineProperty -> ReferenceLineProperty
set PropertyType "DataConfiguration" ReferenceLineProperty
newValue ReferenceLineProperty {Maybe (Value Text)
Maybe ReferenceLineStyleConfigurationProperty
Maybe ReferenceLineLabelConfigurationProperty
()
ReferenceLineDataConfigurationProperty
haddock_workaround_ :: ReferenceLineProperty -> ()
dataConfiguration :: ReferenceLineProperty -> ReferenceLineDataConfigurationProperty
labelConfiguration :: ReferenceLineProperty
-> Maybe ReferenceLineLabelConfigurationProperty
status :: ReferenceLineProperty -> Maybe (Value Text)
styleConfiguration :: ReferenceLineProperty
-> Maybe ReferenceLineStyleConfigurationProperty
haddock_workaround_ :: ()
dataConfiguration :: ReferenceLineDataConfigurationProperty
labelConfiguration :: Maybe ReferenceLineLabelConfigurationProperty
status :: Maybe (Value Text)
styleConfiguration :: Maybe ReferenceLineStyleConfigurationProperty
..}
    = ReferenceLineProperty {dataConfiguration :: ReferenceLineDataConfigurationProperty
dataConfiguration = PropertyType "DataConfiguration" ReferenceLineProperty
ReferenceLineDataConfigurationProperty
newValue, Maybe (Value Text)
Maybe ReferenceLineStyleConfigurationProperty
Maybe ReferenceLineLabelConfigurationProperty
()
haddock_workaround_ :: ()
labelConfiguration :: Maybe ReferenceLineLabelConfigurationProperty
status :: Maybe (Value Text)
styleConfiguration :: Maybe ReferenceLineStyleConfigurationProperty
haddock_workaround_ :: ()
labelConfiguration :: Maybe ReferenceLineLabelConfigurationProperty
status :: Maybe (Value Text)
styleConfiguration :: Maybe ReferenceLineStyleConfigurationProperty
..}
instance Property "LabelConfiguration" ReferenceLineProperty where
  type PropertyType "LabelConfiguration" ReferenceLineProperty = ReferenceLineLabelConfigurationProperty
  set :: PropertyType "LabelConfiguration" ReferenceLineProperty
-> ReferenceLineProperty -> ReferenceLineProperty
set PropertyType "LabelConfiguration" ReferenceLineProperty
newValue ReferenceLineProperty {Maybe (Value Text)
Maybe ReferenceLineStyleConfigurationProperty
Maybe ReferenceLineLabelConfigurationProperty
()
ReferenceLineDataConfigurationProperty
haddock_workaround_ :: ReferenceLineProperty -> ()
dataConfiguration :: ReferenceLineProperty -> ReferenceLineDataConfigurationProperty
labelConfiguration :: ReferenceLineProperty
-> Maybe ReferenceLineLabelConfigurationProperty
status :: ReferenceLineProperty -> Maybe (Value Text)
styleConfiguration :: ReferenceLineProperty
-> Maybe ReferenceLineStyleConfigurationProperty
haddock_workaround_ :: ()
dataConfiguration :: ReferenceLineDataConfigurationProperty
labelConfiguration :: Maybe ReferenceLineLabelConfigurationProperty
status :: Maybe (Value Text)
styleConfiguration :: Maybe ReferenceLineStyleConfigurationProperty
..}
    = ReferenceLineProperty
        {labelConfiguration :: Maybe ReferenceLineLabelConfigurationProperty
labelConfiguration = ReferenceLineLabelConfigurationProperty
-> Maybe ReferenceLineLabelConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "LabelConfiguration" ReferenceLineProperty
ReferenceLineLabelConfigurationProperty
newValue, Maybe (Value Text)
Maybe ReferenceLineStyleConfigurationProperty
()
ReferenceLineDataConfigurationProperty
haddock_workaround_ :: ()
dataConfiguration :: ReferenceLineDataConfigurationProperty
status :: Maybe (Value Text)
styleConfiguration :: Maybe ReferenceLineStyleConfigurationProperty
haddock_workaround_ :: ()
dataConfiguration :: ReferenceLineDataConfigurationProperty
status :: Maybe (Value Text)
styleConfiguration :: Maybe ReferenceLineStyleConfigurationProperty
..}
instance Property "Status" ReferenceLineProperty where
  type PropertyType "Status" ReferenceLineProperty = Value Prelude.Text
  set :: PropertyType "Status" ReferenceLineProperty
-> ReferenceLineProperty -> ReferenceLineProperty
set PropertyType "Status" ReferenceLineProperty
newValue ReferenceLineProperty {Maybe (Value Text)
Maybe ReferenceLineStyleConfigurationProperty
Maybe ReferenceLineLabelConfigurationProperty
()
ReferenceLineDataConfigurationProperty
haddock_workaround_ :: ReferenceLineProperty -> ()
dataConfiguration :: ReferenceLineProperty -> ReferenceLineDataConfigurationProperty
labelConfiguration :: ReferenceLineProperty
-> Maybe ReferenceLineLabelConfigurationProperty
status :: ReferenceLineProperty -> Maybe (Value Text)
styleConfiguration :: ReferenceLineProperty
-> Maybe ReferenceLineStyleConfigurationProperty
haddock_workaround_ :: ()
dataConfiguration :: ReferenceLineDataConfigurationProperty
labelConfiguration :: Maybe ReferenceLineLabelConfigurationProperty
status :: Maybe (Value Text)
styleConfiguration :: Maybe ReferenceLineStyleConfigurationProperty
..}
    = ReferenceLineProperty {status :: Maybe (Value Text)
status = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Status" ReferenceLineProperty
Value Text
newValue, Maybe ReferenceLineStyleConfigurationProperty
Maybe ReferenceLineLabelConfigurationProperty
()
ReferenceLineDataConfigurationProperty
haddock_workaround_ :: ()
dataConfiguration :: ReferenceLineDataConfigurationProperty
labelConfiguration :: Maybe ReferenceLineLabelConfigurationProperty
styleConfiguration :: Maybe ReferenceLineStyleConfigurationProperty
haddock_workaround_ :: ()
dataConfiguration :: ReferenceLineDataConfigurationProperty
labelConfiguration :: Maybe ReferenceLineLabelConfigurationProperty
styleConfiguration :: Maybe ReferenceLineStyleConfigurationProperty
..}
instance Property "StyleConfiguration" ReferenceLineProperty where
  type PropertyType "StyleConfiguration" ReferenceLineProperty = ReferenceLineStyleConfigurationProperty
  set :: PropertyType "StyleConfiguration" ReferenceLineProperty
-> ReferenceLineProperty -> ReferenceLineProperty
set PropertyType "StyleConfiguration" ReferenceLineProperty
newValue ReferenceLineProperty {Maybe (Value Text)
Maybe ReferenceLineStyleConfigurationProperty
Maybe ReferenceLineLabelConfigurationProperty
()
ReferenceLineDataConfigurationProperty
haddock_workaround_ :: ReferenceLineProperty -> ()
dataConfiguration :: ReferenceLineProperty -> ReferenceLineDataConfigurationProperty
labelConfiguration :: ReferenceLineProperty
-> Maybe ReferenceLineLabelConfigurationProperty
status :: ReferenceLineProperty -> Maybe (Value Text)
styleConfiguration :: ReferenceLineProperty
-> Maybe ReferenceLineStyleConfigurationProperty
haddock_workaround_ :: ()
dataConfiguration :: ReferenceLineDataConfigurationProperty
labelConfiguration :: Maybe ReferenceLineLabelConfigurationProperty
status :: Maybe (Value Text)
styleConfiguration :: Maybe ReferenceLineStyleConfigurationProperty
..}
    = ReferenceLineProperty
        {styleConfiguration :: Maybe ReferenceLineStyleConfigurationProperty
styleConfiguration = ReferenceLineStyleConfigurationProperty
-> Maybe ReferenceLineStyleConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "StyleConfiguration" ReferenceLineProperty
ReferenceLineStyleConfigurationProperty
newValue, Maybe (Value Text)
Maybe ReferenceLineLabelConfigurationProperty
()
ReferenceLineDataConfigurationProperty
haddock_workaround_ :: ()
dataConfiguration :: ReferenceLineDataConfigurationProperty
labelConfiguration :: Maybe ReferenceLineLabelConfigurationProperty
status :: Maybe (Value Text)
haddock_workaround_ :: ()
dataConfiguration :: ReferenceLineDataConfigurationProperty
labelConfiguration :: Maybe ReferenceLineLabelConfigurationProperty
status :: Maybe (Value Text)
..}