Package com.vmware.nsx_policy.model
Class WidgetItem.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.WidgetItem.Builder
-
- Enclosing class:
- WidgetItem
public static final class WidgetItem.Builder extends java.lang.ObjectBuilder class forWidgetItem.
-
-
Constructor Summary
Constructors Constructor Description Builder()Constructor with parameters for the required properties ofWidgetItem.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WidgetItembuild()WidgetItem.BuildersetAlignment(java.lang.String alignment)Possible values are:WidgetItem.ALIGNMENT_LEFTWidgetItem.ALIGNMENT_RIGHTAligns widget either left or right.WidgetItem.BuildersetLabel(Label label)WidgetItem.BuildersetRowspan(java.lang.Long rowspan)Represents the vertical span of the widget / container format: int32WidgetItem.BuildersetSeparator(java.lang.Boolean separator)If true, separates this widget in a container.WidgetItem.BuildersetSpan(java.lang.Long span)Represents the horizontal span of the widget / container.WidgetItem.BuildersetWeight(java.lang.Long weight)Determines placement of widget or container relative to other widgets and containers.WidgetItem.BuildersetWidgetId(java.lang.String widgetId)Id of the widget configuration that is held by a multi-widget or a container or a view.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofWidgetItem.
-
-
Method Detail
-
setAlignment
public WidgetItem.Builder setAlignment(java.lang.String alignment)
Possible values are: Aligns widget either left or right.- Parameters:
alignment- New value for the property.
-
setLabel
public WidgetItem.Builder setLabel(Label label)
- Parameters:
label- New value for the property.
-
setRowspan
public WidgetItem.Builder setRowspan(java.lang.Long rowspan)
Represents the vertical span of the widget / container format: int32- Parameters:
rowspan- New value for the property.
-
setSeparator
public WidgetItem.Builder setSeparator(java.lang.Boolean separator)
If true, separates this widget in a container.- Parameters:
separator- New value for the property.
-
setSpan
public WidgetItem.Builder setSpan(java.lang.Long span)
Represents the horizontal span of the widget / container. format: int32- Parameters:
span- New value for the property.
-
setWeight
public WidgetItem.Builder setWeight(java.lang.Long weight)
Determines placement of widget or container relative to other widgets and containers. The lower the weight, the higher it is in the placement order. format: int32- Parameters:
weight- New value for the property.
-
setWidgetId
public WidgetItem.Builder setWidgetId(java.lang.String widgetId)
Id of the widget configuration that is held by a multi-widget or a container or a view.- Parameters:
widgetId- New value for the property.
-
build
public WidgetItem build()
-
-