com.azure.resourcemanager.recoveryservicesbackup.models.OperationStatusError 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;
/**
* Error information associated with operation status call.
*/
@Fluent
public final class OperationStatusError {
/*
* Error code of the operation failure.
*/
@JsonProperty(value = "code")
private String code;
/*
* Error message displayed if the operation failure.
*/
@JsonProperty(value = "message")
private String message;
/**
* Creates an instance of OperationStatusError class.
*/
public OperationStatusError() {
}
/**
* Get the code property: Error code of the operation failure.
*
* @return the code value.
*/
public String code() {
return this.code;
}
/**
* Set the code property: Error code of the operation failure.
*
* @param code the code value to set.
* @return the OperationStatusError object itself.
*/
public OperationStatusError withCode(String code) {
this.code = code;
return this;
}
/**
* Get the message property: Error message displayed if the operation failure.
*
* @return the message value.
*/
public String message() {
return this.message;
}
/**
* Set the message property: Error message displayed if the operation failure.
*
* @param message the message value to set.
* @return the OperationStatusError object itself.
*/
public OperationStatusError withMessage(String message) {
this.message = message;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy