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

com.azure.resourcemanager.migrationdiscoverysap.models.SapDiscoverySiteProperties 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;

/**
 * Defines the SAP Migration discovery site resource properties.
 */
@Fluent
public final class SapDiscoverySiteProperties {
    /*
     * The master site ID from Azure Migrate.
     */
    @JsonProperty(value = "masterSiteId")
    private String masterSiteId;

    /*
     * The migrate project ID from Azure Migrate.
     */
    @JsonProperty(value = "migrateProjectId")
    private String migrateProjectId;

    /*
     * Defines the provisioning states.
     */
    @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
    private ProvisioningState provisioningState;

    /*
     * Indicates any errors on the SAP Migration discovery site resource.
     */
    @JsonProperty(value = "errors", access = JsonProperty.Access.WRITE_ONLY)
    private SapMigrateError errors;

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

    /**
     * Get the masterSiteId property: The master site ID from Azure Migrate.
     * 
     * @return the masterSiteId value.
     */
    public String masterSiteId() {
        return this.masterSiteId;
    }

    /**
     * Set the masterSiteId property: The master site ID from Azure Migrate.
     * 
     * @param masterSiteId the masterSiteId value to set.
     * @return the SapDiscoverySiteProperties object itself.
     */
    public SapDiscoverySiteProperties withMasterSiteId(String masterSiteId) {
        this.masterSiteId = masterSiteId;
        return this;
    }

    /**
     * Get the migrateProjectId property: The migrate project ID from Azure Migrate.
     * 
     * @return the migrateProjectId value.
     */
    public String migrateProjectId() {
        return this.migrateProjectId;
    }

    /**
     * Set the migrateProjectId property: The migrate project ID from Azure Migrate.
     * 
     * @param migrateProjectId the migrateProjectId value to set.
     * @return the SapDiscoverySiteProperties object itself.
     */
    public SapDiscoverySiteProperties withMigrateProjectId(String migrateProjectId) {
        this.migrateProjectId = migrateProjectId;
        return this;
    }

    /**
     * Get the provisioningState property: Defines the provisioning states.
     * 
     * @return the provisioningState value.
     */
    public ProvisioningState provisioningState() {
        return this.provisioningState;
    }

    /**
     * Get the errors property: Indicates any errors on the SAP Migration discovery site resource.
     * 
     * @return the errors value.
     */
    public SapMigrateError errors() {
        return this.errors;
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy