Home Manual Reference Source
public class | source

OperationBuilder

A builder for operations.

Method Summary

Public Methods
public
public

header(name: string, value: boolean | int | string): OperationBuilder

Add a header to the operation

public

param(name: string, value: boolean | int | string): OperationBuilder

Add a parameter to the operation

public

Uses the specified payload for the operation.

Public Methods

public build(): Operation source

Return:

Operation

builds and returns the operation

public header(name: string, value: boolean | int | string): OperationBuilder source

Add a header to the operation

Params:

NameTypeAttributeDescription
name string

The name of the header.

value boolean | int | string

The value of the header.

Return:

OperationBuilder

this builder

public param(name: string, value: boolean | int | string): OperationBuilder source

Add a parameter to the operation

Params:

NameTypeAttributeDescription
name string

The name of the parameter.

value boolean | int | string

The value of the parameter.

Return:

OperationBuilder

this builder

public payload(payload: ModelNode): OperationBuilder source

Uses the specified payload for the operation.

Params:

NameTypeAttributeDescription
payload ModelNode

The operation as model node.

Return:

OperationBuilder

this builder