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