com.azure.resourcemanager.automation.models.HybridRunbookWorkerGroup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-automation Show documentation
Show all versions of azure-resourcemanager-automation Show documentation
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-2022-02-22.
The 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.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.automation.fluent.models.HybridRunbookWorkerGroupInner;
/**
* An immutable client-side representation of HybridRunbookWorkerGroup.
*/
public interface HybridRunbookWorkerGroup {
/**
* 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 systemData property: Resource system metadata.
*
* @return the systemData value.
*/
SystemData systemData();
/**
* Gets the groupType property: Type of the HybridWorkerGroup.
*
* @return the groupType value.
*/
GroupTypeEnum groupType();
/**
* Gets the credential property: Sets the credential of a worker group.
*
* @return the credential value.
*/
RunAsCredentialAssociationProperty credential();
/**
* Gets the name of the resource group.
*
* @return the name of the resource group.
*/
String resourceGroupName();
/**
* Gets the inner com.azure.resourcemanager.automation.fluent.models.HybridRunbookWorkerGroupInner object.
*
* @return the inner object.
*/
HybridRunbookWorkerGroupInner innerModel();
/**
* The entirety of the HybridRunbookWorkerGroup definition.
*/
interface Definition
extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {
}
/**
* The HybridRunbookWorkerGroup definition stages.
*/
interface DefinitionStages {
/**
* The first stage of the HybridRunbookWorkerGroup definition.
*/
interface Blank extends WithParentResource {
}
/**
* The stage of the HybridRunbookWorkerGroup definition allowing to specify parent resource.
*/
interface WithParentResource {
/**
* Specifies resourceGroupName, automationAccountName.
*
* @param resourceGroupName Name of an Azure Resource group.
* @param automationAccountName The name of the automation account.
* @return the next definition stage.
*/
WithCreate withExistingAutomationAccount(String resourceGroupName, String automationAccountName);
}
/**
* The stage of the HybridRunbookWorkerGroup 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.WithName, DefinitionStages.WithCredential {
/**
* Executes the create request.
*
* @return the created resource.
*/
HybridRunbookWorkerGroup create();
/**
* Executes the create request.
*
* @param context The context to associate with this operation.
* @return the created resource.
*/
HybridRunbookWorkerGroup create(Context context);
}
/**
* The stage of the HybridRunbookWorkerGroup definition allowing to specify name.
*/
interface WithName {
/**
* Specifies the name property: Gets or sets the name of the resource..
*
* @param name Gets or sets the name of the resource.
* @return the next definition stage.
*/
WithCreate withName(String name);
}
/**
* The stage of the HybridRunbookWorkerGroup definition allowing to specify credential.
*/
interface WithCredential {
/**
* Specifies the credential property: Sets the credential of a worker group..
*
* @param credential Sets the credential of a worker group.
* @return the next definition stage.
*/
WithCreate withCredential(RunAsCredentialAssociationProperty credential);
}
}
/**
* Begins update for the HybridRunbookWorkerGroup resource.
*
* @return the stage of resource update.
*/
HybridRunbookWorkerGroup.Update update();
/**
* The template for HybridRunbookWorkerGroup update.
*/
interface Update extends UpdateStages.WithName, UpdateStages.WithCredential {
/**
* Executes the update request.
*
* @return the updated resource.
*/
HybridRunbookWorkerGroup apply();
/**
* Executes the update request.
*
* @param context The context to associate with this operation.
* @return the updated resource.
*/
HybridRunbookWorkerGroup apply(Context context);
}
/**
* The HybridRunbookWorkerGroup update stages.
*/
interface UpdateStages {
/**
* The stage of the HybridRunbookWorkerGroup update allowing to specify name.
*/
interface WithName {
/**
* Specifies the name property: Gets or sets the name of the resource..
*
* @param name Gets or sets the name of the resource.
* @return the next definition stage.
*/
Update withName(String name);
}
/**
* The stage of the HybridRunbookWorkerGroup update allowing to specify credential.
*/
interface WithCredential {
/**
* Specifies the credential property: Sets the credential of a worker group..
*
* @param credential Sets the credential of a worker group.
* @return the next definition stage.
*/
Update withCredential(RunAsCredentialAssociationProperty credential);
}
}
/**
* Refreshes the resource to sync with Azure.
*
* @return the refreshed resource.
*/
HybridRunbookWorkerGroup refresh();
/**
* Refreshes the resource to sync with Azure.
*
* @param context The context to associate with this operation.
* @return the refreshed resource.
*/
HybridRunbookWorkerGroup refresh(Context context);
}