module Stratosphere.GameLift.Build ( module Exports, Build(..), mkBuild ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.GameLift.Build.StorageLocationProperty as Exports import Stratosphere.ResourceProperties import Stratosphere.Tag import Stratosphere.Value data Build = -- | See: Build {haddock_workaround_ :: (), -- | See: name :: (Prelude.Maybe (Value Prelude.Text)), -- | See: operatingSystem :: (Prelude.Maybe (Value Prelude.Text)), -- | See: serverSdkVersion :: (Prelude.Maybe (Value Prelude.Text)), -- | See: storageLocation :: (Prelude.Maybe StorageLocationProperty), -- | See: tags :: (Prelude.Maybe [Tag]), -- | See: version :: (Prelude.Maybe (Value Prelude.Text))} deriving stock (Prelude.Eq, Prelude.Show) mkBuild :: Build mkBuild = Build {haddock_workaround_ = (), name = Prelude.Nothing, operatingSystem = Prelude.Nothing, serverSdkVersion = Prelude.Nothing, storageLocation = Prelude.Nothing, tags = Prelude.Nothing, version = Prelude.Nothing} instance ToResourceProperties Build where toResourceProperties Build {..} = ResourceProperties {awsType = "AWS::GameLift::Build", supportsTags = Prelude.True, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "Name" Prelude.<$> name, (JSON..=) "OperatingSystem" Prelude.<$> operatingSystem, (JSON..=) "ServerSdkVersion" Prelude.<$> serverSdkVersion, (JSON..=) "StorageLocation" Prelude.<$> storageLocation, (JSON..=) "Tags" Prelude.<$> tags, (JSON..=) "Version" Prelude.<$> version])} instance JSON.ToJSON Build where toJSON Build {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "Name" Prelude.<$> name, (JSON..=) "OperatingSystem" Prelude.<$> operatingSystem, (JSON..=) "ServerSdkVersion" Prelude.<$> serverSdkVersion, (JSON..=) "StorageLocation" Prelude.<$> storageLocation, (JSON..=) "Tags" Prelude.<$> tags, (JSON..=) "Version" Prelude.<$> version])) instance Property "Name" Build where type PropertyType "Name" Build = Value Prelude.Text set newValue Build {..} = Build {name = Prelude.pure newValue, ..} instance Property "OperatingSystem" Build where type PropertyType "OperatingSystem" Build = Value Prelude.Text set newValue Build {..} = Build {operatingSystem = Prelude.pure newValue, ..} instance Property "ServerSdkVersion" Build where type PropertyType "ServerSdkVersion" Build = Value Prelude.Text set newValue Build {..} = Build {serverSdkVersion = Prelude.pure newValue, ..} instance Property "StorageLocation" Build where type PropertyType "StorageLocation" Build = StorageLocationProperty set newValue Build {..} = Build {storageLocation = Prelude.pure newValue, ..} instance Property "Tags" Build where type PropertyType "Tags" Build = [Tag] set newValue Build {..} = Build {tags = Prelude.pure newValue, ..} instance Property "Version" Build where type PropertyType "Version" Build = Value Prelude.Text set newValue Build {..} = Build {version = Prelude.pure newValue, ..}