CredentialHealth Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. CredentialHealth
- com.
Implements
public final class CredentialHealth
implements JsonSerializable<CredentialHealth>
The health of the auth credential.
Constructor Summary
Constructor | Description |
---|---|
CredentialHealth() |
Creates an instance of Credential |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
errorCode()
Get the error |
String |
errorMessage()
Get the error |
static
Credential |
fromJson(JsonReader jsonReader)
Reads an instance of Credential |
Credential |
status()
Get the status property: The health status of credential. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Credential |
withErrorCode(String errorCode)
Set the error |
Credential |
withErrorMessage(String errorMessage)
Set the error |
Credential |
withStatus(CredentialHealthStatus status)
Set the status property: The health status of credential. |
Methods inherited from java.lang.Object
Constructor Details
CredentialHealth
public CredentialHealth()
Creates an instance of CredentialHealth class.
Method Details
errorCode
public String errorCode()
Get the errorCode property: Error code representing the health check error.
Returns:
errorMessage
public String errorMessage()
Get the errorMessage property: Descriptive message representing the health check error.
Returns:
fromJson
public static CredentialHealth fromJson(JsonReader jsonReader)
Reads an instance of CredentialHealth from the JsonReader.
Parameters:
Returns:
Throws:
status
public CredentialHealthStatus status()
Get the status property: The health status of credential.
Returns:
toJson
validate
public void validate()
Validates the instance.
withErrorCode
public CredentialHealth withErrorCode(String errorCode)
Set the errorCode property: Error code representing the health check error.
Parameters:
Returns:
withErrorMessage
public CredentialHealth withErrorMessage(String errorMessage)
Set the errorMessage property: Descriptive message representing the health check error.
Parameters:
Returns:
withStatus
public CredentialHealth withStatus(CredentialHealthStatus status)
Set the status property: The health status of credential.
Parameters:
Returns:
Applies to
Azure SDK for Java