DataLakeStorageErrorError.java

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.storage.blob.implementation.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;

/**
 * The service error response object.
 */
@JacksonXmlRootElement(localName = "DataLakeStorageError_error")
@Fluent
public final class DataLakeStorageErrorError {
    /*
     * The service error code.
     */
    @JsonProperty(value = "Code")
    private String code;

    /*
     * The service error message.
     */
    @JsonProperty(value = "Message")
    private String message;

    /**
     * Get the code property: The service error code.
     *
     * @return the code value.
     */
    public String getCode() {
        return this.code;
    }

    /**
     * Set the code property: The service error code.
     *
     * @param code the code value to set.
     * @return the DataLakeStorageErrorError object itself.
     */
    public DataLakeStorageErrorError setCode(String code) {
        this.code = code;
        return this;
    }

    /**
     * Get the message property: The service error message.
     *
     * @return the message value.
     */
    public String getMessage() {
        return this.message;
    }

    /**
     * Set the message property: The service error message.
     *
     * @param message the message value to set.
     * @return the DataLakeStorageErrorError object itself.
     */
    public DataLakeStorageErrorError setMessage(String message) {
        this.message = message;
        return this;
    }
}