Class FolderBuilder<TResult, TBuilder>
Builder for the class CreateFolder
Namespace: HuduAPI.Endpoints.Parameters.AbstractBases
Assembly: HuduAPI.dll
Syntax
public abstract class FolderBuilder<TResult, TBuilder>
where TResult : Folder where TBuilder : FolderBuilder<TResult, TBuilder>
Type Parameters
| Name | Description |
|---|---|
| TResult | |
| TBuilder |
Fields
_companyId
Declaration
protected int? _companyId
Field Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
_description
Declaration
protected string _description
Field Value
| Type | Description |
|---|---|
| System.String |
_icon
Declaration
protected string _icon
Field Value
| Type | Description |
|---|---|
| System.String |
_name
Declaration
protected string _name
Field Value
| Type | Description |
|---|---|
| System.String |
_parentFolderId
Declaration
protected int? _parentFolderId
Field Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
Methods
Build()
Builds a new instance of type TResult.
Declaration
public abstract TResult Build()
Returns
| Type | Description |
|---|---|
| TResult |
WithCompanyId(Int32)
Set a value for companyId
Declaration
public TBuilder WithCompanyId(int companyId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | companyId | The company identifier. |
Returns
| Type | Description |
|---|---|
| TBuilder | A generic Builder Object for type |
WithDescription(String)
Set a value for description
Declaration
public TBuilder WithDescription(string description)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | description | The description. |
Returns
| Type | Description |
|---|---|
| TBuilder | A generic Builder Object for type |
WithIcon(String)
Set a value for icon
Declaration
public TBuilder WithIcon(string icon)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | icon | The icon. |
Returns
| Type | Description |
|---|---|
| TBuilder | A generic Builder Object for type |
WithName(String)
Set a value for name
Declaration
public TBuilder WithName(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The name. |
Returns
| Type | Description |
|---|---|
| TBuilder | A generic Builder Object for type |
WithParentFolderId(Int32)
Set a value for parentFolderId
Declaration
public TBuilder WithParentFolderId(int parentFolderId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | parentFolderId | The parent folder identifier. |
Returns
| Type | Description |
|---|---|
| TBuilder | A generic Builder Object for type |