All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.resourcemanager.automation.models.DscReportError Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure SDK for Automation Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Automation Client. Package tag package-2019-06.

There is a newer version: 1.0.0
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.automation.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Definition of the dsc node report error type. */
@Fluent
public final class DscReportError {
    @JsonIgnore private final ClientLogger logger = new ClientLogger(DscReportError.class);

    /*
     * Gets or sets the source of the error.
     */
    @JsonProperty(value = "errorSource")
    private String errorSource;

    /*
     * Gets or sets the resource ID which generated the error.
     */
    @JsonProperty(value = "resourceId")
    private String resourceId;

    /*
     * Gets or sets the error code.
     */
    @JsonProperty(value = "errorCode")
    private String errorCode;

    /*
     * Gets or sets the error message.
     */
    @JsonProperty(value = "errorMessage")
    private String errorMessage;

    /*
     * Gets or sets the locale of the error.
     */
    @JsonProperty(value = "locale")
    private String locale;

    /*
     * Gets or sets the error details.
     */
    @JsonProperty(value = "errorDetails")
    private String errorDetails;

    /**
     * Get the errorSource property: Gets or sets the source of the error.
     *
     * @return the errorSource value.
     */
    public String errorSource() {
        return this.errorSource;
    }

    /**
     * Set the errorSource property: Gets or sets the source of the error.
     *
     * @param errorSource the errorSource value to set.
     * @return the DscReportError object itself.
     */
    public DscReportError withErrorSource(String errorSource) {
        this.errorSource = errorSource;
        return this;
    }

    /**
     * Get the resourceId property: Gets or sets the resource ID which generated the error.
     *
     * @return the resourceId value.
     */
    public String resourceId() {
        return this.resourceId;
    }

    /**
     * Set the resourceId property: Gets or sets the resource ID which generated the error.
     *
     * @param resourceId the resourceId value to set.
     * @return the DscReportError object itself.
     */
    public DscReportError withResourceId(String resourceId) {
        this.resourceId = resourceId;
        return this;
    }

    /**
     * Get the errorCode property: Gets or sets the error code.
     *
     * @return the errorCode value.
     */
    public String errorCode() {
        return this.errorCode;
    }

    /**
     * Set the errorCode property: Gets or sets the error code.
     *
     * @param errorCode the errorCode value to set.
     * @return the DscReportError object itself.
     */
    public DscReportError withErrorCode(String errorCode) {
        this.errorCode = errorCode;
        return this;
    }

    /**
     * Get the errorMessage property: Gets or sets the error message.
     *
     * @return the errorMessage value.
     */
    public String errorMessage() {
        return this.errorMessage;
    }

    /**
     * Set the errorMessage property: Gets or sets the error message.
     *
     * @param errorMessage the errorMessage value to set.
     * @return the DscReportError object itself.
     */
    public DscReportError withErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
        return this;
    }

    /**
     * Get the locale property: Gets or sets the locale of the error.
     *
     * @return the locale value.
     */
    public String locale() {
        return this.locale;
    }

    /**
     * Set the locale property: Gets or sets the locale of the error.
     *
     * @param locale the locale value to set.
     * @return the DscReportError object itself.
     */
    public DscReportError withLocale(String locale) {
        this.locale = locale;
        return this;
    }

    /**
     * Get the errorDetails property: Gets or sets the error details.
     *
     * @return the errorDetails value.
     */
    public String errorDetails() {
        return this.errorDetails;
    }

    /**
     * Set the errorDetails property: Gets or sets the error details.
     *
     * @param errorDetails the errorDetails value to set.
     * @return the DscReportError object itself.
     */
    public DscReportError withErrorDetails(String errorDetails) {
        this.errorDetails = errorDetails;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy