public final class DetailedValidationError
extends java.lang.Object
implements java.io.Serializable, com.vmware.vapi.bindings.StaticStructure
SchemaValidationError
class contains details of validation errors
for a property. This class was added in vSphere API 8.0.2.0.Modifier and Type | Class and Description |
---|---|
static class |
DetailedValidationError.Builder
Builder class for
DetailedValidationError . |
static class |
DetailedValidationError.ErrorType
The
ErrorType enum contains the possible types of errors related to
property validation. |
Modifier and Type | Field and Description |
---|---|
protected com.vmware.vapi.data.StructValue |
__dynamicStructureFields |
Modifier | Constructor and Description |
---|---|
|
DetailedValidationError()
Default constructor.
|
protected |
DetailedValidationError(com.vmware.vapi.data.StructValue __dynamicStructureFields) |
Modifier and Type | Method and Description |
---|---|
<T extends com.vmware.vapi.bindings.Structure> |
_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 DetailedValidationError |
_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 DetailedValidationError |
_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() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getComponent()
For
SCHEMA_NOT_FOUND errors, this will be the component portion of the
unknown configuration. |
DependencyError |
getDependencyError()
The dependency required by a union tag.
|
java.lang.String |
getExpectedType()
The expected type of the property.
|
java.lang.String |
getGroup()
For
SCHEMA_NOT_FOUND errors, this will be the group portion of the
unknown configuration. |
java.util.List<java.lang.String> |
getHosts()
If this error is from a host-level validation performed during a precheck, the
hosts that experienced this error will be added here.
|
java.lang.String |
getInstanceId()
The instance ID that was duplicated or is missing from the profile section.
|
java.lang.String |
getKey()
For
SCHEMA_NOT_FOUND errors, this will be the key portion of the unknown
configuration. |
java.lang.Long |
getMaximumLength()
The maximum length allowed for a string or array property.
|
java.lang.Long |
getMaximumValue()
The maximum allowed value for a property.
|
LocalizableMessage |
getMessage()
A user-friendly description of the error.
|
java.lang.Long |
getMinimumLength()
The minimum length allowed for a string or array property.
|
java.lang.Long |
getMinimumValue()
The minimum allowed value for a property.
|
java.lang.String |
getPath()
The JSON-pointer to the configuration key in the profile section where the
instance/key needs to be added.
|
java.lang.String |
getPattern()
The pattern the property is required to match.
|
java.lang.String |
getPropertyName()
The name of the property that holds the instance ID.
|
java.lang.String |
getRequiredProperty()
The name of the required property that is missing from the profile section for
this instance/key.
|
DetailedValidationError.ErrorType |
getType()
The type of error.
|
int |
hashCode() |
void |
setComponent(java.lang.String component)
For
SCHEMA_NOT_FOUND errors, this will be the component portion of the
unknown configuration. |
void |
setDependencyError(DependencyError dependencyError)
The dependency required by a union tag.
|
void |
setExpectedType(java.lang.String expectedType)
The expected type of the property.
|
void |
setGroup(java.lang.String group)
For
SCHEMA_NOT_FOUND errors, this will be the group portion of the
unknown configuration. |
void |
setHosts(java.util.List<java.lang.String> hosts)
If this error is from a host-level validation performed during a precheck, the
hosts that experienced this error will be added here.
|
void |
setInstanceId(java.lang.String instanceId)
The instance ID that was duplicated or is missing from the profile section.
|
void |
setKey(java.lang.String key)
For
SCHEMA_NOT_FOUND errors, this will be the key portion of the unknown
configuration. |
void |
setMaximumLength(java.lang.Long maximumLength)
The maximum length allowed for a string or array property.
|
void |
setMaximumValue(java.lang.Long maximumValue)
The maximum allowed value for a property.
|
void |
setMessage(LocalizableMessage message)
A user-friendly description of the error.
|
void |
setMinimumLength(java.lang.Long minimumLength)
The minimum length allowed for a string or array property.
|
void |
setMinimumValue(java.lang.Long minimumValue)
The minimum allowed value for a property.
|
void |
setPath(java.lang.String path)
The JSON-pointer to the configuration key in the profile section where the
instance/key needs to be added.
|
void |
setPattern(java.lang.String pattern)
The pattern the property is required to match.
|
void |
setPropertyName(java.lang.String propertyName)
The name of the property that holds the instance ID.
|
void |
setRequiredProperty(java.lang.String requiredProperty)
The name of the required property that is missing from the profile section for
this instance/key.
|
void |
setType(DetailedValidationError.ErrorType type)
The type of error.
|
java.lang.String |
toString() |
protected com.vmware.vapi.data.StructValue __dynamicStructureFields
public DetailedValidationError()
protected DetailedValidationError(com.vmware.vapi.data.StructValue __dynamicStructureFields)
public java.util.List<java.lang.String> getHosts()
HostSystem
. When methods
return a value of this class as a return value, the property will contain
identifiers for the resource type: HostSystem
.public void setHosts(java.util.List<java.lang.String> hosts)
hosts
- New value for the property.
When clients pass a value of this class as a parameter, the property must
contain identifiers for the resource type: HostSystem
. When methods
return a value of this class as a return value, the property will contain
identifiers for the resource type: HostSystem
.public LocalizableMessage getMessage()
public void setMessage(LocalizableMessage message)
message
- New value for the property.public DetailedValidationError.ErrorType getType()
public void setType(DetailedValidationError.ErrorType type)
type
- New value for the property.public java.lang.String getPattern()
getType()
is one of DetailedValidationError.ErrorType.PATTERN_MISMATCH
or DetailedValidationError.ErrorType.PROPERTY_NAME_MISMATCH
.public void setPattern(java.lang.String pattern)
getType()
is one of DetailedValidationError.ErrorType.PATTERN_MISMATCH
or DetailedValidationError.ErrorType.PROPERTY_NAME_MISMATCH
.pattern
- New value for the property.public java.lang.String getExpectedType()
getType()
is DetailedValidationError.ErrorType.INVALID_TYPE
.public void setExpectedType(java.lang.String expectedType)
getType()
is DetailedValidationError.ErrorType.INVALID_TYPE
.expectedType
- New value for the property.public java.lang.String getInstanceId()
getType()
is one of DetailedValidationError.ErrorType.DUPLICATE_INSTANCE_ID
or DetailedValidationError.ErrorType.MISSING_REQUIRED_PROFILE_INSTANCE
.public void setInstanceId(java.lang.String instanceId)
getType()
is one of DetailedValidationError.ErrorType.DUPLICATE_INSTANCE_ID
or DetailedValidationError.ErrorType.MISSING_REQUIRED_PROFILE_INSTANCE
.instanceId
- New value for the property.public java.lang.String getPropertyName()
getType()
is DetailedValidationError.ErrorType.MISSING_INSTANCE_ID
.public void setPropertyName(java.lang.String propertyName)
getType()
is DetailedValidationError.ErrorType.MISSING_INSTANCE_ID
.propertyName
- New value for the property.public java.lang.Long getMaximumLength()
getType()
is one of DetailedValidationError.ErrorType.MAX_STRING_LENGTH
or DetailedValidationError.ErrorType.MAX_ARRAY_LENGTH
.public void setMaximumLength(java.lang.Long maximumLength)
getType()
is one of DetailedValidationError.ErrorType.MAX_STRING_LENGTH
or DetailedValidationError.ErrorType.MAX_ARRAY_LENGTH
.maximumLength
- New value for the property.public java.lang.Long getMinimumLength()
getType()
is one of DetailedValidationError.ErrorType.MIN_STRING_LENGTH
or DetailedValidationError.ErrorType.MIN_ARRAY_LENGTH
.public void setMinimumLength(java.lang.Long minimumLength)
getType()
is one of DetailedValidationError.ErrorType.MIN_STRING_LENGTH
or DetailedValidationError.ErrorType.MIN_ARRAY_LENGTH
.minimumLength
- New value for the property.public java.lang.Long getMaximumValue()
getType()
is DetailedValidationError.ErrorType.MAX_VALUE
.public void setMaximumValue(java.lang.Long maximumValue)
getType()
is DetailedValidationError.ErrorType.MAX_VALUE
.maximumValue
- New value for the property.public java.lang.Long getMinimumValue()
getType()
is DetailedValidationError.ErrorType.MIN_VALUE
.public void setMinimumValue(java.lang.Long minimumValue)
getType()
is DetailedValidationError.ErrorType.MIN_VALUE
.minimumValue
- New value for the property.public DependencyError getDependencyError()
getType()
is one of DetailedValidationError.ErrorType.INVALID_UNION_TAG
or DetailedValidationError.ErrorType.UNION_CASE_WITHOUT_UNION_TAG
.public void setDependencyError(DependencyError dependencyError)
getType()
is one of DetailedValidationError.ErrorType.INVALID_UNION_TAG
or DetailedValidationError.ErrorType.UNION_CASE_WITHOUT_UNION_TAG
.dependencyError
- New value for the property.public java.lang.String getComponent()
SCHEMA_NOT_FOUND
errors, this will be the component portion of the
unknown configuration. This property was added in vSphere API 8.0.2.0.
This property is optional and it is only relevant when the value of getType()
is DetailedValidationError.ErrorType.SCHEMA_NOT_FOUND
.public void setComponent(java.lang.String component)
SCHEMA_NOT_FOUND
errors, this will be the component portion of the
unknown configuration. This property was added in vSphere API 8.0.2.0.
This property is optional and it is only relevant when the value of getType()
is DetailedValidationError.ErrorType.SCHEMA_NOT_FOUND
.component
- New value for the property.public java.lang.String getGroup()
SCHEMA_NOT_FOUND
errors, this will be the group portion of the
unknown configuration. This property was added in vSphere API 8.0.2.0.
This property is optional and it is only relevant when the value of getType()
is DetailedValidationError.ErrorType.SCHEMA_NOT_FOUND
.public void setGroup(java.lang.String group)
SCHEMA_NOT_FOUND
errors, this will be the group portion of the
unknown configuration. This property was added in vSphere API 8.0.2.0.
This property is optional and it is only relevant when the value of getType()
is DetailedValidationError.ErrorType.SCHEMA_NOT_FOUND
.group
- New value for the property.public java.lang.String getKey()
SCHEMA_NOT_FOUND
errors, this will be the key portion of the unknown
configuration. This property was added in vSphere API 8.0.2.0.
This property is optional and it is only relevant when the value of getType()
is DetailedValidationError.ErrorType.SCHEMA_NOT_FOUND
.public void setKey(java.lang.String key)
SCHEMA_NOT_FOUND
errors, this will be the key portion of the unknown
configuration. This property was added in vSphere API 8.0.2.0.
This property is optional and it is only relevant when the value of getType()
is DetailedValidationError.ErrorType.SCHEMA_NOT_FOUND
.key
- New value for the property.public java.lang.String getPath()
getType()
is one of DetailedValidationError.ErrorType.MISSING_REQUIRED_PROFILE_INSTANCE
or DetailedValidationError.ErrorType.MISSING_REQUIRED_PROFILE_KEY
.public void setPath(java.lang.String path)
getType()
is one of DetailedValidationError.ErrorType.MISSING_REQUIRED_PROFILE_INSTANCE
or DetailedValidationError.ErrorType.MISSING_REQUIRED_PROFILE_KEY
.path
- New value for the property.public java.lang.String getRequiredProperty()
getType()
is one of DetailedValidationError.ErrorType.MISSING_REQUIRED_PROFILE_INSTANCE
or DetailedValidationError.ErrorType.MISSING_REQUIRED_PROFILE_KEY
.public void setRequiredProperty(java.lang.String requiredProperty)
getType()
is one of DetailedValidationError.ErrorType.MISSING_REQUIRED_PROFILE_INSTANCE
or DetailedValidationError.ErrorType.MISSING_REQUIRED_PROFILE_KEY
.requiredProperty
- New value for the property.public com.vmware.vapi.bindings.type.StructType _getType()
_getType
in interface com.vmware.vapi.bindings.StaticStructure
public com.vmware.vapi.data.StructValue _getDataValue()
_getDataValue
in interface com.vmware.vapi.bindings.Structure
protected void _updateDataValue(com.vmware.vapi.data.StructValue structValue)
public void _validate()
_validate
in interface com.vmware.vapi.bindings.StaticStructure
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in interface com.vmware.vapi.bindings.StaticStructure
toString
in class java.lang.Object
public boolean _hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz)
_hasTypeNameOf
in interface com.vmware.vapi.bindings.Structure
public <T extends com.vmware.vapi.bindings.Structure> T _convertTo(java.lang.Class<T> clazz)
_convertTo
in interface com.vmware.vapi.bindings.Structure
public void _setDynamicField(java.lang.String fieldName, com.vmware.vapi.data.DataValue fieldValue)
_setDynamicField
in interface com.vmware.vapi.bindings.StaticStructure
public com.vmware.vapi.data.DataValue _getDynamicField(java.lang.String fieldName)
_getDynamicField
in interface com.vmware.vapi.bindings.StaticStructure
public java.util.Set<java.lang.String> _getDynamicFieldNames()
_getDynamicFieldNames
in interface com.vmware.vapi.bindings.StaticStructure
public static com.vmware.vapi.bindings.type.StructType _getClassType()
StructType
instance representing the static bindings
type for this Structure
.public java.lang.String _getCanonicalName()
_getCanonicalName
in interface com.vmware.vapi.bindings.Structure
public static java.lang.String _getCanonicalTypeName()
_getCanonicalName()
.public static DetailedValidationError _newInstance(com.vmware.vapi.data.StructValue structValue)
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.StructType
public static DetailedValidationError _newInstance2(com.vmware.vapi.data.StructValue structValue)