{-# LANGUAGE TypeApplications #-}


-- | Copyright  : Will Thompson and Iñaki García Etxebarria
-- License    : LGPL-2.1
-- Maintainer : Iñaki García Etxebarria
-- 
-- Infiniband Settings

#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif

module GI.NM.Objects.SettingInfiniband
    ( 

-- * Exported types
    SettingInfiniband(..)                   ,
    IsSettingInfiniband                     ,
    toSettingInfiniband                     ,


 -- * Methods
-- | 
-- 
--  === __Click to display all available methods, including inherited ones__
-- ==== Methods
-- [bindProperty]("GI.GObject.Objects.Object#g:method:bindProperty"), [bindPropertyFull]("GI.GObject.Objects.Object#g:method:bindPropertyFull"), [compare]("GI.NM.Objects.Setting#g:method:compare"), [diff]("GI.NM.Objects.Setting#g:method:diff"), [duplicate]("GI.NM.Objects.Setting#g:method:duplicate"), [enumerateValues]("GI.NM.Objects.Setting#g:method:enumerateValues"), [forceFloating]("GI.GObject.Objects.Object#g:method:forceFloating"), [freezeNotify]("GI.GObject.Objects.Object#g:method:freezeNotify"), [getv]("GI.GObject.Objects.Object#g:method:getv"), [isFloating]("GI.GObject.Objects.Object#g:method:isFloating"), [notify]("GI.GObject.Objects.Object#g:method:notify"), [notifyByPspec]("GI.GObject.Objects.Object#g:method:notifyByPspec"), [optionClearByName]("GI.NM.Objects.Setting#g:method:optionClearByName"), [optionGet]("GI.NM.Objects.Setting#g:method:optionGet"), [optionGetAllNames]("GI.NM.Objects.Setting#g:method:optionGetAllNames"), [optionGetBoolean]("GI.NM.Objects.Setting#g:method:optionGetBoolean"), [optionGetUint32]("GI.NM.Objects.Setting#g:method:optionGetUint32"), [optionSet]("GI.NM.Objects.Setting#g:method:optionSet"), [optionSetBoolean]("GI.NM.Objects.Setting#g:method:optionSetBoolean"), [optionSetUint32]("GI.NM.Objects.Setting#g:method:optionSetUint32"), [ref]("GI.GObject.Objects.Object#g:method:ref"), [refSink]("GI.GObject.Objects.Object#g:method:refSink"), [runDispose]("GI.GObject.Objects.Object#g:method:runDispose"), [stealData]("GI.GObject.Objects.Object#g:method:stealData"), [stealQdata]("GI.GObject.Objects.Object#g:method:stealQdata"), [thawNotify]("GI.GObject.Objects.Object#g:method:thawNotify"), [toString]("GI.NM.Objects.Setting#g:method:toString"), [unref]("GI.GObject.Objects.Object#g:method:unref"), [verify]("GI.NM.Objects.Setting#g:method:verify"), [verifySecrets]("GI.NM.Objects.Setting#g:method:verifySecrets"), [watchClosure]("GI.GObject.Objects.Object#g:method:watchClosure").
-- 
-- ==== Getters
-- [getData]("GI.GObject.Objects.Object#g:method:getData"), [getDbusPropertyType]("GI.NM.Objects.Setting#g:method:getDbusPropertyType"), [getMacAddress]("GI.NM.Objects.SettingInfiniband#g:method:getMacAddress"), [getMtu]("GI.NM.Objects.SettingInfiniband#g:method:getMtu"), [getName]("GI.NM.Objects.Setting#g:method:getName"), [getPKey]("GI.NM.Objects.SettingInfiniband#g:method:getPKey"), [getParent]("GI.NM.Objects.SettingInfiniband#g:method:getParent"), [getProperty]("GI.GObject.Objects.Object#g:method:getProperty"), [getQdata]("GI.GObject.Objects.Object#g:method:getQdata"), [getSecretFlags]("GI.NM.Objects.Setting#g:method:getSecretFlags"), [getTransportMode]("GI.NM.Objects.SettingInfiniband#g:method:getTransportMode"), [getVirtualInterfaceName]("GI.NM.Objects.SettingInfiniband#g:method:getVirtualInterfaceName").
-- 
-- ==== Setters
-- [setData]("GI.GObject.Objects.Object#g:method:setData"), [setDataFull]("GI.GObject.Objects.Object#g:method:setDataFull"), [setProperty]("GI.GObject.Objects.Object#g:method:setProperty"), [setSecretFlags]("GI.NM.Objects.Setting#g:method:setSecretFlags").

#if defined(ENABLE_OVERLOADING)
    ResolveSettingInfinibandMethod          ,
#endif

-- ** getMacAddress #method:getMacAddress#

#if defined(ENABLE_OVERLOADING)
    SettingInfinibandGetMacAddressMethodInfo,
#endif
    settingInfinibandGetMacAddress          ,


-- ** getMtu #method:getMtu#

#if defined(ENABLE_OVERLOADING)
    SettingInfinibandGetMtuMethodInfo       ,
#endif
    settingInfinibandGetMtu                 ,


-- ** getPKey #method:getPKey#

#if defined(ENABLE_OVERLOADING)
    SettingInfinibandGetPKeyMethodInfo      ,
#endif
    settingInfinibandGetPKey                ,


-- ** getParent #method:getParent#

#if defined(ENABLE_OVERLOADING)
    SettingInfinibandGetParentMethodInfo    ,
#endif
    settingInfinibandGetParent              ,


-- ** getTransportMode #method:getTransportMode#

#if defined(ENABLE_OVERLOADING)
    SettingInfinibandGetTransportModeMethodInfo,
#endif
    settingInfinibandGetTransportMode       ,


-- ** getVirtualInterfaceName #method:getVirtualInterfaceName#

#if defined(ENABLE_OVERLOADING)
    SettingInfinibandGetVirtualInterfaceNameMethodInfo,
#endif
    settingInfinibandGetVirtualInterfaceName,


-- ** new #method:new#

    settingInfinibandNew                    ,




 -- * Properties


-- ** macAddress #attr:macAddress#
-- | If specified, this connection will only apply to the IPoIB device whose
-- permanent MAC address matches. This property does not change the MAC
-- address of the device (i.e. MAC spoofing).

#if defined(ENABLE_OVERLOADING)
    SettingInfinibandMacAddressPropertyInfo ,
#endif
    clearSettingInfinibandMacAddress        ,
    constructSettingInfinibandMacAddress    ,
    getSettingInfinibandMacAddress          ,
    setSettingInfinibandMacAddress          ,
#if defined(ENABLE_OVERLOADING)
    settingInfinibandMacAddress             ,
#endif


-- ** mtu #attr:mtu#
-- | If non-zero, only transmit packets of the specified size or smaller,
-- breaking larger packets up into multiple frames.

#if defined(ENABLE_OVERLOADING)
    SettingInfinibandMtuPropertyInfo        ,
#endif
    constructSettingInfinibandMtu           ,
    getSettingInfinibandMtu                 ,
    setSettingInfinibandMtu                 ,
#if defined(ENABLE_OVERLOADING)
    settingInfinibandMtu                    ,
#endif


-- ** pKey #attr:pKey#
-- | The InfiniBand p-key to use for this device. A value of -1 means to use
-- the default p-key (aka \"the p-key at index 0\"). Otherwise, it is a
-- 16-bit unsigned integer, whose high bit 0x8000 is set if it is a \"full
-- membership\" p-key. The values 0 and 0x8000 are not allowed.
-- 
-- With the p-key set, the interface name is always \"$parent.$p_key\".
-- Setting \"connection.interface-name\" to another name is not supported.
-- 
-- Note that kernel will internally always set the full membership bit,
-- although the interface name does not reflect that. Usually the user
-- would want to configure a full membership p-key with 0x8000 flag set.

#if defined(ENABLE_OVERLOADING)
    SettingInfinibandPKeyPropertyInfo       ,
#endif
    constructSettingInfinibandPKey          ,
    getSettingInfinibandPKey                ,
    setSettingInfinibandPKey                ,
#if defined(ENABLE_OVERLOADING)
    settingInfinibandPKey                   ,
#endif


-- ** parent #attr:parent#
-- | The interface name of the parent device of this device. Normally 'P.Nothing',
-- but if the t'GI.NM.Objects.SettingInfiniband.SettingInfiniband':@/p_key/@ property is set, then you must
-- specify the base device by setting either this property or
-- [SettingInfiniband:macAddress]("GI.NM.Objects.SettingInfiniband#g:attr:macAddress").

#if defined(ENABLE_OVERLOADING)
    SettingInfinibandParentPropertyInfo     ,
#endif
    clearSettingInfinibandParent            ,
    constructSettingInfinibandParent        ,
    getSettingInfinibandParent              ,
    setSettingInfinibandParent              ,
#if defined(ENABLE_OVERLOADING)
    settingInfinibandParent                 ,
#endif


-- ** transportMode #attr:transportMode#
-- | The IP-over-InfiniBand transport mode. Either \"datagram\" or
-- \"connected\".

#if defined(ENABLE_OVERLOADING)
    SettingInfinibandTransportModePropertyInfo,
#endif
    clearSettingInfinibandTransportMode     ,
    constructSettingInfinibandTransportMode ,
    getSettingInfinibandTransportMode       ,
    setSettingInfinibandTransportMode       ,
#if defined(ENABLE_OVERLOADING)
    settingInfinibandTransportMode          ,
#endif




    ) where

import Data.GI.Base.ShortPrelude
import qualified Data.GI.Base.ShortPrelude as SP
import qualified Data.GI.Base.Overloading as O
import qualified Prelude as P

import qualified Data.GI.Base.Attributes as GI.Attributes
import qualified Data.GI.Base.BasicTypes as B.Types
import qualified Data.GI.Base.ManagedPtr as B.ManagedPtr
import qualified Data.GI.Base.GArray as B.GArray
import qualified Data.GI.Base.GClosure as B.GClosure
import qualified Data.GI.Base.GError as B.GError
import qualified Data.GI.Base.GHashTable as B.GHT
import qualified Data.GI.Base.GVariant as B.GVariant
import qualified Data.GI.Base.GValue as B.GValue
import qualified Data.GI.Base.GParamSpec as B.GParamSpec
import qualified Data.GI.Base.CallStack as B.CallStack
import qualified Data.GI.Base.Properties as B.Properties
import qualified Data.GI.Base.Signals as B.Signals
import qualified Control.Monad.IO.Class as MIO
import qualified Data.Coerce as Coerce
import qualified Data.Text as T
import qualified Data.Kind as DK
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import qualified Foreign.Ptr as FP
import qualified GHC.OverloadedLabels as OL
import qualified GHC.Records as R
import qualified Data.Word as DW
import qualified Data.Int as DI
import qualified System.Posix.Types as SPT
import qualified Foreign.C.Types as FCT

-- Workaround for https://gitlab.haskell.org/ghc/ghc/-/issues/23392
#if MIN_VERSION_base(4,18,0)
import qualified GI.GLib.Structs.Bytes as GLib.Bytes
import qualified GI.GLib.Structs.VariantType as GLib.VariantType
import qualified GI.GObject.Objects.Object as GObject.Object
import qualified GI.NM.Callbacks as NM.Callbacks
import {-# SOURCE #-} qualified GI.NM.Enums as NM.Enums
import {-# SOURCE #-} qualified GI.NM.Flags as NM.Flags
import {-# SOURCE #-} qualified GI.NM.Interfaces.Connection as NM.Connection
import {-# SOURCE #-} qualified GI.NM.Objects.Setting as NM.Setting
import {-# SOURCE #-} qualified GI.NM.Objects.Setting8021x as NM.Setting8021x
import {-# SOURCE #-} qualified GI.NM.Objects.SettingAdsl as NM.SettingAdsl
import {-# SOURCE #-} qualified GI.NM.Objects.SettingBluetooth as NM.SettingBluetooth
import {-# SOURCE #-} qualified GI.NM.Objects.SettingBond as NM.SettingBond
import {-# SOURCE #-} qualified GI.NM.Objects.SettingBridge as NM.SettingBridge
import {-# SOURCE #-} qualified GI.NM.Objects.SettingBridgePort as NM.SettingBridgePort
import {-# SOURCE #-} qualified GI.NM.Objects.SettingCdma as NM.SettingCdma
import {-# SOURCE #-} qualified GI.NM.Objects.SettingConnection as NM.SettingConnection
import {-# SOURCE #-} qualified GI.NM.Objects.SettingDcb as NM.SettingDcb
import {-# SOURCE #-} qualified GI.NM.Objects.SettingDummy as NM.SettingDummy
import {-# SOURCE #-} qualified GI.NM.Objects.SettingGeneric as NM.SettingGeneric
import {-# SOURCE #-} qualified GI.NM.Objects.SettingGsm as NM.SettingGsm
import {-# SOURCE #-} qualified GI.NM.Objects.SettingIP4Config as NM.SettingIP4Config
import {-# SOURCE #-} qualified GI.NM.Objects.SettingIP6Config as NM.SettingIP6Config
import {-# SOURCE #-} qualified GI.NM.Objects.SettingIPConfig as NM.SettingIPConfig
import {-# SOURCE #-} qualified GI.NM.Objects.SettingIPTunnel as NM.SettingIPTunnel
import {-# SOURCE #-} qualified GI.NM.Objects.SettingMacsec as NM.SettingMacsec
import {-# SOURCE #-} qualified GI.NM.Objects.SettingMacvlan as NM.SettingMacvlan
import {-# SOURCE #-} qualified GI.NM.Objects.SettingOlpcMesh as NM.SettingOlpcMesh
import {-# SOURCE #-} qualified GI.NM.Objects.SettingOvsBridge as NM.SettingOvsBridge
import {-# SOURCE #-} qualified GI.NM.Objects.SettingOvsInterface as NM.SettingOvsInterface
import {-# SOURCE #-} qualified GI.NM.Objects.SettingOvsPatch as NM.SettingOvsPatch
import {-# SOURCE #-} qualified GI.NM.Objects.SettingOvsPort as NM.SettingOvsPort
import {-# SOURCE #-} qualified GI.NM.Objects.SettingPpp as NM.SettingPpp
import {-# SOURCE #-} qualified GI.NM.Objects.SettingPppoe as NM.SettingPppoe
import {-# SOURCE #-} qualified GI.NM.Objects.SettingProxy as NM.SettingProxy
import {-# SOURCE #-} qualified GI.NM.Objects.SettingSerial as NM.SettingSerial
import {-# SOURCE #-} qualified GI.NM.Objects.SettingTCConfig as NM.SettingTCConfig
import {-# SOURCE #-} qualified GI.NM.Objects.SettingTeam as NM.SettingTeam
import {-# SOURCE #-} qualified GI.NM.Objects.SettingTeamPort as NM.SettingTeamPort
import {-# SOURCE #-} qualified GI.NM.Objects.SettingTun as NM.SettingTun
import {-# SOURCE #-} qualified GI.NM.Objects.SettingVlan as NM.SettingVlan
import {-# SOURCE #-} qualified GI.NM.Objects.SettingVpn as NM.SettingVpn
import {-# SOURCE #-} qualified GI.NM.Objects.SettingVxlan as NM.SettingVxlan
import {-# SOURCE #-} qualified GI.NM.Objects.SettingWimax as NM.SettingWimax
import {-# SOURCE #-} qualified GI.NM.Objects.SettingWired as NM.SettingWired
import {-# SOURCE #-} qualified GI.NM.Objects.SettingWireless as NM.SettingWireless
import {-# SOURCE #-} qualified GI.NM.Objects.SettingWirelessSecurity as NM.SettingWirelessSecurity
import {-# SOURCE #-} qualified GI.NM.Structs.BridgeVlan as NM.BridgeVlan
import {-# SOURCE #-} qualified GI.NM.Structs.IPAddress as NM.IPAddress
import {-# SOURCE #-} qualified GI.NM.Structs.IPRoute as NM.IPRoute
import {-# SOURCE #-} qualified GI.NM.Structs.IPRoutingRule as NM.IPRoutingRule
import {-# SOURCE #-} qualified GI.NM.Structs.Range as NM.Range
import {-# SOURCE #-} qualified GI.NM.Structs.TCAction as NM.TCAction
import {-# SOURCE #-} qualified GI.NM.Structs.TCQdisc as NM.TCQdisc
import {-# SOURCE #-} qualified GI.NM.Structs.TCTfilter as NM.TCTfilter
import {-# SOURCE #-} qualified GI.NM.Structs.TeamLinkWatcher as NM.TeamLinkWatcher
import {-# SOURCE #-} qualified GI.NM.Structs.VariantAttributeSpec as NM.VariantAttributeSpec

#else
import qualified GI.GObject.Objects.Object as GObject.Object
import {-# SOURCE #-} qualified GI.NM.Objects.Setting as NM.Setting

#endif

-- | Memory-managed wrapper type.
newtype SettingInfiniband = SettingInfiniband (SP.ManagedPtr SettingInfiniband)
    deriving (SettingInfiniband -> SettingInfiniband -> Bool
(SettingInfiniband -> SettingInfiniband -> Bool)
-> (SettingInfiniband -> SettingInfiniband -> Bool)
-> Eq SettingInfiniband
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SettingInfiniband -> SettingInfiniband -> Bool
== :: SettingInfiniband -> SettingInfiniband -> Bool
$c/= :: SettingInfiniband -> SettingInfiniband -> Bool
/= :: SettingInfiniband -> SettingInfiniband -> Bool
Eq)

instance SP.ManagedPtrNewtype SettingInfiniband where
    toManagedPtr :: SettingInfiniband -> ManagedPtr SettingInfiniband
toManagedPtr (SettingInfiniband ManagedPtr SettingInfiniband
p) = ManagedPtr SettingInfiniband
p

foreign import ccall "nm_setting_infiniband_get_type"
    c_nm_setting_infiniband_get_type :: IO B.Types.GType

instance B.Types.TypedObject SettingInfiniband where
    glibType :: IO GType
glibType = IO GType
c_nm_setting_infiniband_get_type

instance B.Types.GObject SettingInfiniband

-- | Type class for types which can be safely cast to t'SettingInfiniband', for instance with `toSettingInfiniband`.
class (SP.GObject o, O.IsDescendantOf SettingInfiniband o) => IsSettingInfiniband o
instance (SP.GObject o, O.IsDescendantOf SettingInfiniband o) => IsSettingInfiniband o

instance O.HasParentTypes SettingInfiniband
type instance O.ParentTypes SettingInfiniband = '[NM.Setting.Setting, GObject.Object.Object]

-- | Cast to t'SettingInfiniband', for types for which this is known to be safe. For general casts, use 'Data.GI.Base.ManagedPtr.castTo'.
toSettingInfiniband :: (MIO.MonadIO m, IsSettingInfiniband o) => o -> m SettingInfiniband
toSettingInfiniband :: forall (m :: * -> *) o.
(MonadIO m, IsSettingInfiniband o) =>
o -> m SettingInfiniband
toSettingInfiniband = IO SettingInfiniband -> m SettingInfiniband
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO SettingInfiniband -> m SettingInfiniband)
-> (o -> IO SettingInfiniband) -> o -> m SettingInfiniband
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr SettingInfiniband -> SettingInfiniband)
-> o -> IO SettingInfiniband
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
 ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
B.ManagedPtr.unsafeCastTo ManagedPtr SettingInfiniband -> SettingInfiniband
SettingInfiniband

-- | Convert t'SettingInfiniband' to and from t'Data.GI.Base.GValue.GValue'. See 'Data.GI.Base.GValue.toGValue' and 'Data.GI.Base.GValue.fromGValue'.
instance B.GValue.IsGValue (Maybe SettingInfiniband) where
    gvalueGType_ :: IO GType
gvalueGType_ = IO GType
c_nm_setting_infiniband_get_type
    gvalueSet_ :: Ptr GValue -> Maybe SettingInfiniband -> IO ()
gvalueSet_ Ptr GValue
gv Maybe SettingInfiniband
P.Nothing = Ptr GValue -> Ptr SettingInfiniband -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv (Ptr SettingInfiniband
forall a. Ptr a
FP.nullPtr :: FP.Ptr SettingInfiniband)
    gvalueSet_ Ptr GValue
gv (P.Just SettingInfiniband
obj) = SettingInfiniband -> (Ptr SettingInfiniband -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr SettingInfiniband
obj (Ptr GValue -> Ptr SettingInfiniband -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv)
    gvalueGet_ :: Ptr GValue -> IO (Maybe SettingInfiniband)
gvalueGet_ Ptr GValue
gv = do
        Ptr SettingInfiniband
ptr <- Ptr GValue -> IO (Ptr SettingInfiniband)
forall a. GObject a => Ptr GValue -> IO (Ptr a)
B.GValue.get_object Ptr GValue
gv :: IO (FP.Ptr SettingInfiniband)
        if Ptr SettingInfiniband
ptr Ptr SettingInfiniband -> Ptr SettingInfiniband -> Bool
forall a. Eq a => a -> a -> Bool
/= Ptr SettingInfiniband
forall a. Ptr a
FP.nullPtr
        then SettingInfiniband -> Maybe SettingInfiniband
forall a. a -> Maybe a
P.Just (SettingInfiniband -> Maybe SettingInfiniband)
-> IO SettingInfiniband -> IO (Maybe SettingInfiniband)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> (ManagedPtr SettingInfiniband -> SettingInfiniband)
-> Ptr SettingInfiniband -> IO SettingInfiniband
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr SettingInfiniband -> SettingInfiniband
SettingInfiniband Ptr SettingInfiniband
ptr
        else Maybe SettingInfiniband -> IO (Maybe SettingInfiniband)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe SettingInfiniband
forall a. Maybe a
P.Nothing
        
    

#if defined(ENABLE_OVERLOADING)
type family ResolveSettingInfinibandMethod (t :: Symbol) (o :: DK.Type) :: DK.Type where
    ResolveSettingInfinibandMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
    ResolveSettingInfinibandMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
    ResolveSettingInfinibandMethod "compare" o = NM.Setting.SettingCompareMethodInfo
    ResolveSettingInfinibandMethod "diff" o = NM.Setting.SettingDiffMethodInfo
    ResolveSettingInfinibandMethod "duplicate" o = NM.Setting.SettingDuplicateMethodInfo
    ResolveSettingInfinibandMethod "enumerateValues" o = NM.Setting.SettingEnumerateValuesMethodInfo
    ResolveSettingInfinibandMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
    ResolveSettingInfinibandMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
    ResolveSettingInfinibandMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
    ResolveSettingInfinibandMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
    ResolveSettingInfinibandMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
    ResolveSettingInfinibandMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
    ResolveSettingInfinibandMethod "optionClearByName" o = NM.Setting.SettingOptionClearByNameMethodInfo
    ResolveSettingInfinibandMethod "optionGet" o = NM.Setting.SettingOptionGetMethodInfo
    ResolveSettingInfinibandMethod "optionGetAllNames" o = NM.Setting.SettingOptionGetAllNamesMethodInfo
    ResolveSettingInfinibandMethod "optionGetBoolean" o = NM.Setting.SettingOptionGetBooleanMethodInfo
    ResolveSettingInfinibandMethod "optionGetUint32" o = NM.Setting.SettingOptionGetUint32MethodInfo
    ResolveSettingInfinibandMethod "optionSet" o = NM.Setting.SettingOptionSetMethodInfo
    ResolveSettingInfinibandMethod "optionSetBoolean" o = NM.Setting.SettingOptionSetBooleanMethodInfo
    ResolveSettingInfinibandMethod "optionSetUint32" o = NM.Setting.SettingOptionSetUint32MethodInfo
    ResolveSettingInfinibandMethod "ref" o = GObject.Object.ObjectRefMethodInfo
    ResolveSettingInfinibandMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
    ResolveSettingInfinibandMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
    ResolveSettingInfinibandMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
    ResolveSettingInfinibandMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
    ResolveSettingInfinibandMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
    ResolveSettingInfinibandMethod "toString" o = NM.Setting.SettingToStringMethodInfo
    ResolveSettingInfinibandMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
    ResolveSettingInfinibandMethod "verify" o = NM.Setting.SettingVerifyMethodInfo
    ResolveSettingInfinibandMethod "verifySecrets" o = NM.Setting.SettingVerifySecretsMethodInfo
    ResolveSettingInfinibandMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
    ResolveSettingInfinibandMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
    ResolveSettingInfinibandMethod "getDbusPropertyType" o = NM.Setting.SettingGetDbusPropertyTypeMethodInfo
    ResolveSettingInfinibandMethod "getMacAddress" o = SettingInfinibandGetMacAddressMethodInfo
    ResolveSettingInfinibandMethod "getMtu" o = SettingInfinibandGetMtuMethodInfo
    ResolveSettingInfinibandMethod "getName" o = NM.Setting.SettingGetNameMethodInfo
    ResolveSettingInfinibandMethod "getPKey" o = SettingInfinibandGetPKeyMethodInfo
    ResolveSettingInfinibandMethod "getParent" o = SettingInfinibandGetParentMethodInfo
    ResolveSettingInfinibandMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
    ResolveSettingInfinibandMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
    ResolveSettingInfinibandMethod "getSecretFlags" o = NM.Setting.SettingGetSecretFlagsMethodInfo
    ResolveSettingInfinibandMethod "getTransportMode" o = SettingInfinibandGetTransportModeMethodInfo
    ResolveSettingInfinibandMethod "getVirtualInterfaceName" o = SettingInfinibandGetVirtualInterfaceNameMethodInfo
    ResolveSettingInfinibandMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
    ResolveSettingInfinibandMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
    ResolveSettingInfinibandMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
    ResolveSettingInfinibandMethod "setSecretFlags" o = NM.Setting.SettingSetSecretFlagsMethodInfo
    ResolveSettingInfinibandMethod l o = O.MethodResolutionFailed l o

instance (info ~ ResolveSettingInfinibandMethod t SettingInfiniband, O.OverloadedMethod info SettingInfiniband p) => OL.IsLabel t (SettingInfiniband -> p) where
#if MIN_VERSION_base(4,10,0)
    fromLabel = O.overloadedMethod @info
#else
    fromLabel _ = O.overloadedMethod @info
#endif

#if MIN_VERSION_base(4,13,0)
instance (info ~ ResolveSettingInfinibandMethod t SettingInfiniband, O.OverloadedMethod info SettingInfiniband p, R.HasField t SettingInfiniband p) => R.HasField t SettingInfiniband p where
    getField = O.overloadedMethod @info

#endif

instance (info ~ ResolveSettingInfinibandMethod t SettingInfiniband, O.OverloadedMethodInfo info SettingInfiniband) => OL.IsLabel t (O.MethodProxy info SettingInfiniband) where
#if MIN_VERSION_base(4,10,0)
    fromLabel = O.MethodProxy
#else
    fromLabel _ = O.MethodProxy
#endif

#endif

-- VVV Prop "mac-address"
   -- Type: TBasicType TUTF8
   -- Flags: [PropertyReadable,PropertyWritable]
   -- Nullable: (Just False,Nothing)

-- | Get the value of the “@mac-address@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.get' settingInfiniband #macAddress
-- @
getSettingInfinibandMacAddress :: (MonadIO m, IsSettingInfiniband o) => o -> m T.Text
getSettingInfinibandMacAddress :: forall (m :: * -> *) o.
(MonadIO m, IsSettingInfiniband o) =>
o -> m Text
getSettingInfinibandMacAddress o
obj = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ Text -> IO (Maybe Text) -> IO Text
forall a. HasCallStack => Text -> IO (Maybe a) -> IO a
checkUnexpectedNothing Text
"getSettingInfinibandMacAddress" (IO (Maybe Text) -> IO Text) -> IO (Maybe Text) -> IO Text
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"mac-address"

-- | Set the value of the “@mac-address@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.set' settingInfiniband [ #macAddress 'Data.GI.Base.Attributes.:=' value ]
-- @
setSettingInfinibandMacAddress :: (MonadIO m, IsSettingInfiniband o) => o -> T.Text -> m ()
setSettingInfinibandMacAddress :: forall (m :: * -> *) o.
(MonadIO m, IsSettingInfiniband o) =>
o -> Text -> m ()
setSettingInfinibandMacAddress o
obj Text
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
    o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"mac-address" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)

-- | Construct a t'GValueConstruct' with valid value for the “@mac-address@” property. This is rarely needed directly, but it is used by `Data.GI.Base.Constructible.new`.
constructSettingInfinibandMacAddress :: (IsSettingInfiniband o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructSettingInfinibandMacAddress :: forall o (m :: * -> *).
(IsSettingInfiniband o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructSettingInfinibandMacAddress Text
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
    IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"mac-address" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)

-- | Set the value of the “@mac-address@” property to `Nothing`.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.clear' #macAddress
-- @
clearSettingInfinibandMacAddress :: (MonadIO m, IsSettingInfiniband o) => o -> m ()
clearSettingInfinibandMacAddress :: forall (m :: * -> *) o.
(MonadIO m, IsSettingInfiniband o) =>
o -> m ()
clearSettingInfinibandMacAddress o
obj = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"mac-address" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)

#if defined(ENABLE_OVERLOADING)
data SettingInfinibandMacAddressPropertyInfo
instance AttrInfo SettingInfinibandMacAddressPropertyInfo where
    type AttrAllowedOps SettingInfinibandMacAddressPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
    type AttrBaseTypeConstraint SettingInfinibandMacAddressPropertyInfo = IsSettingInfiniband
    type AttrSetTypeConstraint SettingInfinibandMacAddressPropertyInfo = (~) T.Text
    type AttrTransferTypeConstraint SettingInfinibandMacAddressPropertyInfo = (~) T.Text
    type AttrTransferType SettingInfinibandMacAddressPropertyInfo = T.Text
    type AttrGetType SettingInfinibandMacAddressPropertyInfo = T.Text
    type AttrLabel SettingInfinibandMacAddressPropertyInfo = "mac-address"
    type AttrOrigin SettingInfinibandMacAddressPropertyInfo = SettingInfiniband
    attrGet = getSettingInfinibandMacAddress
    attrSet = setSettingInfinibandMacAddress
    attrTransfer _ v = do
        return v
    attrConstruct = constructSettingInfinibandMacAddress
    attrClear = clearSettingInfinibandMacAddress
    dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.SettingInfiniband.macAddress"
        , O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingInfiniband.html#g:attr:macAddress"
        })
#endif

-- VVV Prop "mtu"
   -- Type: TBasicType TUInt
   -- Flags: [PropertyReadable,PropertyWritable]
   -- Nullable: (Nothing,Nothing)

-- | Get the value of the “@mtu@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.get' settingInfiniband #mtu
-- @
getSettingInfinibandMtu :: (MonadIO m, IsSettingInfiniband o) => o -> m Word32
getSettingInfinibandMtu :: forall (m :: * -> *) o.
(MonadIO m, IsSettingInfiniband o) =>
o -> m Word32
getSettingInfinibandMtu o
obj = IO Word32 -> m Word32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Word32
forall a. GObject a => a -> String -> IO Word32
B.Properties.getObjectPropertyUInt32 o
obj String
"mtu"

-- | Set the value of the “@mtu@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.set' settingInfiniband [ #mtu 'Data.GI.Base.Attributes.:=' value ]
-- @
setSettingInfinibandMtu :: (MonadIO m, IsSettingInfiniband o) => o -> Word32 -> m ()
setSettingInfinibandMtu :: forall (m :: * -> *) o.
(MonadIO m, IsSettingInfiniband o) =>
o -> Word32 -> m ()
setSettingInfinibandMtu o
obj Word32
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
    o -> String -> Word32 -> IO ()
forall a. GObject a => a -> String -> Word32 -> IO ()
B.Properties.setObjectPropertyUInt32 o
obj String
"mtu" Word32
val

-- | Construct a t'GValueConstruct' with valid value for the “@mtu@” property. This is rarely needed directly, but it is used by `Data.GI.Base.Constructible.new`.
constructSettingInfinibandMtu :: (IsSettingInfiniband o, MIO.MonadIO m) => Word32 -> m (GValueConstruct o)
constructSettingInfinibandMtu :: forall o (m :: * -> *).
(IsSettingInfiniband o, MonadIO m) =>
Word32 -> m (GValueConstruct o)
constructSettingInfinibandMtu Word32
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
    IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Word32 -> IO (GValueConstruct o)
forall o. String -> Word32 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyUInt32 String
"mtu" Word32
val

#if defined(ENABLE_OVERLOADING)
data SettingInfinibandMtuPropertyInfo
instance AttrInfo SettingInfinibandMtuPropertyInfo where
    type AttrAllowedOps SettingInfinibandMtuPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
    type AttrBaseTypeConstraint SettingInfinibandMtuPropertyInfo = IsSettingInfiniband
    type AttrSetTypeConstraint SettingInfinibandMtuPropertyInfo = (~) Word32
    type AttrTransferTypeConstraint SettingInfinibandMtuPropertyInfo = (~) Word32
    type AttrTransferType SettingInfinibandMtuPropertyInfo = Word32
    type AttrGetType SettingInfinibandMtuPropertyInfo = Word32
    type AttrLabel SettingInfinibandMtuPropertyInfo = "mtu"
    type AttrOrigin SettingInfinibandMtuPropertyInfo = SettingInfiniband
    attrGet = getSettingInfinibandMtu
    attrSet = setSettingInfinibandMtu
    attrTransfer _ v = do
        return v
    attrConstruct = constructSettingInfinibandMtu
    attrClear = undefined
    dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.SettingInfiniband.mtu"
        , O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingInfiniband.html#g:attr:mtu"
        })
#endif

-- VVV Prop "p-key"
   -- Type: TBasicType TInt
   -- Flags: [PropertyReadable,PropertyWritable]
   -- Nullable: (Just False,Nothing)

-- | Get the value of the “@p-key@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.get' settingInfiniband #pKey
-- @
getSettingInfinibandPKey :: (MonadIO m, IsSettingInfiniband o) => o -> m Int32
getSettingInfinibandPKey :: forall (m :: * -> *) o.
(MonadIO m, IsSettingInfiniband o) =>
o -> m Int32
getSettingInfinibandPKey o
obj = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Int32
forall a. GObject a => a -> String -> IO Int32
B.Properties.getObjectPropertyInt32 o
obj String
"p-key"

-- | Set the value of the “@p-key@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.set' settingInfiniband [ #pKey 'Data.GI.Base.Attributes.:=' value ]
-- @
setSettingInfinibandPKey :: (MonadIO m, IsSettingInfiniband o) => o -> Int32 -> m ()
setSettingInfinibandPKey :: forall (m :: * -> *) o.
(MonadIO m, IsSettingInfiniband o) =>
o -> Int32 -> m ()
setSettingInfinibandPKey o
obj Int32
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
    o -> String -> Int32 -> IO ()
forall a. GObject a => a -> String -> Int32 -> IO ()
B.Properties.setObjectPropertyInt32 o
obj String
"p-key" Int32
val

-- | Construct a t'GValueConstruct' with valid value for the “@p-key@” property. This is rarely needed directly, but it is used by `Data.GI.Base.Constructible.new`.
constructSettingInfinibandPKey :: (IsSettingInfiniband o, MIO.MonadIO m) => Int32 -> m (GValueConstruct o)
constructSettingInfinibandPKey :: forall o (m :: * -> *).
(IsSettingInfiniband o, MonadIO m) =>
Int32 -> m (GValueConstruct o)
constructSettingInfinibandPKey Int32
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
    IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Int32 -> IO (GValueConstruct o)
forall o. String -> Int32 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyInt32 String
"p-key" Int32
val

#if defined(ENABLE_OVERLOADING)
data SettingInfinibandPKeyPropertyInfo
instance AttrInfo SettingInfinibandPKeyPropertyInfo where
    type AttrAllowedOps SettingInfinibandPKeyPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
    type AttrBaseTypeConstraint SettingInfinibandPKeyPropertyInfo = IsSettingInfiniband
    type AttrSetTypeConstraint SettingInfinibandPKeyPropertyInfo = (~) Int32
    type AttrTransferTypeConstraint SettingInfinibandPKeyPropertyInfo = (~) Int32
    type AttrTransferType SettingInfinibandPKeyPropertyInfo = Int32
    type AttrGetType SettingInfinibandPKeyPropertyInfo = Int32
    type AttrLabel SettingInfinibandPKeyPropertyInfo = "p-key"
    type AttrOrigin SettingInfinibandPKeyPropertyInfo = SettingInfiniband
    attrGet = getSettingInfinibandPKey
    attrSet = setSettingInfinibandPKey
    attrTransfer _ v = do
        return v
    attrConstruct = constructSettingInfinibandPKey
    attrClear = undefined
    dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.SettingInfiniband.pKey"
        , O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingInfiniband.html#g:attr:pKey"
        })
#endif

-- VVV Prop "parent"
   -- Type: TBasicType TUTF8
   -- Flags: [PropertyReadable,PropertyWritable]
   -- Nullable: (Just False,Nothing)

-- | Get the value of the “@parent@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.get' settingInfiniband #parent
-- @
getSettingInfinibandParent :: (MonadIO m, IsSettingInfiniband o) => o -> m T.Text
getSettingInfinibandParent :: forall (m :: * -> *) o.
(MonadIO m, IsSettingInfiniband o) =>
o -> m Text
getSettingInfinibandParent o
obj = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ Text -> IO (Maybe Text) -> IO Text
forall a. HasCallStack => Text -> IO (Maybe a) -> IO a
checkUnexpectedNothing Text
"getSettingInfinibandParent" (IO (Maybe Text) -> IO Text) -> IO (Maybe Text) -> IO Text
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"parent"

-- | Set the value of the “@parent@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.set' settingInfiniband [ #parent 'Data.GI.Base.Attributes.:=' value ]
-- @
setSettingInfinibandParent :: (MonadIO m, IsSettingInfiniband o) => o -> T.Text -> m ()
setSettingInfinibandParent :: forall (m :: * -> *) o.
(MonadIO m, IsSettingInfiniband o) =>
o -> Text -> m ()
setSettingInfinibandParent o
obj Text
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
    o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"parent" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)

-- | Construct a t'GValueConstruct' with valid value for the “@parent@” property. This is rarely needed directly, but it is used by `Data.GI.Base.Constructible.new`.
constructSettingInfinibandParent :: (IsSettingInfiniband o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructSettingInfinibandParent :: forall o (m :: * -> *).
(IsSettingInfiniband o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructSettingInfinibandParent Text
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
    IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"parent" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)

-- | Set the value of the “@parent@” property to `Nothing`.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.clear' #parent
-- @
clearSettingInfinibandParent :: (MonadIO m, IsSettingInfiniband o) => o -> m ()
clearSettingInfinibandParent :: forall (m :: * -> *) o.
(MonadIO m, IsSettingInfiniband o) =>
o -> m ()
clearSettingInfinibandParent o
obj = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"parent" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)

#if defined(ENABLE_OVERLOADING)
data SettingInfinibandParentPropertyInfo
instance AttrInfo SettingInfinibandParentPropertyInfo where
    type AttrAllowedOps SettingInfinibandParentPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
    type AttrBaseTypeConstraint SettingInfinibandParentPropertyInfo = IsSettingInfiniband
    type AttrSetTypeConstraint SettingInfinibandParentPropertyInfo = (~) T.Text
    type AttrTransferTypeConstraint SettingInfinibandParentPropertyInfo = (~) T.Text
    type AttrTransferType SettingInfinibandParentPropertyInfo = T.Text
    type AttrGetType SettingInfinibandParentPropertyInfo = T.Text
    type AttrLabel SettingInfinibandParentPropertyInfo = "parent"
    type AttrOrigin SettingInfinibandParentPropertyInfo = SettingInfiniband
    attrGet = getSettingInfinibandParent
    attrSet = setSettingInfinibandParent
    attrTransfer _ v = do
        return v
    attrConstruct = constructSettingInfinibandParent
    attrClear = clearSettingInfinibandParent
    dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.SettingInfiniband.parent"
        , O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingInfiniband.html#g:attr:parent"
        })
#endif

-- VVV Prop "transport-mode"
   -- Type: TBasicType TUTF8
   -- Flags: [PropertyReadable,PropertyWritable]
   -- Nullable: (Just False,Nothing)

-- | Get the value of the “@transport-mode@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.get' settingInfiniband #transportMode
-- @
getSettingInfinibandTransportMode :: (MonadIO m, IsSettingInfiniband o) => o -> m T.Text
getSettingInfinibandTransportMode :: forall (m :: * -> *) o.
(MonadIO m, IsSettingInfiniband o) =>
o -> m Text
getSettingInfinibandTransportMode o
obj = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ Text -> IO (Maybe Text) -> IO Text
forall a. HasCallStack => Text -> IO (Maybe a) -> IO a
checkUnexpectedNothing Text
"getSettingInfinibandTransportMode" (IO (Maybe Text) -> IO Text) -> IO (Maybe Text) -> IO Text
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"transport-mode"

-- | Set the value of the “@transport-mode@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.set' settingInfiniband [ #transportMode 'Data.GI.Base.Attributes.:=' value ]
-- @
setSettingInfinibandTransportMode :: (MonadIO m, IsSettingInfiniband o) => o -> T.Text -> m ()
setSettingInfinibandTransportMode :: forall (m :: * -> *) o.
(MonadIO m, IsSettingInfiniband o) =>
o -> Text -> m ()
setSettingInfinibandTransportMode o
obj Text
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
    o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"transport-mode" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)

-- | Construct a t'GValueConstruct' with valid value for the “@transport-mode@” property. This is rarely needed directly, but it is used by `Data.GI.Base.Constructible.new`.
constructSettingInfinibandTransportMode :: (IsSettingInfiniband o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructSettingInfinibandTransportMode :: forall o (m :: * -> *).
(IsSettingInfiniband o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructSettingInfinibandTransportMode Text
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
    IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"transport-mode" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)

-- | Set the value of the “@transport-mode@” property to `Nothing`.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.clear' #transportMode
-- @
clearSettingInfinibandTransportMode :: (MonadIO m, IsSettingInfiniband o) => o -> m ()
clearSettingInfinibandTransportMode :: forall (m :: * -> *) o.
(MonadIO m, IsSettingInfiniband o) =>
o -> m ()
clearSettingInfinibandTransportMode o
obj = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"transport-mode" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)

#if defined(ENABLE_OVERLOADING)
data SettingInfinibandTransportModePropertyInfo
instance AttrInfo SettingInfinibandTransportModePropertyInfo where
    type AttrAllowedOps SettingInfinibandTransportModePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
    type AttrBaseTypeConstraint SettingInfinibandTransportModePropertyInfo = IsSettingInfiniband
    type AttrSetTypeConstraint SettingInfinibandTransportModePropertyInfo = (~) T.Text
    type AttrTransferTypeConstraint SettingInfinibandTransportModePropertyInfo = (~) T.Text
    type AttrTransferType SettingInfinibandTransportModePropertyInfo = T.Text
    type AttrGetType SettingInfinibandTransportModePropertyInfo = T.Text
    type AttrLabel SettingInfinibandTransportModePropertyInfo = "transport-mode"
    type AttrOrigin SettingInfinibandTransportModePropertyInfo = SettingInfiniband
    attrGet = getSettingInfinibandTransportMode
    attrSet = setSettingInfinibandTransportMode
    attrTransfer _ v = do
        return v
    attrConstruct = constructSettingInfinibandTransportMode
    attrClear = clearSettingInfinibandTransportMode
    dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.SettingInfiniband.transportMode"
        , O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingInfiniband.html#g:attr:transportMode"
        })
#endif

#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList SettingInfiniband
type instance O.AttributeList SettingInfiniband = SettingInfinibandAttributeList
type SettingInfinibandAttributeList = ('[ '("macAddress", SettingInfinibandMacAddressPropertyInfo), '("mtu", SettingInfinibandMtuPropertyInfo), '("name", NM.Setting.SettingNamePropertyInfo), '("pKey", SettingInfinibandPKeyPropertyInfo), '("parent", SettingInfinibandParentPropertyInfo), '("transportMode", SettingInfinibandTransportModePropertyInfo)] :: [(Symbol, DK.Type)])
#endif

#if defined(ENABLE_OVERLOADING)
settingInfinibandMacAddress :: AttrLabelProxy "macAddress"
settingInfinibandMacAddress = AttrLabelProxy

settingInfinibandMtu :: AttrLabelProxy "mtu"
settingInfinibandMtu = AttrLabelProxy

settingInfinibandPKey :: AttrLabelProxy "pKey"
settingInfinibandPKey = AttrLabelProxy

settingInfinibandParent :: AttrLabelProxy "parent"
settingInfinibandParent = AttrLabelProxy

settingInfinibandTransportMode :: AttrLabelProxy "transportMode"
settingInfinibandTransportMode = AttrLabelProxy

#endif

#if defined(ENABLE_OVERLOADING)
type instance O.SignalList SettingInfiniband = SettingInfinibandSignalList
type SettingInfinibandSignalList = ('[ '("notify", GObject.Object.ObjectNotifySignalInfo)] :: [(Symbol, DK.Type)])

#endif

-- method SettingInfiniband::new
-- method type : Constructor
-- Args: []
-- Lengths: []
-- returnType: Just
--               (TInterface Name { namespace = "NM" , name = "SettingInfiniband" })
-- throws : False
-- Skip return : False

foreign import ccall "nm_setting_infiniband_new" nm_setting_infiniband_new :: 
    IO (Ptr SettingInfiniband)

-- | Creates a new t'GI.NM.Objects.SettingInfiniband.SettingInfiniband' object with default values.
settingInfinibandNew ::
    (B.CallStack.HasCallStack, MonadIO m) =>
    m SettingInfiniband
    -- ^ __Returns:__ the new empty t'GI.NM.Objects.SettingInfiniband.SettingInfiniband' object
settingInfinibandNew :: forall (m :: * -> *).
(HasCallStack, MonadIO m) =>
m SettingInfiniband
settingInfinibandNew  = IO SettingInfiniband -> m SettingInfiniband
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SettingInfiniband -> m SettingInfiniband)
-> IO SettingInfiniband -> m SettingInfiniband
forall a b. (a -> b) -> a -> b
$ do
    Ptr SettingInfiniband
result <- IO (Ptr SettingInfiniband)
nm_setting_infiniband_new
    Text -> Ptr SettingInfiniband -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingInfinibandNew" Ptr SettingInfiniband
result
    SettingInfiniband
result' <- ((ManagedPtr SettingInfiniband -> SettingInfiniband)
-> Ptr SettingInfiniband -> IO SettingInfiniband
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
wrapObject ManagedPtr SettingInfiniband -> SettingInfiniband
SettingInfiniband) Ptr SettingInfiniband
result
    SettingInfiniband -> IO SettingInfiniband
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return SettingInfiniband
result'

#if defined(ENABLE_OVERLOADING)
#endif

-- method SettingInfiniband::get_mac_address
-- method type : OrdinaryMethod
-- Args: [ Arg
--           { argCName = "setting"
--           , argType =
--               TInterface Name { namespace = "NM" , name = "SettingInfiniband" }
--           , direction = DirectionIn
--           , mayBeNull = False
--           , argDoc =
--               Documentation
--                 { rawDocText = Just "the #NMSettingInfiniband"
--                 , sinceVersion = Nothing
--                 }
--           , argScope = ScopeTypeInvalid
--           , argClosure = -1
--           , argDestroy = -1
--           , argCallerAllocates = False
--           , argCallbackUserData = False
--           , transfer = TransferNothing
--           }
--       ]
-- Lengths: []
-- returnType: Just (TBasicType TUTF8)
-- throws : False
-- Skip return : False

foreign import ccall "nm_setting_infiniband_get_mac_address" nm_setting_infiniband_get_mac_address :: 
    Ptr SettingInfiniband ->                -- setting : TInterface (Name {namespace = "NM", name = "SettingInfiniband"})
    IO CString

-- | /No description available in the introspection data./
settingInfinibandGetMacAddress ::
    (B.CallStack.HasCallStack, MonadIO m, IsSettingInfiniband a) =>
    a
    -- ^ /@setting@/: the t'GI.NM.Objects.SettingInfiniband.SettingInfiniband'
    -> m T.Text
    -- ^ __Returns:__ the [SettingInfiniband:macAddress]("GI.NM.Objects.SettingInfiniband#g:attr:macAddress") property of the setting
settingInfinibandGetMacAddress :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingInfiniband a) =>
a -> m Text
settingInfinibandGetMacAddress a
setting = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
    Ptr SettingInfiniband
setting' <- a -> IO (Ptr SettingInfiniband)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
    CString
result <- Ptr SettingInfiniband -> IO CString
nm_setting_infiniband_get_mac_address Ptr SettingInfiniband
setting'
    Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingInfinibandGetMacAddress" CString
result
    Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
    a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
    Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'

#if defined(ENABLE_OVERLOADING)
data SettingInfinibandGetMacAddressMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsSettingInfiniband a) => O.OverloadedMethod SettingInfinibandGetMacAddressMethodInfo a signature where
    overloadedMethod = settingInfinibandGetMacAddress

instance O.OverloadedMethodInfo SettingInfinibandGetMacAddressMethodInfo a where
    overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.SettingInfiniband.settingInfinibandGetMacAddress",
        O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingInfiniband.html#v:settingInfinibandGetMacAddress"
        })


#endif

-- method SettingInfiniband::get_mtu
-- method type : OrdinaryMethod
-- Args: [ Arg
--           { argCName = "setting"
--           , argType =
--               TInterface Name { namespace = "NM" , name = "SettingInfiniband" }
--           , direction = DirectionIn
--           , mayBeNull = False
--           , argDoc =
--               Documentation
--                 { rawDocText = Just "the #NMSettingInfiniband"
--                 , sinceVersion = Nothing
--                 }
--           , argScope = ScopeTypeInvalid
--           , argClosure = -1
--           , argDestroy = -1
--           , argCallerAllocates = False
--           , argCallbackUserData = False
--           , transfer = TransferNothing
--           }
--       ]
-- Lengths: []
-- returnType: Just (TBasicType TUInt32)
-- throws : False
-- Skip return : False

foreign import ccall "nm_setting_infiniband_get_mtu" nm_setting_infiniband_get_mtu :: 
    Ptr SettingInfiniband ->                -- setting : TInterface (Name {namespace = "NM", name = "SettingInfiniband"})
    IO Word32

-- | /No description available in the introspection data./
settingInfinibandGetMtu ::
    (B.CallStack.HasCallStack, MonadIO m, IsSettingInfiniband a) =>
    a
    -- ^ /@setting@/: the t'GI.NM.Objects.SettingInfiniband.SettingInfiniband'
    -> m Word32
    -- ^ __Returns:__ the [SettingInfiniband:mtu]("GI.NM.Objects.SettingInfiniband#g:attr:mtu") property of the setting
settingInfinibandGetMtu :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingInfiniband a) =>
a -> m Word32
settingInfinibandGetMtu a
setting = IO Word32 -> m Word32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ do
    Ptr SettingInfiniband
setting' <- a -> IO (Ptr SettingInfiniband)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
    Word32
result <- Ptr SettingInfiniband -> IO Word32
nm_setting_infiniband_get_mtu Ptr SettingInfiniband
setting'
    a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
    Word32 -> IO Word32
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Word32
result

#if defined(ENABLE_OVERLOADING)
data SettingInfinibandGetMtuMethodInfo
instance (signature ~ (m Word32), MonadIO m, IsSettingInfiniband a) => O.OverloadedMethod SettingInfinibandGetMtuMethodInfo a signature where
    overloadedMethod = settingInfinibandGetMtu

instance O.OverloadedMethodInfo SettingInfinibandGetMtuMethodInfo a where
    overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.SettingInfiniband.settingInfinibandGetMtu",
        O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingInfiniband.html#v:settingInfinibandGetMtu"
        })


#endif

-- method SettingInfiniband::get_p_key
-- method type : OrdinaryMethod
-- Args: [ Arg
--           { argCName = "setting"
--           , argType =
--               TInterface Name { namespace = "NM" , name = "SettingInfiniband" }
--           , direction = DirectionIn
--           , mayBeNull = False
--           , argDoc =
--               Documentation
--                 { rawDocText = Just "the #NMSettingInfiniband"
--                 , sinceVersion = Nothing
--                 }
--           , argScope = ScopeTypeInvalid
--           , argClosure = -1
--           , argDestroy = -1
--           , argCallerAllocates = False
--           , argCallbackUserData = False
--           , transfer = TransferNothing
--           }
--       ]
-- Lengths: []
-- returnType: Just (TBasicType TInt)
-- throws : False
-- Skip return : False

foreign import ccall "nm_setting_infiniband_get_p_key" nm_setting_infiniband_get_p_key :: 
    Ptr SettingInfiniband ->                -- setting : TInterface (Name {namespace = "NM", name = "SettingInfiniband"})
    IO Int32

-- | Returns the P_Key to use for this device. A value of -1 means to
-- use the default P_Key (aka \"the P_Key at index 0\"). Otherwise, it is
-- a 16-bit unsigned integer.
settingInfinibandGetPKey ::
    (B.CallStack.HasCallStack, MonadIO m, IsSettingInfiniband a) =>
    a
    -- ^ /@setting@/: the t'GI.NM.Objects.SettingInfiniband.SettingInfiniband'
    -> m Int32
    -- ^ __Returns:__ the IPoIB P_Key
settingInfinibandGetPKey :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingInfiniband a) =>
a -> m Int32
settingInfinibandGetPKey a
setting = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ do
    Ptr SettingInfiniband
setting' <- a -> IO (Ptr SettingInfiniband)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
    Int32
result <- Ptr SettingInfiniband -> IO Int32
nm_setting_infiniband_get_p_key Ptr SettingInfiniband
setting'
    a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
    Int32 -> IO Int32
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Int32
result

#if defined(ENABLE_OVERLOADING)
data SettingInfinibandGetPKeyMethodInfo
instance (signature ~ (m Int32), MonadIO m, IsSettingInfiniband a) => O.OverloadedMethod SettingInfinibandGetPKeyMethodInfo a signature where
    overloadedMethod = settingInfinibandGetPKey

instance O.OverloadedMethodInfo SettingInfinibandGetPKeyMethodInfo a where
    overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.SettingInfiniband.settingInfinibandGetPKey",
        O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingInfiniband.html#v:settingInfinibandGetPKey"
        })


#endif

-- method SettingInfiniband::get_parent
-- method type : OrdinaryMethod
-- Args: [ Arg
--           { argCName = "setting"
--           , argType =
--               TInterface Name { namespace = "NM" , name = "SettingInfiniband" }
--           , direction = DirectionIn
--           , mayBeNull = False
--           , argDoc =
--               Documentation
--                 { rawDocText = Just "the #NMSettingInfiniband"
--                 , sinceVersion = Nothing
--                 }
--           , argScope = ScopeTypeInvalid
--           , argClosure = -1
--           , argDestroy = -1
--           , argCallerAllocates = False
--           , argCallbackUserData = False
--           , transfer = TransferNothing
--           }
--       ]
-- Lengths: []
-- returnType: Just (TBasicType TUTF8)
-- throws : False
-- Skip return : False

foreign import ccall "nm_setting_infiniband_get_parent" nm_setting_infiniband_get_parent :: 
    Ptr SettingInfiniband ->                -- setting : TInterface (Name {namespace = "NM", name = "SettingInfiniband"})
    IO CString

-- | Returns the parent interface name for this device, if set.
settingInfinibandGetParent ::
    (B.CallStack.HasCallStack, MonadIO m, IsSettingInfiniband a) =>
    a
    -- ^ /@setting@/: the t'GI.NM.Objects.SettingInfiniband.SettingInfiniband'
    -> m T.Text
    -- ^ __Returns:__ the parent interface name
settingInfinibandGetParent :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingInfiniband a) =>
a -> m Text
settingInfinibandGetParent a
setting = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
    Ptr SettingInfiniband
setting' <- a -> IO (Ptr SettingInfiniband)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
    CString
result <- Ptr SettingInfiniband -> IO CString
nm_setting_infiniband_get_parent Ptr SettingInfiniband
setting'
    Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingInfinibandGetParent" CString
result
    Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
    a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
    Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'

#if defined(ENABLE_OVERLOADING)
data SettingInfinibandGetParentMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsSettingInfiniband a) => O.OverloadedMethod SettingInfinibandGetParentMethodInfo a signature where
    overloadedMethod = settingInfinibandGetParent

instance O.OverloadedMethodInfo SettingInfinibandGetParentMethodInfo a where
    overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.SettingInfiniband.settingInfinibandGetParent",
        O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingInfiniband.html#v:settingInfinibandGetParent"
        })


#endif

-- method SettingInfiniband::get_transport_mode
-- method type : OrdinaryMethod
-- Args: [ Arg
--           { argCName = "setting"
--           , argType =
--               TInterface Name { namespace = "NM" , name = "SettingInfiniband" }
--           , direction = DirectionIn
--           , mayBeNull = False
--           , argDoc =
--               Documentation
--                 { rawDocText = Just "the #NMSettingInfiniband"
--                 , sinceVersion = Nothing
--                 }
--           , argScope = ScopeTypeInvalid
--           , argClosure = -1
--           , argDestroy = -1
--           , argCallerAllocates = False
--           , argCallbackUserData = False
--           , transfer = TransferNothing
--           }
--       ]
-- Lengths: []
-- returnType: Just (TBasicType TUTF8)
-- throws : False
-- Skip return : False

foreign import ccall "nm_setting_infiniband_get_transport_mode" nm_setting_infiniband_get_transport_mode :: 
    Ptr SettingInfiniband ->                -- setting : TInterface (Name {namespace = "NM", name = "SettingInfiniband"})
    IO CString

-- | Returns the transport mode for this device. Either \'datagram\' or
-- \'connected\'.
settingInfinibandGetTransportMode ::
    (B.CallStack.HasCallStack, MonadIO m, IsSettingInfiniband a) =>
    a
    -- ^ /@setting@/: the t'GI.NM.Objects.SettingInfiniband.SettingInfiniband'
    -> m T.Text
    -- ^ __Returns:__ the IPoIB transport mode
settingInfinibandGetTransportMode :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingInfiniband a) =>
a -> m Text
settingInfinibandGetTransportMode a
setting = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
    Ptr SettingInfiniband
setting' <- a -> IO (Ptr SettingInfiniband)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
    CString
result <- Ptr SettingInfiniband -> IO CString
nm_setting_infiniband_get_transport_mode Ptr SettingInfiniband
setting'
    Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingInfinibandGetTransportMode" CString
result
    Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
    a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
    Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'

#if defined(ENABLE_OVERLOADING)
data SettingInfinibandGetTransportModeMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsSettingInfiniband a) => O.OverloadedMethod SettingInfinibandGetTransportModeMethodInfo a signature where
    overloadedMethod = settingInfinibandGetTransportMode

instance O.OverloadedMethodInfo SettingInfinibandGetTransportModeMethodInfo a where
    overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.SettingInfiniband.settingInfinibandGetTransportMode",
        O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingInfiniband.html#v:settingInfinibandGetTransportMode"
        })


#endif

-- method SettingInfiniband::get_virtual_interface_name
-- method type : OrdinaryMethod
-- Args: [ Arg
--           { argCName = "setting"
--           , argType =
--               TInterface Name { namespace = "NM" , name = "SettingInfiniband" }
--           , direction = DirectionIn
--           , mayBeNull = False
--           , argDoc =
--               Documentation
--                 { rawDocText = Just "the #NMSettingInfiniband"
--                 , sinceVersion = Nothing
--                 }
--           , argScope = ScopeTypeInvalid
--           , argClosure = -1
--           , argDestroy = -1
--           , argCallerAllocates = False
--           , argCallbackUserData = False
--           , transfer = TransferNothing
--           }
--       ]
-- Lengths: []
-- returnType: Just (TBasicType TUTF8)
-- throws : False
-- Skip return : False

foreign import ccall "nm_setting_infiniband_get_virtual_interface_name" nm_setting_infiniband_get_virtual_interface_name :: 
    Ptr SettingInfiniband ->                -- setting : TInterface (Name {namespace = "NM", name = "SettingInfiniband"})
    IO CString

-- | Returns the interface name created by combining [SettingInfiniband:parent]("GI.NM.Objects.SettingInfiniband#g:attr:parent")
-- and [SettingInfiniband:pKey]("GI.NM.Objects.SettingInfiniband#g:attr:pKey"). (If either property is unset, this will
-- return 'P.Nothing'.)
settingInfinibandGetVirtualInterfaceName ::
    (B.CallStack.HasCallStack, MonadIO m, IsSettingInfiniband a) =>
    a
    -- ^ /@setting@/: the t'GI.NM.Objects.SettingInfiniband.SettingInfiniband'
    -> m T.Text
    -- ^ __Returns:__ the interface name, or 'P.Nothing'
settingInfinibandGetVirtualInterfaceName :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingInfiniband a) =>
a -> m Text
settingInfinibandGetVirtualInterfaceName a
setting = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
    Ptr SettingInfiniband
setting' <- a -> IO (Ptr SettingInfiniband)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
    CString
result <- Ptr SettingInfiniband -> IO CString
nm_setting_infiniband_get_virtual_interface_name Ptr SettingInfiniband
setting'
    Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingInfinibandGetVirtualInterfaceName" CString
result
    Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
    a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
    Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'

#if defined(ENABLE_OVERLOADING)
data SettingInfinibandGetVirtualInterfaceNameMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsSettingInfiniband a) => O.OverloadedMethod SettingInfinibandGetVirtualInterfaceNameMethodInfo a signature where
    overloadedMethod = settingInfinibandGetVirtualInterfaceName

instance O.OverloadedMethodInfo SettingInfinibandGetVirtualInterfaceNameMethodInfo a where
    overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.SettingInfiniband.settingInfinibandGetVirtualInterfaceName",
        O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingInfiniband.html#v:settingInfinibandGetVirtualInterfaceName"
        })


#endif