public static final class DetailedValidationError.Builder
extends java.lang.Object
DetailedValidationError
.Constructor and Description |
---|
Builder(LocalizableMessage message,
DetailedValidationError.ErrorType type)
Constructor with parameters for the required properties of
DetailedValidationError . |
Modifier and Type | Method and Description |
---|---|
DetailedValidationError |
build() |
DetailedValidationError.Builder |
setComponent(java.lang.String component)
For
SCHEMA_NOT_FOUND errors, this will be the component portion of the
unknown configuration. |
DetailedValidationError.Builder |
setDependencyError(DependencyError dependencyError)
The dependency required by a union tag.
|
DetailedValidationError.Builder |
setExpectedType(java.lang.String expectedType)
The expected type of the property.
|
DetailedValidationError.Builder |
setGroup(java.lang.String group)
For
SCHEMA_NOT_FOUND errors, this will be the group portion of the
unknown configuration. |
DetailedValidationError.Builder |
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.
|
DetailedValidationError.Builder |
setInstanceId(java.lang.String instanceId)
The instance ID that was duplicated or is missing from the profile section.
|
DetailedValidationError.Builder |
setKey(java.lang.String key)
For
SCHEMA_NOT_FOUND errors, this will be the key portion of the unknown
configuration. |
DetailedValidationError.Builder |
setMaximumLength(java.lang.Long maximumLength)
The maximum length allowed for a string or array property.
|
DetailedValidationError.Builder |
setMaximumValue(java.lang.Long maximumValue)
The maximum allowed value for a property.
|
DetailedValidationError.Builder |
setMinimumLength(java.lang.Long minimumLength)
The minimum length allowed for a string or array property.
|
DetailedValidationError.Builder |
setMinimumValue(java.lang.Long minimumValue)
The minimum allowed value for a property.
|
DetailedValidationError.Builder |
setPath(java.lang.String path)
The JSON-pointer to the configuration key in the profile section where the
instance/key needs to be added.
|
DetailedValidationError.Builder |
setPattern(java.lang.String pattern)
The pattern the property is required to match.
|
DetailedValidationError.Builder |
setPropertyName(java.lang.String propertyName)
The name of the property that holds the instance ID.
|
DetailedValidationError.Builder |
setRequiredProperty(java.lang.String requiredProperty)
The name of the required property that is missing from the profile section for
this instance/key.
|
public Builder(LocalizableMessage message, DetailedValidationError.ErrorType type)
DetailedValidationError
.public DetailedValidationError.Builder 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 DetailedValidationError.Builder 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 DetailedValidationError.Builder setExpectedType(java.lang.String expectedType)
getType()
is DetailedValidationError.ErrorType.INVALID_TYPE
.expectedType
- New value for the property.public DetailedValidationError.Builder 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 DetailedValidationError.Builder setPropertyName(java.lang.String propertyName)
getType()
is DetailedValidationError.ErrorType.MISSING_INSTANCE_ID
.propertyName
- New value for the property.public DetailedValidationError.Builder 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 DetailedValidationError.Builder 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 DetailedValidationError.Builder setMaximumValue(java.lang.Long maximumValue)
getType()
is DetailedValidationError.ErrorType.MAX_VALUE
.maximumValue
- New value for the property.public DetailedValidationError.Builder setMinimumValue(java.lang.Long minimumValue)
getType()
is DetailedValidationError.ErrorType.MIN_VALUE
.minimumValue
- New value for the property.public DetailedValidationError.Builder 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 DetailedValidationError.Builder 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 DetailedValidationError.Builder 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 DetailedValidationError.Builder 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 DetailedValidationError.Builder 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 DetailedValidationError.Builder 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 DetailedValidationError build()