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

Represents a portfolio and its target allocation weight. More...

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

Public Member Functions

 PortfolioWeight (ResourceId portfolioId=default(ResourceId), decimal weight=default(decimal))
 Initializes a new instance of the PortfolioWeight 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 (PortfolioWeight input)
 Returns true if PortfolioWeight instances are equal More...
 
override int GetHashCode ()
 Gets the hash code More...
 

Protected Member Functions

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

Properties

ResourceId PortfolioId [get, set]
 Gets or Sets PortfolioId More...
 
decimal Weight [get, set]
 The relative weight of the Portfolio compared to the other Portfolios specified, used to determine the allocation split between Portfolios when there are no Orders within the Block to allocate to. More...
 

Detailed Description

Represents a portfolio and its target allocation weight.

Constructor & Destructor Documentation

◆ PortfolioWeight() [1/2]

Lusid.Sdk.Model.PortfolioWeight.PortfolioWeight ( )
inlineprotected

Initializes a new instance of the PortfolioWeight class.

◆ PortfolioWeight() [2/2]

Lusid.Sdk.Model.PortfolioWeight.PortfolioWeight ( ResourceId  portfolioId = default(ResourceId),
decimal  weight = default(decimal) 
)
inline

Initializes a new instance of the PortfolioWeight class.

Parameters
portfolioIdportfolioId (required).
weightThe relative weight of the Portfolio compared to the other Portfolios specified, used to determine the allocation split between Portfolios when there are no Orders within the Block to allocate to. (required).

Member Function Documentation

◆ Equals() [1/2]

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

Returns true if objects are equal

Parameters
inputObject to be compared
Returns
Boolean

◆ Equals() [2/2]

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

Returns true if PortfolioWeight instances are equal

Parameters
inputInstance of PortfolioWeight to be compared
Returns
Boolean

◆ GetHashCode()

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

Gets the hash code

Returns
Hash code

◆ ToJson()

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

Returns the JSON string presentation of the object

Returns
JSON string presentation of the object

◆ ToString()

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

Returns the string presentation of the object

Returns
String presentation of the object

Property Documentation

◆ PortfolioId

ResourceId Lusid.Sdk.Model.PortfolioWeight.PortfolioId
getset

Gets or Sets PortfolioId

◆ Weight

decimal Lusid.Sdk.Model.PortfolioWeight.Weight
getset

The relative weight of the Portfolio compared to the other Portfolios specified, used to determine the allocation split between Portfolios when there are no Orders within the Block to allocate to.

The relative weight of the Portfolio compared to the other Portfolios specified, used to determine the allocation split between Portfolios when there are no Orders within the Block to allocate to.


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