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

Base class for representing result key rules in LUSID, which describe how to resolve (unit) result data. This base class should not be directly instantiated; each supported ResultKeyRuleType has a corresponding inherited class. More...

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

Public Types

enum class  ResultKeyRuleTypeEnum { Invalid = 1 , ResultDataKeyRule = 2 , PortfolioResultDataKeyRule = 3 }
 The available values are: Invalid, ResultDataKeyRule, PortfolioResultDataKeyRule More...
 

Public Member Functions

 ResultKeyRule (ResultKeyRuleTypeEnum resultKeyRuleType=default(ResultKeyRuleTypeEnum))
 Initializes a new instance of the ResultKeyRule 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 (ResultKeyRule input)
 Returns true if ResultKeyRule instances are equal More...
 
override int GetHashCode ()
 Gets the hash code More...
 

Protected Member Functions

 ResultKeyRule ()
 Initializes a new instance of the ResultKeyRule class. More...
 
IEnumerable< System.ComponentModel.DataAnnotations.ValidationResult > BaseValidate (ValidationContext validationContext)
 To validate all properties of the instance More...
 

Properties

ResultKeyRuleTypeEnum ResultKeyRuleType [get, set]
 The available values are: Invalid, ResultDataKeyRule, PortfolioResultDataKeyRule More...
 

Detailed Description

Base class for representing result key rules in LUSID, which describe how to resolve (unit) result data. This base class should not be directly instantiated; each supported ResultKeyRuleType has a corresponding inherited class.

Member Enumeration Documentation

◆ ResultKeyRuleTypeEnum

The available values are: Invalid, ResultDataKeyRule, PortfolioResultDataKeyRule

The available values are: Invalid, ResultDataKeyRule, PortfolioResultDataKeyRule

Enumerator
Invalid 

Enum Invalid for value: Invalid

ResultDataKeyRule 

Enum ResultDataKeyRule for value: ResultDataKeyRule

PortfolioResultDataKeyRule 

Enum PortfolioResultDataKeyRule for value: PortfolioResultDataKeyRule

Constructor & Destructor Documentation

◆ ResultKeyRule() [1/2]

Lusid.Sdk.Model.ResultKeyRule.ResultKeyRule ( )
inlineprotected

Initializes a new instance of the ResultKeyRule class.

◆ ResultKeyRule() [2/2]

Lusid.Sdk.Model.ResultKeyRule.ResultKeyRule ( ResultKeyRuleTypeEnum  resultKeyRuleType = default(ResultKeyRuleTypeEnum))
inline

Initializes a new instance of the ResultKeyRule class.

Parameters
resultKeyRuleTypeThe available values are: Invalid, ResultDataKeyRule, PortfolioResultDataKeyRule (required).

Member Function Documentation

◆ BaseValidate()

IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Lusid.Sdk.Model.ResultKeyRule.BaseValidate ( ValidationContext  validationContext)
inlineprotected

To validate all properties of the instance

Parameters
validationContextValidation context
Returns
Validation Result

◆ Equals() [1/2]

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

Returns true if objects are equal

Parameters
inputObject to be compared
Returns
Boolean

◆ Equals() [2/2]

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

Returns true if ResultKeyRule instances are equal

Parameters
inputInstance of ResultKeyRule to be compared
Returns
Boolean

◆ GetHashCode()

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

Gets the hash code

Returns
Hash code

◆ ToJson()

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

Returns the JSON string presentation of the object

Returns
JSON string presentation of the object

Reimplemented in Lusid.Sdk.Model.ResultDataKeyRule, and Lusid.Sdk.Model.PortfolioResultDataKeyRule.

◆ ToString()

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

Returns the string presentation of the object

Returns
String presentation of the object

Property Documentation

◆ ResultKeyRuleType

ResultKeyRuleTypeEnum Lusid.Sdk.Model.ResultKeyRule.ResultKeyRuleType
getset

The available values are: Invalid, ResultDataKeyRule, PortfolioResultDataKeyRule

The available values are: Invalid, ResultDataKeyRule, PortfolioResultDataKeyRule


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