LUSID C# SDK
Public Member Functions | Protected Member Functions | Properties | List of all members
Lusid.Sdk.Model.AssetLeg Class Reference

The underlying instrument representing one side of the TRS and its pay-receive direction. More...

Inheritance diagram for Lusid.Sdk.Model.AssetLeg:
Inheritance graph
[legend]

Public Member Functions

 AssetLeg (LusidInstrument asset=default(LusidInstrument), string payReceive=default(string))
 Initializes a new instance of the AssetLeg class. More...
 
override string ToString ()
 Returns the string presentation of the object More...
 
virtual string ToJson ()
 Returns the JSON string presentation of the object More...
 
override bool Equals (object input)
 Returns true if objects are equal More...
 
bool Equals (AssetLeg input)
 Returns true if AssetLeg instances are equal More...
 
override int GetHashCode ()
 Gets the hash code More...
 

Protected Member Functions

 AssetLeg ()
 Initializes a new instance of the AssetLeg class. More...
 

Properties

LusidInstrument Asset [get, set]
 Gets or Sets Asset More...
 
string PayReceive [get, set]
 Either Pay or Receive stating direction of the asset in the swap. Supported string (enumeration) values are: [Pay, Receive]. More...
 

Detailed Description

The underlying instrument representing one side of the TRS and its pay-receive direction.

Constructor & Destructor Documentation

◆ AssetLeg() [1/2]

Lusid.Sdk.Model.AssetLeg.AssetLeg ( )
inlineprotected

Initializes a new instance of the AssetLeg class.

◆ AssetLeg() [2/2]

Lusid.Sdk.Model.AssetLeg.AssetLeg ( LusidInstrument  asset = default(LusidInstrument),
string  payReceive = default(string) 
)
inline

Initializes a new instance of the AssetLeg class.

Parameters
assetasset (required).
payReceiveEither Pay or Receive stating direction of the asset in the swap. Supported string (enumeration) values are: [Pay, Receive]. (required).

Member Function Documentation

◆ Equals() [1/2]

bool Lusid.Sdk.Model.AssetLeg.Equals ( AssetLeg  input)
inline

Returns true if AssetLeg instances are equal

Parameters
inputInstance of AssetLeg to be compared
Returns
Boolean

◆ Equals() [2/2]

override bool Lusid.Sdk.Model.AssetLeg.Equals ( object  input)
inline

Returns true if objects are equal

Parameters
inputObject to be compared
Returns
Boolean

◆ GetHashCode()

override int Lusid.Sdk.Model.AssetLeg.GetHashCode ( )
inline

Gets the hash code

Returns
Hash code

◆ ToJson()

virtual string Lusid.Sdk.Model.AssetLeg.ToJson ( )
inlinevirtual

Returns the JSON string presentation of the object

Returns
JSON string presentation of the object

◆ ToString()

override string Lusid.Sdk.Model.AssetLeg.ToString ( )
inline

Returns the string presentation of the object

Returns
String presentation of the object

Property Documentation

◆ Asset

LusidInstrument Lusid.Sdk.Model.AssetLeg.Asset
getset

Gets or Sets Asset

◆ PayReceive

string Lusid.Sdk.Model.AssetLeg.PayReceive
getset

Either Pay or Receive stating direction of the asset in the swap. Supported string (enumeration) values are: [Pay, Receive].

Either Pay or Receive stating direction of the asset in the swap. Supported string (enumeration) values are: [Pay, Receive].


The documentation for this class was generated from the following file: