Package com.vmware.nsx_policy.model
Class OdsRunbookSettingData.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.OdsRunbookSettingData.Builder
-
- Enclosing class:
- OdsRunbookSettingData
public static final class OdsRunbookSettingData.Builder extends java.lang.ObjectBuilder class forOdsRunbookSettingData.
-
-
Constructor Summary
Constructors Constructor Description Builder()Constructor with parameters for the required properties ofOdsRunbookSettingData.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OdsRunbookSettingDatabuild()OdsRunbookSettingData.BuildersetEnabled(java.lang.Boolean enabled)The flag that indicates whether the runbook is enabled.OdsRunbookSettingData.BuildersetThresholdNumber(java.lang.Long thresholdNumber)Maximum number of runbook executions allowed in a throttling cycle.OdsRunbookSettingData.BuildersetThresholdNumberRange(OdsRunbookParameterRange thresholdNumberRange)OdsRunbookSettingData.BuildersetThrottleCycle(java.lang.Long throttleCycle)Duration of throttling cycle for runbook execution in minutes.OdsRunbookSettingData.BuildersetThrottleCycleRange(OdsRunbookParameterRange throttleCycleRange)OdsRunbookSettingData.BuildersetTimeout(java.lang.Long timeout)Timeout of runbook execution in seconds.OdsRunbookSettingData.BuildersetTimeoutRange(OdsRunbookParameterRange timeoutRange)
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofOdsRunbookSettingData.
-
-
Method Detail
-
setEnabled
public OdsRunbookSettingData.Builder setEnabled(java.lang.Boolean enabled)
The flag that indicates whether the runbook is enabled.- Parameters:
enabled- New value for the property.
-
setThresholdNumber
public OdsRunbookSettingData.Builder setThresholdNumber(java.lang.Long thresholdNumber)
Maximum number of runbook executions allowed in a throttling cycle. Runbook execution will be throttled once the threshold is reached. This option does not take effect when the throttling is disabled. format: int64- Parameters:
thresholdNumber- New value for the property.
-
setThresholdNumberRange
public OdsRunbookSettingData.Builder setThresholdNumberRange(OdsRunbookParameterRange thresholdNumberRange)
- Parameters:
thresholdNumberRange- New value for the property.
-
setThrottleCycle
public OdsRunbookSettingData.Builder setThrottleCycle(java.lang.Long throttleCycle)
Duration of throttling cycle for runbook execution in minutes. It controls the minimum time between execution of a runbook and avoids executing a runbook too frequently in a short time. If the throttling cycle is set to 0, throttling is disabled. format: int64- Parameters:
throttleCycle- New value for the property.
-
setThrottleCycleRange
public OdsRunbookSettingData.Builder setThrottleCycleRange(OdsRunbookParameterRange throttleCycleRange)
- Parameters:
throttleCycleRange- New value for the property.
-
setTimeout
public OdsRunbookSettingData.Builder setTimeout(java.lang.Long timeout)
Timeout of runbook execution in seconds. format: int64- Parameters:
timeout- New value for the property.
-
setTimeoutRange
public OdsRunbookSettingData.Builder setTimeoutRange(OdsRunbookParameterRange timeoutRange)
- Parameters:
timeoutRange- New value for the property.
-
build
public OdsRunbookSettingData build()
-
-