module Stratosphere.QuickSight.Analysis.TrendArrowOptionsProperty (
        TrendArrowOptionsProperty(..), mkTrendArrowOptionsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TrendArrowOptionsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-trendarrowoptions.html>
    TrendArrowOptionsProperty {TrendArrowOptionsProperty -> ()
haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-trendarrowoptions.html#cfn-quicksight-analysis-trendarrowoptions-visibility>
                               TrendArrowOptionsProperty -> Maybe (Value Text)
visibility :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (TrendArrowOptionsProperty -> TrendArrowOptionsProperty -> Bool
(TrendArrowOptionsProperty -> TrendArrowOptionsProperty -> Bool)
-> (TrendArrowOptionsProperty -> TrendArrowOptionsProperty -> Bool)
-> Eq TrendArrowOptionsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TrendArrowOptionsProperty -> TrendArrowOptionsProperty -> Bool
== :: TrendArrowOptionsProperty -> TrendArrowOptionsProperty -> Bool
$c/= :: TrendArrowOptionsProperty -> TrendArrowOptionsProperty -> Bool
/= :: TrendArrowOptionsProperty -> TrendArrowOptionsProperty -> Bool
Prelude.Eq, Int -> TrendArrowOptionsProperty -> ShowS
[TrendArrowOptionsProperty] -> ShowS
TrendArrowOptionsProperty -> String
(Int -> TrendArrowOptionsProperty -> ShowS)
-> (TrendArrowOptionsProperty -> String)
-> ([TrendArrowOptionsProperty] -> ShowS)
-> Show TrendArrowOptionsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TrendArrowOptionsProperty -> ShowS
showsPrec :: Int -> TrendArrowOptionsProperty -> ShowS
$cshow :: TrendArrowOptionsProperty -> String
show :: TrendArrowOptionsProperty -> String
$cshowList :: [TrendArrowOptionsProperty] -> ShowS
showList :: [TrendArrowOptionsProperty] -> ShowS
Prelude.Show)
mkTrendArrowOptionsProperty :: TrendArrowOptionsProperty
mkTrendArrowOptionsProperty :: TrendArrowOptionsProperty
mkTrendArrowOptionsProperty
  = TrendArrowOptionsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), visibility :: Maybe (Value Text)
visibility = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TrendArrowOptionsProperty where
  toResourceProperties :: TrendArrowOptionsProperty -> ResourceProperties
toResourceProperties TrendArrowOptionsProperty {Maybe (Value Text)
()
haddock_workaround_ :: TrendArrowOptionsProperty -> ()
visibility :: TrendArrowOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
visibility :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Analysis.TrendArrowOptions",
         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
"Visibility" (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)
visibility])}
instance JSON.ToJSON TrendArrowOptionsProperty where
  toJSON :: TrendArrowOptionsProperty -> Value
toJSON TrendArrowOptionsProperty {Maybe (Value Text)
()
haddock_workaround_ :: TrendArrowOptionsProperty -> ()
visibility :: TrendArrowOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
visibility :: 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
"Visibility" (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)
visibility]))
instance Property "Visibility" TrendArrowOptionsProperty where
  type PropertyType "Visibility" TrendArrowOptionsProperty = Value Prelude.Text
  set :: PropertyType "Visibility" TrendArrowOptionsProperty
-> TrendArrowOptionsProperty -> TrendArrowOptionsProperty
set PropertyType "Visibility" TrendArrowOptionsProperty
newValue TrendArrowOptionsProperty {Maybe (Value Text)
()
haddock_workaround_ :: TrendArrowOptionsProperty -> ()
visibility :: TrendArrowOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
visibility :: Maybe (Value Text)
..}
    = TrendArrowOptionsProperty
        {visibility :: Maybe (Value Text)
visibility = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Visibility" TrendArrowOptionsProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}