Package com.vmware.nsx_policy.model
Class RenderConfiguration.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.RenderConfiguration.Builder
-
- Enclosing class:
- RenderConfiguration
public static final class RenderConfiguration.Builder extends java.lang.ObjectBuilder class forRenderConfiguration.
-
-
Constructor Summary
Constructors Constructor Description Builder()Constructor with parameters for the required properties ofRenderConfiguration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RenderConfigurationbuild()RenderConfiguration.BuildersetColor(java.lang.String color)The color to use when rendering an entity.RenderConfiguration.BuildersetCondition(java.lang.String condition)If the condition is met then the rendering specified for the condition will be applied.RenderConfiguration.BuildersetDisplayValue(java.lang.String displayValue)If specified, overrides the field value.RenderConfiguration.BuildersetIcons(java.util.List<Icon> icons)Icons to be applied at dashboard for widgets and UI elements.RenderConfiguration.BuildersetTooltip(java.util.List<Tooltip> tooltip)Multi-line text to be shown on tooltip while hovering over the UI element if the condition is met.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofRenderConfiguration.
-
-
Method Detail
-
setColor
public RenderConfiguration.Builder setColor(java.lang.String color)
The color to use when rendering an entity. For example, set color as 'RED' to render a portion of donut in red.- Parameters:
color- New value for the property.
-
setCondition
public RenderConfiguration.Builder setCondition(java.lang.String condition)
If the condition is met then the rendering specified for the condition will be applied. Examples of expression syntax are provided under 'example_request' section of 'CreateWidgetConfiguration' API.- Parameters:
condition- New value for the property.
-
setDisplayValue
public RenderConfiguration.Builder setDisplayValue(java.lang.String displayValue)
If specified, overrides the field value. This can be used to display a meaningful value in situations where field value is not available or not configured.- Parameters:
displayValue- New value for the property.
-
setIcons
public RenderConfiguration.Builder setIcons(java.util.List<Icon> icons)
Icons to be applied at dashboard for widgets and UI elements.- Parameters:
icons- New value for the property.
-
setTooltip
public RenderConfiguration.Builder setTooltip(java.util.List<Tooltip> tooltip)
Multi-line text to be shown on tooltip while hovering over the UI element if the condition is met.- Parameters:
tooltip- New value for the property.
-
build
public RenderConfiguration build()
-
-