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

com.azure.resourcemanager.security.models.Application Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure SDK for Security Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. API spec for Microsoft.Security (Azure Security Center) resource provider. Package tag package-composite-v3.

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.security.models;

import com.azure.core.util.Context;
import com.azure.resourcemanager.security.fluent.models.ApplicationInner;
import java.util.List;

/**
 * An immutable client-side representation of Application.
 */
public interface Application {
    /**
     * 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 displayName property: display name of the application.
     * 
     * @return the displayName value.
     */
    String displayName();

    /**
     * Gets the description property: description of the application.
     * 
     * @return the description value.
     */
    String description();

    /**
     * Gets the sourceResourceType property: The application source, what it affects, e.g. Assessments.
     * 
     * @return the sourceResourceType value.
     */
    ApplicationSourceResourceType sourceResourceType();

    /**
     * Gets the conditionSets property: The application conditionSets - see examples.
     * 
     * @return the conditionSets value.
     */
    List conditionSets();

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

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

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

        /**
         * The stage of the Application 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.WithDisplayName, DefinitionStages.WithDescription,
            DefinitionStages.WithSourceResourceType, DefinitionStages.WithConditionSets {
            /**
             * Executes the create request.
             * 
             * @return the created resource.
             */
            Application create();

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

        /**
         * The stage of the Application definition allowing to specify displayName.
         */
        interface WithDisplayName {
            /**
             * Specifies the displayName property: display name of the application.
             * 
             * @param displayName display name of the application.
             * @return the next definition stage.
             */
            WithCreate withDisplayName(String displayName);
        }

        /**
         * The stage of the Application definition allowing to specify description.
         */
        interface WithDescription {
            /**
             * Specifies the description property: description of the application.
             * 
             * @param description description of the application.
             * @return the next definition stage.
             */
            WithCreate withDescription(String description);
        }

        /**
         * The stage of the Application definition allowing to specify sourceResourceType.
         */
        interface WithSourceResourceType {
            /**
             * Specifies the sourceResourceType property: The application source, what it affects, e.g. Assessments.
             * 
             * @param sourceResourceType The application source, what it affects, e.g. Assessments.
             * @return the next definition stage.
             */
            WithCreate withSourceResourceType(ApplicationSourceResourceType sourceResourceType);
        }

        /**
         * The stage of the Application definition allowing to specify conditionSets.
         */
        interface WithConditionSets {
            /**
             * Specifies the conditionSets property: The application conditionSets - see examples.
             * 
             * @param conditionSets The application conditionSets - see examples.
             * @return the next definition stage.
             */
            WithCreate withConditionSets(List conditionSets);
        }
    }

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

    /**
     * The template for Application update.
     */
    interface Update extends UpdateStages.WithDisplayName, UpdateStages.WithDescription,
        UpdateStages.WithSourceResourceType, UpdateStages.WithConditionSets {
        /**
         * Executes the update request.
         * 
         * @return the updated resource.
         */
        Application apply();

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

    /**
     * The Application update stages.
     */
    interface UpdateStages {
        /**
         * The stage of the Application update allowing to specify displayName.
         */
        interface WithDisplayName {
            /**
             * Specifies the displayName property: display name of the application.
             * 
             * @param displayName display name of the application.
             * @return the next definition stage.
             */
            Update withDisplayName(String displayName);
        }

        /**
         * The stage of the Application update allowing to specify description.
         */
        interface WithDescription {
            /**
             * Specifies the description property: description of the application.
             * 
             * @param description description of the application.
             * @return the next definition stage.
             */
            Update withDescription(String description);
        }

        /**
         * The stage of the Application update allowing to specify sourceResourceType.
         */
        interface WithSourceResourceType {
            /**
             * Specifies the sourceResourceType property: The application source, what it affects, e.g. Assessments.
             * 
             * @param sourceResourceType The application source, what it affects, e.g. Assessments.
             * @return the next definition stage.
             */
            Update withSourceResourceType(ApplicationSourceResourceType sourceResourceType);
        }

        /**
         * The stage of the Application update allowing to specify conditionSets.
         */
        interface WithConditionSets {
            /**
             * Specifies the conditionSets property: The application conditionSets - see examples.
             * 
             * @param conditionSets The application conditionSets - see examples.
             * @return the next definition stage.
             */
            Update withConditionSets(List conditionSets);
        }
    }

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

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