module Stratosphere.ServiceCatalog.AcceptedPortfolioShare (
        AcceptedPortfolioShare(..), mkAcceptedPortfolioShare
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AcceptedPortfolioShare
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-acceptedportfolioshare.html>
    AcceptedPortfolioShare {AcceptedPortfolioShare -> ()
haddock_workaround_ :: (),
                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-acceptedportfolioshare.html#cfn-servicecatalog-acceptedportfolioshare-acceptlanguage>
                            AcceptedPortfolioShare -> Maybe (Value Text)
acceptLanguage :: (Prelude.Maybe (Value Prelude.Text)),
                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-acceptedportfolioshare.html#cfn-servicecatalog-acceptedportfolioshare-portfolioid>
                            AcceptedPortfolioShare -> Value Text
portfolioId :: (Value Prelude.Text)}
  deriving stock (AcceptedPortfolioShare -> AcceptedPortfolioShare -> Bool
(AcceptedPortfolioShare -> AcceptedPortfolioShare -> Bool)
-> (AcceptedPortfolioShare -> AcceptedPortfolioShare -> Bool)
-> Eq AcceptedPortfolioShare
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AcceptedPortfolioShare -> AcceptedPortfolioShare -> Bool
== :: AcceptedPortfolioShare -> AcceptedPortfolioShare -> Bool
$c/= :: AcceptedPortfolioShare -> AcceptedPortfolioShare -> Bool
/= :: AcceptedPortfolioShare -> AcceptedPortfolioShare -> Bool
Prelude.Eq, Int -> AcceptedPortfolioShare -> ShowS
[AcceptedPortfolioShare] -> ShowS
AcceptedPortfolioShare -> String
(Int -> AcceptedPortfolioShare -> ShowS)
-> (AcceptedPortfolioShare -> String)
-> ([AcceptedPortfolioShare] -> ShowS)
-> Show AcceptedPortfolioShare
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AcceptedPortfolioShare -> ShowS
showsPrec :: Int -> AcceptedPortfolioShare -> ShowS
$cshow :: AcceptedPortfolioShare -> String
show :: AcceptedPortfolioShare -> String
$cshowList :: [AcceptedPortfolioShare] -> ShowS
showList :: [AcceptedPortfolioShare] -> ShowS
Prelude.Show)
mkAcceptedPortfolioShare ::
  Value Prelude.Text -> AcceptedPortfolioShare
mkAcceptedPortfolioShare :: Value Text -> AcceptedPortfolioShare
mkAcceptedPortfolioShare Value Text
portfolioId
  = AcceptedPortfolioShare
      {haddock_workaround_ :: ()
haddock_workaround_ = (), portfolioId :: Value Text
portfolioId = Value Text
portfolioId,
       acceptLanguage :: Maybe (Value Text)
acceptLanguage = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AcceptedPortfolioShare where
  toResourceProperties :: AcceptedPortfolioShare -> ResourceProperties
toResourceProperties AcceptedPortfolioShare {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AcceptedPortfolioShare -> ()
acceptLanguage :: AcceptedPortfolioShare -> Maybe (Value Text)
portfolioId :: AcceptedPortfolioShare -> Value Text
haddock_workaround_ :: ()
acceptLanguage :: Maybe (Value Text)
portfolioId :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ServiceCatalog::AcceptedPortfolioShare",
         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
"PortfolioId" 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
portfolioId]
                           ([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
"AcceptLanguage" (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)
acceptLanguage]))}
instance JSON.ToJSON AcceptedPortfolioShare where
  toJSON :: AcceptedPortfolioShare -> Value
toJSON AcceptedPortfolioShare {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AcceptedPortfolioShare -> ()
acceptLanguage :: AcceptedPortfolioShare -> Maybe (Value Text)
portfolioId :: AcceptedPortfolioShare -> Value Text
haddock_workaround_ :: ()
acceptLanguage :: Maybe (Value Text)
portfolioId :: Value Text
..}
    = [(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
"PortfolioId" 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
portfolioId]
              ([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
"AcceptLanguage" (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)
acceptLanguage])))
instance Property "AcceptLanguage" AcceptedPortfolioShare where
  type PropertyType "AcceptLanguage" AcceptedPortfolioShare = Value Prelude.Text
  set :: PropertyType "AcceptLanguage" AcceptedPortfolioShare
-> AcceptedPortfolioShare -> AcceptedPortfolioShare
set PropertyType "AcceptLanguage" AcceptedPortfolioShare
newValue AcceptedPortfolioShare {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AcceptedPortfolioShare -> ()
acceptLanguage :: AcceptedPortfolioShare -> Maybe (Value Text)
portfolioId :: AcceptedPortfolioShare -> Value Text
haddock_workaround_ :: ()
acceptLanguage :: Maybe (Value Text)
portfolioId :: Value Text
..}
    = AcceptedPortfolioShare
        {acceptLanguage :: Maybe (Value Text)
acceptLanguage = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AcceptLanguage" AcceptedPortfolioShare
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
portfolioId :: Value Text
haddock_workaround_ :: ()
portfolioId :: Value Text
..}
instance Property "PortfolioId" AcceptedPortfolioShare where
  type PropertyType "PortfolioId" AcceptedPortfolioShare = Value Prelude.Text
  set :: PropertyType "PortfolioId" AcceptedPortfolioShare
-> AcceptedPortfolioShare -> AcceptedPortfolioShare
set PropertyType "PortfolioId" AcceptedPortfolioShare
newValue AcceptedPortfolioShare {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AcceptedPortfolioShare -> ()
acceptLanguage :: AcceptedPortfolioShare -> Maybe (Value Text)
portfolioId :: AcceptedPortfolioShare -> Value Text
haddock_workaround_ :: ()
acceptLanguage :: Maybe (Value Text)
portfolioId :: Value Text
..}
    = AcceptedPortfolioShare {portfolioId :: Value Text
portfolioId = PropertyType "PortfolioId" AcceptedPortfolioShare
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
acceptLanguage :: Maybe (Value Text)
haddock_workaround_ :: ()
acceptLanguage :: Maybe (Value Text)
..}