Package com.vmware.nsx_policy.model
Class Header.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.Header.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Headerbuild()Header.BuildersetCondition(java.lang.String condition)If the condition is met then the header will be applied.Header.BuildersetContentAlignment(java.lang.String contentAlignment)Possible values are:Header.CONTENT_ALIGNMENT_LEFTHeader.CONTENT_ALIGNMENT_RIGHTAlignment of header labels.Header.BuildersetSubHeaders(java.util.List<PropertyItem> subHeaders)An array of label-value properties.Header.BuildersetSubHeaderWidgets(java.util.List<WidgetItem> subHeaderWidgets)An array of widgets which will appear inside the container header Instead of 'sub_headers' property use this property.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofHeader.
-
-
Method Detail
-
setCondition
public Header.Builder setCondition(java.lang.String condition)
If the condition is met then the header will be applied. Examples of expression syntax are provided under 'example_request' section of 'CreateWidgetConfiguration' API.- Parameters:
condition- New value for the property.
-
setContentAlignment
public Header.Builder setContentAlignment(java.lang.String contentAlignment)
Possible values are: Alignment of header labels.- Parameters:
contentAlignment- New value for the property.
-
setSubHeaderWidgets
public Header.Builder setSubHeaderWidgets(java.util.List<WidgetItem> subHeaderWidgets)
An array of widgets which will appear inside the container header Instead of 'sub_headers' property use this property.- Parameters:
subHeaderWidgets- New value for the property.
-
setSubHeaders
public Header.Builder setSubHeaders(java.util.List<PropertyItem> subHeaders)
An array of label-value properties. This field is deprecated instead used 'sub_header_widgets' property to define header widgets.- Parameters:
subHeaders- New value for the property.
-
build
public Header build()
-
-