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

com.azure.resourcemanager.migrationdiscoverysap.models.ServerInstance 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.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.migrationdiscoverysap.fluent.models.ServerInstanceInner;

/**
 * An immutable client-side representation of ServerInstance.
 */
public interface ServerInstance {
    /**
     * Gets the id property: Fully qualified resource Id for the resource.
     * 
     * @return the id value.
     */
    String id();

    /**
     * Gets the name property: The name of the resource.
     * 
     * @return the name value.
     */
    String name();

    /**
     * Gets the type property: The type of the resource.
     * 
     * @return the type value.
     */
    String type();

    /**
     * Gets the properties property: The resource-specific properties for this resource.
     * 
     * @return the properties value.
     */
    ServerInstanceProperties properties();

    /**
     * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     * @return the systemData value.
     */
    SystemData systemData();

    /**
     * Gets the name of the resource group.
     * 
     * @return the name of the resource group.
     */
    String resourceGroupName();

    /**
     * Gets the inner com.azure.resourcemanager.migrationdiscoverysap.fluent.models.ServerInstanceInner object.
     * 
     * @return the inner object.
     */
    ServerInstanceInner innerModel();

    /**
     * The entirety of the ServerInstance definition.
     */
    interface Definition
        extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {
    }

    /**
     * The ServerInstance definition stages.
     */
    interface DefinitionStages {
        /**
         * The first stage of the ServerInstance definition.
         */
        interface Blank extends WithParentResource {
        }

        /**
         * The stage of the ServerInstance definition allowing to specify parent resource.
         */
        interface WithParentResource {
            /**
             * Specifies resourceGroupName, sapDiscoverySiteName, sapInstanceName.
             * 
             * @param resourceGroupName The name of the resource group. The name is case insensitive.
             * @param sapDiscoverySiteName The name of the discovery site resource for SAP Migration.
             * @param sapInstanceName The name of SAP Instance resource for SAP Migration.
             * @return the next definition stage.
             */
            WithCreate withExistingSapInstance(String resourceGroupName, String sapDiscoverySiteName,
                String sapInstanceName);
        }

        /**
         * The stage of the ServerInstance definition which contains all the minimum required properties for the
         * resource to be created, but also allows for any other optional properties to be specified.
         */
        interface WithCreate extends DefinitionStages.WithProperties {
            /**
             * Executes the create request.
             * 
             * @return the created resource.
             */
            ServerInstance create();

            /**
             * Executes the create request.
             * 
             * @param context The context to associate with this operation.
             * @return the created resource.
             */
            ServerInstance create(Context context);
        }

        /**
         * The stage of the ServerInstance definition allowing to specify properties.
         */
        interface WithProperties {
            /**
             * Specifies the properties property: The resource-specific properties for this resource..
             * 
             * @param properties The resource-specific properties for this resource.
             * @return the next definition stage.
             */
            WithCreate withProperties(ServerInstanceProperties properties);
        }
    }

    /**
     * Begins update for the ServerInstance resource.
     * 
     * @return the stage of resource update.
     */
    ServerInstance.Update update();

    /**
     * The template for ServerInstance update.
     */
    interface Update extends UpdateStages.WithProperties {
        /**
         * Executes the update request.
         * 
         * @return the updated resource.
         */
        ServerInstance apply();

        /**
         * Executes the update request.
         * 
         * @param context The context to associate with this operation.
         * @return the updated resource.
         */
        ServerInstance apply(Context context);
    }

    /**
     * The ServerInstance update stages.
     */
    interface UpdateStages {
        /**
         * The stage of the ServerInstance update allowing to specify properties.
         */
        interface WithProperties {
            /**
             * Specifies the properties property: Server instances properties..
             * 
             * @param properties Server instances properties.
             * @return the next definition stage.
             */
            Update withProperties(ServerInstanceProperties properties);
        }
    }

    /**
     * Refreshes the resource to sync with Azure.
     * 
     * @return the refreshed resource.
     */
    ServerInstance refresh();

    /**
     * Refreshes the resource to sync with Azure.
     * 
     * @param context The context to associate with this operation.
     * @return the refreshed resource.
     */
    ServerInstance refresh(Context context);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy