Class ValidationResultItem
- java.lang.Object
-
- com.azure.resourcemanager.servicelinker.models.ValidationResultItem
-
public final class ValidationResultItem extends Object
The validation item for a linker.
-
-
Constructor Summary
Constructors Constructor Description ValidationResultItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
description()
Get the description property: The display name of validation item.String
errorCode()
Get the errorCode property: The error code of validation result.String
errorMessage()
Get the errorMessage property: The error message of validation result.String
name()
Get the name property: The validation item name.ValidationResultStatus
result()
Get the result property: The result of validation.void
validate()
Validates the instance.ValidationResultItem
withDescription(String description)
Set the description property: The display name of validation item.ValidationResultItem
withErrorCode(String errorCode)
Set the errorCode property: The error code of validation result.ValidationResultItem
withErrorMessage(String errorMessage)
Set the errorMessage property: The error message of validation result.ValidationResultItem
withName(String name)
Set the name property: The validation item name.ValidationResultItem
withResult(ValidationResultStatus result)
Set the result property: The result of validation.
-
-
-
Method Detail
-
name
public String name()
Get the name property: The validation item name.- Returns:
- the name value.
-
withName
public ValidationResultItem withName(String name)
Set the name property: The validation item name.- Parameters:
name
- the name value to set.- Returns:
- the ValidationResultItem object itself.
-
description
public String description()
Get the description property: The display name of validation item.- Returns:
- the description value.
-
withDescription
public ValidationResultItem withDescription(String description)
Set the description property: The display name of validation item.- Parameters:
description
- the description value to set.- Returns:
- the ValidationResultItem object itself.
-
result
public ValidationResultStatus result()
Get the result property: The result of validation.- Returns:
- the result value.
-
withResult
public ValidationResultItem withResult(ValidationResultStatus result)
Set the result property: The result of validation.- Parameters:
result
- the result value to set.- Returns:
- the ValidationResultItem object itself.
-
errorMessage
public String errorMessage()
Get the errorMessage property: The error message of validation result.- Returns:
- the errorMessage value.
-
withErrorMessage
public ValidationResultItem withErrorMessage(String errorMessage)
Set the errorMessage property: The error message of validation result.- Parameters:
errorMessage
- the errorMessage value to set.- Returns:
- the ValidationResultItem object itself.
-
errorCode
public String errorCode()
Get the errorCode property: The error code of validation result.- Returns:
- the errorCode value.
-
withErrorCode
public ValidationResultItem withErrorCode(String errorCode)
Set the errorCode property: The error code of validation result.- Parameters:
errorCode
- the errorCode value to set.- Returns:
- the ValidationResultItem object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-