public class

OptionsBuilder

extends Object
java.lang.Object
   ↳ org.rundeck.api.OptionsBuilder

Class Overview

Builder for job options

Summary

Public Constructors
OptionsBuilder()
Build a new instance.
Public Methods
OptionsBuilder addOption(Object key, Object value)
Add an option
Properties toProperties()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public OptionsBuilder ()

Build a new instance. Use addOption(Object, Object) to add some options, and then toProperties() when you're done !

Public Methods

public OptionsBuilder addOption (Object key, Object value)

Add an option

Parameters
key of the option
value of the option
Returns
  • this, for method chaining

public Properties toProperties ()

Returns
  • a new Properties instance