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 Header
build()
Header.Builder
setCondition(java.lang.String condition)
If the condition is met then the header will be applied.Header.Builder
setContentAlignment(java.lang.String contentAlignment)
Possible values are:Header.CONTENT_ALIGNMENT_LEFT
Header.CONTENT_ALIGNMENT_RIGHT
Alignment of header labels.Header.Builder
setSubHeaders(java.util.List<PropertyItem> subHeaders)
An array of label-value properties.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.
-
-
-
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()
-
-