Package com.vmware.nsx_policy.model
Class PropertyItem.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.PropertyItem.Builder
-
- Enclosing class:
- PropertyItem
public static final class PropertyItem.Builder extends java.lang.ObjectBuilder class forPropertyItem.
-
-
Constructor Summary
Constructors Constructor Description Builder()Constructor with parameters for the required properties ofPropertyItem.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyItembuild()PropertyItem.BuildersetCondition(java.lang.String condition)If the condition is met then the property will be displayed.PropertyItem.BuildersetDrilldownId(java.lang.String drilldownId)Id of drilldown widget, if any.PropertyItem.BuildersetField(java.lang.String field)Represents field value of the property.PropertyItem.BuildersetHeading(java.lang.Boolean heading)Set to true if the field is a heading.PropertyItem.BuildersetLabel(Label label)PropertyItem.BuildersetLabelValueSeparator(java.lang.String labelValueSeparator)Label value separator used between label and value.PropertyItem.BuildersetNavigation(java.lang.String navigation)Hyperlink of the specified UI page that provides details.PropertyItem.BuildersetRenderConfiguration(java.util.List<RenderConfiguration> renderConfiguration)Render configuration to be applied, if any.PropertyItem.BuildersetRowspan(java.lang.Long rowspan)Represent the vertical span of the widget / container format: int32PropertyItem.BuildersetSeparator(java.lang.Boolean separator)If true, separates this property in a widget.PropertyItem.BuildersetSpan(java.lang.Long span)Represent the horizontal span of the widget / container.PropertyItem.BuildersetStyle(com.vmware.vapi.bindings.Structure style)A style object applicable for the property item.PropertyItem.BuildersetType(java.lang.String type)Possible values are:PropertyItem.TYPE_STRINGPropertyItem.TYPE_NUMBERPropertyItem.TYPE_DATEPropertyItem.TYPE_URLData type of the field.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofPropertyItem.
-
-
Method Detail
-
setCondition
public PropertyItem.Builder setCondition(java.lang.String condition)
If the condition is met then the property will be displayed. Examples of expression syntax are provided under 'example_request' section of 'CreateWidgetConfiguration' API.- Parameters:
condition- New value for the property.
-
setDrilldownId
public PropertyItem.Builder setDrilldownId(java.lang.String drilldownId)
Id of drilldown widget, if any. Id should be a valid id of an existing widget. A widget is considered as drilldown widget when it is associated with any other widget and provides more detailed information about any data item from the parent widget.- Parameters:
drilldownId- New value for the property.
-
setField
public PropertyItem.Builder setField(java.lang.String field)
Represents field value of the property.- Parameters:
field- New value for the property.
-
setHeading
public PropertyItem.Builder setHeading(java.lang.Boolean heading)
Set to true if the field is a heading. Default is false.- Parameters:
heading- New value for the property.
-
setLabel
public PropertyItem.Builder setLabel(Label label)
- Parameters:
label- New value for the property.
-
setLabelValueSeparator
public PropertyItem.Builder setLabelValueSeparator(java.lang.String labelValueSeparator)
Label value separator used between label and value. It can be any separator like \":\" or \"-\".- Parameters:
labelValueSeparator- New value for the property.
-
setNavigation
public PropertyItem.Builder setNavigation(java.lang.String navigation)
Hyperlink of the specified UI page that provides details. This will be linked with value of the property.- Parameters:
navigation- New value for the property.
-
setRenderConfiguration
public PropertyItem.Builder setRenderConfiguration(java.util.List<RenderConfiguration> renderConfiguration)
Render configuration to be applied, if any.- Parameters:
renderConfiguration- New value for the property.
-
setRowspan
public PropertyItem.Builder setRowspan(java.lang.Long rowspan)
Represent the vertical span of the widget / container format: int32- Parameters:
rowspan- New value for the property.
-
setSeparator
public PropertyItem.Builder setSeparator(java.lang.Boolean separator)
If true, separates this property in a widget.- Parameters:
separator- New value for the property.
-
setSpan
public PropertyItem.Builder setSpan(java.lang.Long span)
Represent the horizontal span of the widget / container. format: int32- Parameters:
span- New value for the property.
-
setStyle
public PropertyItem.Builder setStyle(com.vmware.vapi.bindings.Structure style)
A style object applicable for the property item. It could be the any padding, margin style sheet applicable to the property item. A 'style' property is supported in case of layout 'AUTO' only.- Parameters:
style- New value for the property.
-
setType
public PropertyItem.Builder setType(java.lang.String type)
Possible values are: Data type of the field.- Parameters:
type- New value for the property.
-
build
public PropertyItem build()
-
-