com.pulumi.azure.compute.AutomanageConfigurationAssignmentArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azure.compute;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
public final class AutomanageConfigurationAssignmentArgs extends com.pulumi.resources.ResourceArgs {
public static final AutomanageConfigurationAssignmentArgs Empty = new AutomanageConfigurationAssignmentArgs();
/**
* The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created.
*
*/
@Import(name="configurationId", required=true)
private Output configurationId;
/**
* @return The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created.
*
*/
public Output configurationId() {
return this.configurationId;
}
/**
* The ARM resource ID of the Virtual Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created.
*
*/
@Import(name="virtualMachineId", required=true)
private Output virtualMachineId;
/**
* @return The ARM resource ID of the Virtual Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created.
*
*/
public Output virtualMachineId() {
return this.virtualMachineId;
}
private AutomanageConfigurationAssignmentArgs() {}
private AutomanageConfigurationAssignmentArgs(AutomanageConfigurationAssignmentArgs $) {
this.configurationId = $.configurationId;
this.virtualMachineId = $.virtualMachineId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AutomanageConfigurationAssignmentArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private AutomanageConfigurationAssignmentArgs $;
public Builder() {
$ = new AutomanageConfigurationAssignmentArgs();
}
public Builder(AutomanageConfigurationAssignmentArgs defaults) {
$ = new AutomanageConfigurationAssignmentArgs(Objects.requireNonNull(defaults));
}
/**
* @param configurationId The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder configurationId(Output configurationId) {
$.configurationId = configurationId;
return this;
}
/**
* @param configurationId The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder configurationId(String configurationId) {
return configurationId(Output.of(configurationId));
}
/**
* @param virtualMachineId The ARM resource ID of the Virtual Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder virtualMachineId(Output virtualMachineId) {
$.virtualMachineId = virtualMachineId;
return this;
}
/**
* @param virtualMachineId The ARM resource ID of the Virtual Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder virtualMachineId(String virtualMachineId) {
return virtualMachineId(Output.of(virtualMachineId));
}
public AutomanageConfigurationAssignmentArgs build() {
if ($.configurationId == null) {
throw new MissingRequiredPropertyException("AutomanageConfigurationAssignmentArgs", "configurationId");
}
if ($.virtualMachineId == null) {
throw new MissingRequiredPropertyException("AutomanageConfigurationAssignmentArgs", "virtualMachineId");
}
return $;
}
}
}