Program object.
Extends
Constructors
new ProgramBuilder()
new ProgramBuilder():ProgramBuilder
Returns
ProgramBuilder
Inherited from
Builder.constructor
Methods
attributes()
attributes(attributes): ProgramBuilder
Sets the attributes of the Program.
Parameters
attributes
string[]
of the Program.
Please refer to the developer guide for a recommended list of canonical values for this field.
The maximum size of the list is 32. If there are more than 32 items, the extra items will be removed.
The maximmum size of each item is 255 bytes, any items that exceeds this length will be truncated and the last 3 bytes replaced with ”…”.
Returns
ProgramBuilder
The ProgramBuilder object with attributes set.
Details
This field is optional for the program.Throws
IllegalStateError if the function is called after this builder instance
has already built an object once.
Throws
InvalidArgumentError if a string that is not valid UTF-8 is passed in.
build()
build():IProgram
Builds the Program object from the provided parameters.
Returns
IProgram
The built Program object.
Throws
InvalidArgumentError if one or more of the required fields are missing.
Throws
IllegalStateError if the function is called after this builder instance
has already built an object once.
Overrides
Builder.build

