Package com.vmware.nsx_policy.model
Class Legend
- java.lang.Object
-
- com.vmware.nsx_policy.model.Legend
-
- All Implemented Interfaces:
com.vmware.vapi.bindings.StaticStructure,com.vmware.vapi.bindings.Structure,java.io.Serializable
public final class Legend extends java.lang.Object implements java.io.Serializable, com.vmware.vapi.bindings.StaticStructureRepresents legend that describes the entities of the widget.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLegend.BuilderBuilder class forLegend.
-
Field Summary
Fields Modifier and Type Field Description protected com.vmware.vapi.data.StructValue__dynamicStructureFieldsstatic java.lang.StringALIGNMENT_HORIZONTALstatic java.lang.StringALIGNMENT_VERTICALstatic java.lang.StringDISPLAY_MODE_ALL_LEGENDSstatic java.lang.StringDISPLAY_MODE_MIN_NO_OF_LEGENDSstatic java.lang.StringDISPLAY_MODE_OTHER_GROUP_WITH_LEGENDSstatic java.lang.StringPOSITION_BOTTOMstatic java.lang.StringPOSITION_LEFTstatic java.lang.StringPOSITION_RIGHTstatic java.lang.StringPOSITION_TOPstatic java.lang.StringPOSITION_TOP_RIGHTstatic java.lang.StringTYPE_CIRCLE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends com.vmware.vapi.bindings.Structure>
T_convertTo(java.lang.Class<T> clazz)java.lang.String_getCanonicalName()static java.lang.String_getCanonicalTypeName()Returns the canonical type name.static com.vmware.vapi.bindings.type.StructType_getClassType()WARNING: Internal method, subject to change in future versions.com.vmware.vapi.data.StructValue_getDataValue()com.vmware.vapi.data.DataValue_getDynamicField(java.lang.String fieldName)java.util.Set<java.lang.String>_getDynamicFieldNames()com.vmware.vapi.bindings.type.StructType_getType()boolean_hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz)static Legend_newInstance(com.vmware.vapi.data.StructValue structValue)WARNING: Internal method, subject to change in future versions.
Returns new instance of this binding class and injects the provided data value.
WARNING: The returned object is not fully initialized.static Legend_newInstance2(com.vmware.vapi.data.StructValue structValue)WARNING: Internal method, subject to change in future versions.
Serves as a versioning mechanism.void_setDynamicField(java.lang.String fieldName, com.vmware.vapi.data.DataValue fieldValue)protected void_updateDataValue(com.vmware.vapi.data.StructValue structValue)void_validate()booleanequals(java.lang.Object obj)java.lang.StringgetAlignment()Possible values are:ALIGNMENT_HORIZONTALALIGNMENT_VERTICALDescribes the alignment of legend.java.lang.BooleangetDisplayCount()If set to true, it will display the counts in legend.java.lang.StringgetDisplayMode()Possible values are:DISPLAY_MODE_ALL_LEGENDSDISPLAY_MODE_MIN_NO_OF_LEGENDSDISPLAY_MODE_OTHER_GROUP_WITH_LEGENDSDisplay mode for legends.java.lang.BooleangetFilterable()Show checkbox along with legends if value is set to true.java.lang.LonggetMinLegendsDisplayCount()A minimum number of legends to be displayed upfront.java.lang.StringgetOtherGroupLegendLabel()A translated label for showing other category label in legends.java.lang.StringgetPosition()Possible values are:POSITION_TOPPOSITION_BOTTOMPOSITION_LEFTPOSITION_RIGHTPOSITION_TOP_RIGHTDescribes the relative placement of legend.java.lang.StringgetType()Possible values are:TYPE_CIRCLEDescribes the render type for the legend.java.lang.StringgetUnit()Show unit of entities in the legend.inthashCode()voidsetAlignment(java.lang.String alignment)Possible values are:ALIGNMENT_HORIZONTALALIGNMENT_VERTICALDescribes the alignment of legend.voidsetDisplayCount(java.lang.Boolean displayCount)If set to true, it will display the counts in legend.voidsetDisplayMode(java.lang.String displayMode)Possible values are:DISPLAY_MODE_ALL_LEGENDSDISPLAY_MODE_MIN_NO_OF_LEGENDSDISPLAY_MODE_OTHER_GROUP_WITH_LEGENDSDisplay mode for legends.voidsetFilterable(java.lang.Boolean filterable)Show checkbox along with legends if value is set to true.voidsetMinLegendsDisplayCount(java.lang.Long minLegendsDisplayCount)A minimum number of legends to be displayed upfront.voidsetOtherGroupLegendLabel(java.lang.String otherGroupLegendLabel)A translated label for showing other category label in legends.voidsetPosition(java.lang.String position)Possible values are:POSITION_TOPPOSITION_BOTTOMPOSITION_LEFTPOSITION_RIGHTPOSITION_TOP_RIGHTDescribes the relative placement of legend.voidsetType(java.lang.String type)Possible values are:TYPE_CIRCLEDescribes the render type for the legend.voidsetUnit(java.lang.String unit)Show unit of entities in the legend.java.lang.StringtoString()
-
-
-
Field Detail
-
ALIGNMENT_HORIZONTAL
public static final java.lang.String ALIGNMENT_HORIZONTAL
- See Also:
- Constant Field Values
-
ALIGNMENT_VERTICAL
public static final java.lang.String ALIGNMENT_VERTICAL
- See Also:
- Constant Field Values
-
DISPLAY_MODE_ALL_LEGENDS
public static final java.lang.String DISPLAY_MODE_ALL_LEGENDS
- See Also:
- Constant Field Values
-
DISPLAY_MODE_MIN_NO_OF_LEGENDS
public static final java.lang.String DISPLAY_MODE_MIN_NO_OF_LEGENDS
- See Also:
- Constant Field Values
-
DISPLAY_MODE_OTHER_GROUP_WITH_LEGENDS
public static final java.lang.String DISPLAY_MODE_OTHER_GROUP_WITH_LEGENDS
- See Also:
- Constant Field Values
-
POSITION_TOP
public static final java.lang.String POSITION_TOP
- See Also:
- Constant Field Values
-
POSITION_BOTTOM
public static final java.lang.String POSITION_BOTTOM
- See Also:
- Constant Field Values
-
POSITION_LEFT
public static final java.lang.String POSITION_LEFT
- See Also:
- Constant Field Values
-
POSITION_RIGHT
public static final java.lang.String POSITION_RIGHT
- See Also:
- Constant Field Values
-
POSITION_TOP_RIGHT
public static final java.lang.String POSITION_TOP_RIGHT
- See Also:
- Constant Field Values
-
TYPE_CIRCLE
public static final java.lang.String TYPE_CIRCLE
- See Also:
- Constant Field Values
-
__dynamicStructureFields
protected com.vmware.vapi.data.StructValue __dynamicStructureFields
-
-
Method Detail
-
getAlignment
public java.lang.String getAlignment()
Possible values are: Describes the alignment of legend. Alignment of a legend denotes how individual items of the legend are aligned in a container. For example, if VERTICAL is chosen then the items of the legend will appear one below the other and if HORIZONTAL is chosen then the items will appear side by side.- Returns:
- The current value of the property.
-
setAlignment
public void setAlignment(java.lang.String alignment)
Possible values are: Describes the alignment of legend. Alignment of a legend denotes how individual items of the legend are aligned in a container. For example, if VERTICAL is chosen then the items of the legend will appear one below the other and if HORIZONTAL is chosen then the items will appear side by side.- Parameters:
alignment- New value for the property.
-
getDisplayCount
public java.lang.Boolean getDisplayCount()
If set to true, it will display the counts in legend. If set to false, counts of entities are not displayed in the legend.- Returns:
- The current value of the property.
-
setDisplayCount
public void setDisplayCount(java.lang.Boolean displayCount)
If set to true, it will display the counts in legend. If set to false, counts of entities are not displayed in the legend.- Parameters:
displayCount- New value for the property.
-
getDisplayMode
public java.lang.String getDisplayMode()
Possible values are: Display mode for legends.- Returns:
- The current value of the property.
-
setDisplayMode
public void setDisplayMode(java.lang.String displayMode)
Possible values are: Display mode for legends.- Parameters:
displayMode- New value for the property.
-
getFilterable
public java.lang.Boolean getFilterable()
Show checkbox along with legends if value is set to true. Widget filtering capability can be enable based on legend checkbox selection. for 'display_mode' SHOW_OTHER_GROUP_WITH_LEGENDS filterable property is not supported.- Returns:
- The current value of the property.
-
setFilterable
public void setFilterable(java.lang.Boolean filterable)
Show checkbox along with legends if value is set to true. Widget filtering capability can be enable based on legend checkbox selection. for 'display_mode' SHOW_OTHER_GROUP_WITH_LEGENDS filterable property is not supported.- Parameters:
filterable- New value for the property.
-
getMinLegendsDisplayCount
public java.lang.Long getMinLegendsDisplayCount()
A minimum number of legends to be displayed upfront. if 'display_mode' is set to SHOW_MIN_NO_OF_LEGENDS then this property value will be used to display number of legends upfront in the UI. format: int32- Returns:
- The current value of the property.
-
setMinLegendsDisplayCount
public void setMinLegendsDisplayCount(java.lang.Long minLegendsDisplayCount)
A minimum number of legends to be displayed upfront. if 'display_mode' is set to SHOW_MIN_NO_OF_LEGENDS then this property value will be used to display number of legends upfront in the UI. format: int32- Parameters:
minLegendsDisplayCount- New value for the property.
-
getOtherGroupLegendLabel
public java.lang.String getOtherGroupLegendLabel()
A translated label for showing other category label in legends.- Returns:
- The current value of the property.
-
setOtherGroupLegendLabel
public void setOtherGroupLegendLabel(java.lang.String otherGroupLegendLabel)
A translated label for showing other category label in legends.- Parameters:
otherGroupLegendLabel- New value for the property.
-
getPosition
public java.lang.String getPosition()
Possible values are: Describes the relative placement of legend. The legend of a widget can be placed either to the TOP or BOTTOM or LEFT or RIGHT relative to the widget. For example, if RIGHT is chosen then legend is placed to the right of the widget.- Returns:
- The current value of the property.
-
setPosition
public void setPosition(java.lang.String position)
Possible values are: Describes the relative placement of legend. The legend of a widget can be placed either to the TOP or BOTTOM or LEFT or RIGHT relative to the widget. For example, if RIGHT is chosen then legend is placed to the right of the widget.- Parameters:
position- New value for the property.
-
getType
public java.lang.String getType()
Possible values are: Describes the render type for the legend. The legend for an entity describes the entity in the widget. The supported legend type is a circle against which the entity's details such as display_name are shown. The color of the circle denotes the color of the entity shown inside the widget.- Returns:
- The current value of the property.
-
setType
public void setType(java.lang.String type)
Possible values are: Describes the render type for the legend. The legend for an entity describes the entity in the widget. The supported legend type is a circle against which the entity's details such as display_name are shown. The color of the circle denotes the color of the entity shown inside the widget.- Parameters:
type- New value for the property.
-
getUnit
public java.lang.String getUnit()
Show unit of entities in the legend.- Returns:
- The current value of the property.
-
setUnit
public void setUnit(java.lang.String unit)
Show unit of entities in the legend.- Parameters:
unit- New value for the property.
-
_getType
public com.vmware.vapi.bindings.type.StructType _getType()
- Specified by:
_getTypein interfacecom.vmware.vapi.bindings.StaticStructure
-
_getDataValue
public com.vmware.vapi.data.StructValue _getDataValue()
- Specified by:
_getDataValuein interfacecom.vmware.vapi.bindings.Structure
-
_updateDataValue
protected void _updateDataValue(com.vmware.vapi.data.StructValue structValue)
-
_validate
public void _validate()
- Specified by:
_validatein interfacecom.vmware.vapi.bindings.StaticStructure
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Specified by:
toStringin interfacecom.vmware.vapi.bindings.StaticStructure- Overrides:
toStringin classjava.lang.Object
-
_hasTypeNameOf
public boolean _hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz)
- Specified by:
_hasTypeNameOfin interfacecom.vmware.vapi.bindings.Structure
-
_convertTo
public <T extends com.vmware.vapi.bindings.Structure> T _convertTo(java.lang.Class<T> clazz)
- Specified by:
_convertToin interfacecom.vmware.vapi.bindings.Structure
-
_setDynamicField
public void _setDynamicField(java.lang.String fieldName, com.vmware.vapi.data.DataValue fieldValue)- Specified by:
_setDynamicFieldin interfacecom.vmware.vapi.bindings.StaticStructure
-
_getDynamicField
public com.vmware.vapi.data.DataValue _getDynamicField(java.lang.String fieldName)
- Specified by:
_getDynamicFieldin interfacecom.vmware.vapi.bindings.StaticStructure
-
_getDynamicFieldNames
public java.util.Set<java.lang.String> _getDynamicFieldNames()
- Specified by:
_getDynamicFieldNamesin interfacecom.vmware.vapi.bindings.StaticStructure
-
_getClassType
public static com.vmware.vapi.bindings.type.StructType _getClassType()
WARNING: Internal method, subject to change in future versions.- Returns:
StructTypeinstance representing the static bindings type for thisStructure.
-
_getCanonicalName
public java.lang.String _getCanonicalName()
- Specified by:
_getCanonicalNamein interfacecom.vmware.vapi.bindings.Structure
-
_getCanonicalTypeName
public static java.lang.String _getCanonicalTypeName()
Returns the canonical type name. See_getCanonicalName().- Returns:
- canonical type name
-
_newInstance
public static Legend _newInstance(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Returns new instance of this binding class and injects the provided data value.
WARNING: The returned object is not fully initialized.- Parameters:
structValue- the source of the data contained in the binding object. Could contain more data than fields of this class can describe i.e. newer version of the binding object. Could be null.- Returns:
- the static bindings
StructType
-
_newInstance2
public static Legend _newInstance2(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Serves as a versioning mechanism.
-
-