module Stratosphere.InspectorV2.CodeSecurityIntegration.UpdateDetailsProperty (
        module Exports, UpdateDetailsProperty(..), mkUpdateDetailsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.InspectorV2.CodeSecurityIntegration.UpdateGitHubIntegrationDetailProperty as Exports
import {-# SOURCE #-} Stratosphere.InspectorV2.CodeSecurityIntegration.UpdateGitLabSelfManagedIntegrationDetailProperty as Exports
import Stratosphere.ResourceProperties
data UpdateDetailsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-codesecurityintegration-updatedetails.html>
    UpdateDetailsProperty {UpdateDetailsProperty -> ()
haddock_workaround_ :: (),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-codesecurityintegration-updatedetails.html#cfn-inspectorv2-codesecurityintegration-updatedetails-github>
                           UpdateDetailsProperty
-> Maybe UpdateGitHubIntegrationDetailProperty
github :: (Prelude.Maybe UpdateGitHubIntegrationDetailProperty),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-codesecurityintegration-updatedetails.html#cfn-inspectorv2-codesecurityintegration-updatedetails-gitlabselfmanaged>
                           UpdateDetailsProperty
-> Maybe UpdateGitLabSelfManagedIntegrationDetailProperty
gitlabSelfManaged :: (Prelude.Maybe UpdateGitLabSelfManagedIntegrationDetailProperty)}
  deriving stock (UpdateDetailsProperty -> UpdateDetailsProperty -> Bool
(UpdateDetailsProperty -> UpdateDetailsProperty -> Bool)
-> (UpdateDetailsProperty -> UpdateDetailsProperty -> Bool)
-> Eq UpdateDetailsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: UpdateDetailsProperty -> UpdateDetailsProperty -> Bool
== :: UpdateDetailsProperty -> UpdateDetailsProperty -> Bool
$c/= :: UpdateDetailsProperty -> UpdateDetailsProperty -> Bool
/= :: UpdateDetailsProperty -> UpdateDetailsProperty -> Bool
Prelude.Eq, Int -> UpdateDetailsProperty -> ShowS
[UpdateDetailsProperty] -> ShowS
UpdateDetailsProperty -> String
(Int -> UpdateDetailsProperty -> ShowS)
-> (UpdateDetailsProperty -> String)
-> ([UpdateDetailsProperty] -> ShowS)
-> Show UpdateDetailsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> UpdateDetailsProperty -> ShowS
showsPrec :: Int -> UpdateDetailsProperty -> ShowS
$cshow :: UpdateDetailsProperty -> String
show :: UpdateDetailsProperty -> String
$cshowList :: [UpdateDetailsProperty] -> ShowS
showList :: [UpdateDetailsProperty] -> ShowS
Prelude.Show)
mkUpdateDetailsProperty :: UpdateDetailsProperty
mkUpdateDetailsProperty :: UpdateDetailsProperty
mkUpdateDetailsProperty
  = UpdateDetailsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), github :: Maybe UpdateGitHubIntegrationDetailProperty
github = Maybe UpdateGitHubIntegrationDetailProperty
forall a. Maybe a
Prelude.Nothing,
       gitlabSelfManaged :: Maybe UpdateGitLabSelfManagedIntegrationDetailProperty
gitlabSelfManaged = Maybe UpdateGitLabSelfManagedIntegrationDetailProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties UpdateDetailsProperty where
  toResourceProperties :: UpdateDetailsProperty -> ResourceProperties
toResourceProperties UpdateDetailsProperty {Maybe UpdateGitHubIntegrationDetailProperty
Maybe UpdateGitLabSelfManagedIntegrationDetailProperty
()
haddock_workaround_ :: UpdateDetailsProperty -> ()
github :: UpdateDetailsProperty
-> Maybe UpdateGitHubIntegrationDetailProperty
gitlabSelfManaged :: UpdateDetailsProperty
-> Maybe UpdateGitLabSelfManagedIntegrationDetailProperty
haddock_workaround_ :: ()
github :: Maybe UpdateGitHubIntegrationDetailProperty
gitlabSelfManaged :: Maybe UpdateGitLabSelfManagedIntegrationDetailProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::InspectorV2::CodeSecurityIntegration.UpdateDetails",
         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 -> UpdateGitHubIntegrationDetailProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"github" (UpdateGitHubIntegrationDetailProperty -> (Key, Value))
-> Maybe UpdateGitHubIntegrationDetailProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe UpdateGitHubIntegrationDetailProperty
github,
                            Key
-> UpdateGitLabSelfManagedIntegrationDetailProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"gitlabSelfManaged" (UpdateGitLabSelfManagedIntegrationDetailProperty -> (Key, Value))
-> Maybe UpdateGitLabSelfManagedIntegrationDetailProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe UpdateGitLabSelfManagedIntegrationDetailProperty
gitlabSelfManaged])}
instance JSON.ToJSON UpdateDetailsProperty where
  toJSON :: UpdateDetailsProperty -> Value
toJSON UpdateDetailsProperty {Maybe UpdateGitHubIntegrationDetailProperty
Maybe UpdateGitLabSelfManagedIntegrationDetailProperty
()
haddock_workaround_ :: UpdateDetailsProperty -> ()
github :: UpdateDetailsProperty
-> Maybe UpdateGitHubIntegrationDetailProperty
gitlabSelfManaged :: UpdateDetailsProperty
-> Maybe UpdateGitLabSelfManagedIntegrationDetailProperty
haddock_workaround_ :: ()
github :: Maybe UpdateGitHubIntegrationDetailProperty
gitlabSelfManaged :: Maybe UpdateGitLabSelfManagedIntegrationDetailProperty
..}
    = [(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 -> UpdateGitHubIntegrationDetailProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"github" (UpdateGitHubIntegrationDetailProperty -> (Key, Value))
-> Maybe UpdateGitHubIntegrationDetailProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe UpdateGitHubIntegrationDetailProperty
github,
               Key
-> UpdateGitLabSelfManagedIntegrationDetailProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"gitlabSelfManaged" (UpdateGitLabSelfManagedIntegrationDetailProperty -> (Key, Value))
-> Maybe UpdateGitLabSelfManagedIntegrationDetailProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe UpdateGitLabSelfManagedIntegrationDetailProperty
gitlabSelfManaged]))
instance Property "github" UpdateDetailsProperty where
  type PropertyType "github" UpdateDetailsProperty = UpdateGitHubIntegrationDetailProperty
  set :: PropertyType "github" UpdateDetailsProperty
-> UpdateDetailsProperty -> UpdateDetailsProperty
set PropertyType "github" UpdateDetailsProperty
newValue UpdateDetailsProperty {Maybe UpdateGitHubIntegrationDetailProperty
Maybe UpdateGitLabSelfManagedIntegrationDetailProperty
()
haddock_workaround_ :: UpdateDetailsProperty -> ()
github :: UpdateDetailsProperty
-> Maybe UpdateGitHubIntegrationDetailProperty
gitlabSelfManaged :: UpdateDetailsProperty
-> Maybe UpdateGitLabSelfManagedIntegrationDetailProperty
haddock_workaround_ :: ()
github :: Maybe UpdateGitHubIntegrationDetailProperty
gitlabSelfManaged :: Maybe UpdateGitLabSelfManagedIntegrationDetailProperty
..}
    = UpdateDetailsProperty {github :: Maybe UpdateGitHubIntegrationDetailProperty
github = UpdateGitHubIntegrationDetailProperty
-> Maybe UpdateGitHubIntegrationDetailProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "github" UpdateDetailsProperty
UpdateGitHubIntegrationDetailProperty
newValue, Maybe UpdateGitLabSelfManagedIntegrationDetailProperty
()
haddock_workaround_ :: ()
gitlabSelfManaged :: Maybe UpdateGitLabSelfManagedIntegrationDetailProperty
haddock_workaround_ :: ()
gitlabSelfManaged :: Maybe UpdateGitLabSelfManagedIntegrationDetailProperty
..}
instance Property "gitlabSelfManaged" UpdateDetailsProperty where
  type PropertyType "gitlabSelfManaged" UpdateDetailsProperty = UpdateGitLabSelfManagedIntegrationDetailProperty
  set :: PropertyType "gitlabSelfManaged" UpdateDetailsProperty
-> UpdateDetailsProperty -> UpdateDetailsProperty
set PropertyType "gitlabSelfManaged" UpdateDetailsProperty
newValue UpdateDetailsProperty {Maybe UpdateGitHubIntegrationDetailProperty
Maybe UpdateGitLabSelfManagedIntegrationDetailProperty
()
haddock_workaround_ :: UpdateDetailsProperty -> ()
github :: UpdateDetailsProperty
-> Maybe UpdateGitHubIntegrationDetailProperty
gitlabSelfManaged :: UpdateDetailsProperty
-> Maybe UpdateGitLabSelfManagedIntegrationDetailProperty
haddock_workaround_ :: ()
github :: Maybe UpdateGitHubIntegrationDetailProperty
gitlabSelfManaged :: Maybe UpdateGitLabSelfManagedIntegrationDetailProperty
..}
    = UpdateDetailsProperty
        {gitlabSelfManaged :: Maybe UpdateGitLabSelfManagedIntegrationDetailProperty
gitlabSelfManaged = UpdateGitLabSelfManagedIntegrationDetailProperty
-> Maybe UpdateGitLabSelfManagedIntegrationDetailProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "gitlabSelfManaged" UpdateDetailsProperty
UpdateGitLabSelfManagedIntegrationDetailProperty
newValue, Maybe UpdateGitHubIntegrationDetailProperty
()
haddock_workaround_ :: ()
github :: Maybe UpdateGitHubIntegrationDetailProperty
haddock_workaround_ :: ()
github :: Maybe UpdateGitHubIntegrationDetailProperty
..}