Table of Contents

Class SegmentCreate

Namespace
Autodesk.ACC.CostManagement.Models
Assembly
Autodesk.ACC.CostManagement.dll

The segment composing the budget code. For example, Job Number, CSI, Cost Type.

public class SegmentCreate : IAdditionalDataHolder, IParsable
Inheritance
SegmentCreate
Implements
IAdditionalDataHolder
IParsable
Inherited Members

Constructors

SegmentCreate()

Instantiates a new SegmentCreate and sets the default values.

public SegmentCreate()

Properties

AdditionalData

Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

public IDictionary<string, object> AdditionalData { get; set; }

Property Value

IDictionary<string, object>

Delimiter

The delimiter that follows the segment. Possible values are: none, space, point, hyphen, underscore, tab.

public string? Delimiter { get; set; }

Property Value

string

Length

The number of characters allowed in the segment.

public double? Length { get; set; }

Property Value

double?

Name

The name of the budget code template.

public string? Name { get; set; }

Property Value

string

Position

The order of the segment in the budget code template.

public double? Position { get; set; }

Property Value

double?

SampleCode

A code sample for the segment used to demonstrate how the segment looks when displayed.

public string? SampleCode { get; set; }

Property Value

string

Type

The segment type. Possible values: code, column, or info. Code segments are displayed as part of the budget code. Column segments are displayed in a separate column. Info segments are not displayed.

public string? Type { get; set; }

Property Value

string

Methods

CreateFromDiscriminatorValue(IParseNode)

Creates a new instance of the appropriate class based on discriminator value

public static SegmentCreate CreateFromDiscriminatorValue(IParseNode parseNode)

Parameters

parseNode IParseNode

The parse node to use to read the discriminator value and create the object

Returns

SegmentCreate

A SegmentCreate

GetFieldDeserializers()

The deserialization information for the current model

public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()

Returns

IDictionary<string, Action<IParseNode>>

A IDictionary<string, Action<IParseNode>>

Serialize(ISerializationWriter)

Serializes information the current object

public virtual void Serialize(ISerializationWriter writer)

Parameters

writer ISerializationWriter

Serialization writer to use to serialize this model