com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadErrorInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-recoveryservicesbackup Show documentation
Show all versions of azure-resourcemanager-recoveryservicesbackup Show documentation
This package contains Microsoft Azure SDK for RecoveryServicesBackup Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Open API 2.0 Specs for Azure RecoveryServices Backup service. Package tag package-2024-04.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.recoveryservicesbackup.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/**
* Azure storage specific error information.
*/
@Fluent
public final class AzureWorkloadErrorInfo {
/*
* Error code.
*/
@JsonProperty(value = "errorCode")
private Integer errorCode;
/*
* Localized error string.
*/
@JsonProperty(value = "errorString")
private String errorString;
/*
* Title: Typically, the entity that the error pertains to.
*/
@JsonProperty(value = "errorTitle")
private String errorTitle;
/*
* List of localized recommendations for above error code.
*/
@JsonProperty(value = "recommendations")
private List recommendations;
/*
* Additional details for above error code.
*/
@JsonProperty(value = "additionalDetails")
private String additionalDetails;
/**
* Creates an instance of AzureWorkloadErrorInfo class.
*/
public AzureWorkloadErrorInfo() {
}
/**
* Get the errorCode property: Error code.
*
* @return the errorCode value.
*/
public Integer errorCode() {
return this.errorCode;
}
/**
* Set the errorCode property: Error code.
*
* @param errorCode the errorCode value to set.
* @return the AzureWorkloadErrorInfo object itself.
*/
public AzureWorkloadErrorInfo withErrorCode(Integer errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* Get the errorString property: Localized error string.
*
* @return the errorString value.
*/
public String errorString() {
return this.errorString;
}
/**
* Set the errorString property: Localized error string.
*
* @param errorString the errorString value to set.
* @return the AzureWorkloadErrorInfo object itself.
*/
public AzureWorkloadErrorInfo withErrorString(String errorString) {
this.errorString = errorString;
return this;
}
/**
* Get the errorTitle property: Title: Typically, the entity that the error pertains to.
*
* @return the errorTitle value.
*/
public String errorTitle() {
return this.errorTitle;
}
/**
* Set the errorTitle property: Title: Typically, the entity that the error pertains to.
*
* @param errorTitle the errorTitle value to set.
* @return the AzureWorkloadErrorInfo object itself.
*/
public AzureWorkloadErrorInfo withErrorTitle(String errorTitle) {
this.errorTitle = errorTitle;
return this;
}
/**
* Get the recommendations property: List of localized recommendations for above error code.
*
* @return the recommendations value.
*/
public List recommendations() {
return this.recommendations;
}
/**
* Set the recommendations property: List of localized recommendations for above error code.
*
* @param recommendations the recommendations value to set.
* @return the AzureWorkloadErrorInfo object itself.
*/
public AzureWorkloadErrorInfo withRecommendations(List recommendations) {
this.recommendations = recommendations;
return this;
}
/**
* Get the additionalDetails property: Additional details for above error code.
*
* @return the additionalDetails value.
*/
public String additionalDetails() {
return this.additionalDetails;
}
/**
* Set the additionalDetails property: Additional details for above error code.
*
* @param additionalDetails the additionalDetails value to set.
* @return the AzureWorkloadErrorInfo object itself.
*/
public AzureWorkloadErrorInfo withAdditionalDetails(String additionalDetails) {
this.additionalDetails = additionalDetails;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy