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

com.azure.resourcemanager.migrationdiscoverysap.models.SapMigrateError Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure SDK for MigrationDiscoverySap Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Migration Discovery SAP Client. Package tag package-preview-2023-10.

There is a newer version: 1.0.0-beta.2
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.migrationdiscoverysap.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * An error response from the SAP migrate resources.
 */
@Fluent
public final class SapMigrateError {
    /*
     * The SAP Discovery site resource error body.
     */
    @JsonProperty(value = "properties")
    private ErrorDefinition properties;

    /**
     * Creates an instance of SapMigrateError class.
     */
    public SapMigrateError() {
    }

    /**
     * Get the properties property: The SAP Discovery site resource error body.
     * 
     * @return the properties value.
     */
    public ErrorDefinition properties() {
        return this.properties;
    }

    /**
     * Set the properties property: The SAP Discovery site resource error body.
     * 
     * @param properties the properties value to set.
     * @return the SapMigrateError object itself.
     */
    public SapMigrateError withProperties(ErrorDefinition properties) {
        this.properties = properties;
        return this;
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy