![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.compute.inputs.WindowsVirtualMachinePlanArgs 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.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 WindowsVirtualMachinePlanArgs extends com.pulumi.resources.ResourceArgs {
public static final WindowsVirtualMachinePlanArgs Empty = new WindowsVirtualMachinePlanArgs();
/**
* Specifies the Name of the Marketplace Image this Virtual Machine should be created from. Changing this forces a new resource to be created.
*
*/
@Import(name="name", required=true)
private Output name;
/**
* @return Specifies the Name of the Marketplace Image this Virtual Machine should be created from. Changing this forces a new resource to be created.
*
*/
public Output name() {
return this.name;
}
/**
* Specifies the Product of the Marketplace Image this Virtual Machine should be created from. Changing this forces a new resource to be created.
*
*/
@Import(name="product", required=true)
private Output product;
/**
* @return Specifies the Product of the Marketplace Image this Virtual Machine should be created from. Changing this forces a new resource to be created.
*
*/
public Output product() {
return this.product;
}
/**
* Specifies the Publisher of the Marketplace Image this Virtual Machine should be created from. Changing this forces a new resource to be created.
*
* > **NOTE:** If you use the `plan` block with one of Microsoft's marketplace images (e.g. `publisher = "MicrosoftWindowsServer"`). This may prevent the purchase of the offer. An example Azure API error: `The Offer: 'WindowsServer' cannot be purchased by subscription: '12345678-12234-5678-9012-123456789012' as it is not to be sold in market: 'US'. Please choose a subscription which is associated with a different market.`
*
*/
@Import(name="publisher", required=true)
private Output publisher;
/**
* @return Specifies the Publisher of the Marketplace Image this Virtual Machine should be created from. Changing this forces a new resource to be created.
*
* > **NOTE:** If you use the `plan` block with one of Microsoft's marketplace images (e.g. `publisher = "MicrosoftWindowsServer"`). This may prevent the purchase of the offer. An example Azure API error: `The Offer: 'WindowsServer' cannot be purchased by subscription: '12345678-12234-5678-9012-123456789012' as it is not to be sold in market: 'US'. Please choose a subscription which is associated with a different market.`
*
*/
public Output publisher() {
return this.publisher;
}
private WindowsVirtualMachinePlanArgs() {}
private WindowsVirtualMachinePlanArgs(WindowsVirtualMachinePlanArgs $) {
this.name = $.name;
this.product = $.product;
this.publisher = $.publisher;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WindowsVirtualMachinePlanArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private WindowsVirtualMachinePlanArgs $;
public Builder() {
$ = new WindowsVirtualMachinePlanArgs();
}
public Builder(WindowsVirtualMachinePlanArgs defaults) {
$ = new WindowsVirtualMachinePlanArgs(Objects.requireNonNull(defaults));
}
/**
* @param name Specifies the Name of the Marketplace Image this Virtual Machine should be created from. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder name(Output name) {
$.name = name;
return this;
}
/**
* @param name Specifies the Name of the Marketplace Image this Virtual Machine should be created from. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
/**
* @param product Specifies the Product of the Marketplace Image this Virtual Machine should be created from. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder product(Output product) {
$.product = product;
return this;
}
/**
* @param product Specifies the Product of the Marketplace Image this Virtual Machine should be created from. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder product(String product) {
return product(Output.of(product));
}
/**
* @param publisher Specifies the Publisher of the Marketplace Image this Virtual Machine should be created from. Changing this forces a new resource to be created.
*
* > **NOTE:** If you use the `plan` block with one of Microsoft's marketplace images (e.g. `publisher = "MicrosoftWindowsServer"`). This may prevent the purchase of the offer. An example Azure API error: `The Offer: 'WindowsServer' cannot be purchased by subscription: '12345678-12234-5678-9012-123456789012' as it is not to be sold in market: 'US'. Please choose a subscription which is associated with a different market.`
*
* @return builder
*
*/
public Builder publisher(Output publisher) {
$.publisher = publisher;
return this;
}
/**
* @param publisher Specifies the Publisher of the Marketplace Image this Virtual Machine should be created from. Changing this forces a new resource to be created.
*
* > **NOTE:** If you use the `plan` block with one of Microsoft's marketplace images (e.g. `publisher = "MicrosoftWindowsServer"`). This may prevent the purchase of the offer. An example Azure API error: `The Offer: 'WindowsServer' cannot be purchased by subscription: '12345678-12234-5678-9012-123456789012' as it is not to be sold in market: 'US'. Please choose a subscription which is associated with a different market.`
*
* @return builder
*
*/
public Builder publisher(String publisher) {
return publisher(Output.of(publisher));
}
public WindowsVirtualMachinePlanArgs build() {
if ($.name == null) {
throw new MissingRequiredPropertyException("WindowsVirtualMachinePlanArgs", "name");
}
if ($.product == null) {
throw new MissingRequiredPropertyException("WindowsVirtualMachinePlanArgs", "product");
}
if ($.publisher == null) {
throw new MissingRequiredPropertyException("WindowsVirtualMachinePlanArgs", "publisher");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy