com.pulumi.azurenative.scvmm.inputs.GetVirtualMachineArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.azurenative.scvmm.inputs;
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 GetVirtualMachineArgs extends com.pulumi.resources.InvokeArgs {
public static final GetVirtualMachineArgs Empty = new GetVirtualMachineArgs();
/**
* The name of the resource group.
*
*/
@Import(name="resourceGroupName", required=true)
private Output resourceGroupName;
/**
* @return The name of the resource group.
*
*/
public Output resourceGroupName() {
return this.resourceGroupName;
}
/**
* Name of the VirtualMachine.
*
*/
@Import(name="virtualMachineName", required=true)
private Output virtualMachineName;
/**
* @return Name of the VirtualMachine.
*
*/
public Output virtualMachineName() {
return this.virtualMachineName;
}
private GetVirtualMachineArgs() {}
private GetVirtualMachineArgs(GetVirtualMachineArgs $) {
this.resourceGroupName = $.resourceGroupName;
this.virtualMachineName = $.virtualMachineName;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetVirtualMachineArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetVirtualMachineArgs $;
public Builder() {
$ = new GetVirtualMachineArgs();
}
public Builder(GetVirtualMachineArgs defaults) {
$ = new GetVirtualMachineArgs(Objects.requireNonNull(defaults));
}
/**
* @param resourceGroupName The name of the resource group.
*
* @return builder
*
*/
public Builder resourceGroupName(Output resourceGroupName) {
$.resourceGroupName = resourceGroupName;
return this;
}
/**
* @param resourceGroupName The name of the resource group.
*
* @return builder
*
*/
public Builder resourceGroupName(String resourceGroupName) {
return resourceGroupName(Output.of(resourceGroupName));
}
/**
* @param virtualMachineName Name of the VirtualMachine.
*
* @return builder
*
*/
public Builder virtualMachineName(Output virtualMachineName) {
$.virtualMachineName = virtualMachineName;
return this;
}
/**
* @param virtualMachineName Name of the VirtualMachine.
*
* @return builder
*
*/
public Builder virtualMachineName(String virtualMachineName) {
return virtualMachineName(Output.of(virtualMachineName));
}
public GetVirtualMachineArgs build() {
if ($.resourceGroupName == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineArgs", "resourceGroupName");
}
if ($.virtualMachineName == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineArgs", "virtualMachineName");
}
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy