com.pulumi.azure.devtest.inputs.LinuxVirtualMachineGalleryImageReferenceArgs Maven / Gradle / Ivy
// *** 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.devtest.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 LinuxVirtualMachineGalleryImageReferenceArgs extends com.pulumi.resources.ResourceArgs {
public static final LinuxVirtualMachineGalleryImageReferenceArgs Empty = new LinuxVirtualMachineGalleryImageReferenceArgs();
/**
* The Offer of the Gallery Image. Changing this forces a new resource to be created.
*
*/
@Import(name="offer", required=true)
private Output offer;
/**
* @return The Offer of the Gallery Image. Changing this forces a new resource to be created.
*
*/
public Output offer() {
return this.offer;
}
/**
* The Publisher of the Gallery Image. Changing this forces a new resource to be created.
*
*/
@Import(name="publisher", required=true)
private Output publisher;
/**
* @return The Publisher of the Gallery Image. Changing this forces a new resource to be created.
*
*/
public Output publisher() {
return this.publisher;
}
/**
* The SKU of the Gallery Image. Changing this forces a new resource to be created.
*
*/
@Import(name="sku", required=true)
private Output sku;
/**
* @return The SKU of the Gallery Image. Changing this forces a new resource to be created.
*
*/
public Output sku() {
return this.sku;
}
/**
* The Version of the Gallery Image. Changing this forces a new resource to be created.
*
*/
@Import(name="version", required=true)
private Output version;
/**
* @return The Version of the Gallery Image. Changing this forces a new resource to be created.
*
*/
public Output version() {
return this.version;
}
private LinuxVirtualMachineGalleryImageReferenceArgs() {}
private LinuxVirtualMachineGalleryImageReferenceArgs(LinuxVirtualMachineGalleryImageReferenceArgs $) {
this.offer = $.offer;
this.publisher = $.publisher;
this.sku = $.sku;
this.version = $.version;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(LinuxVirtualMachineGalleryImageReferenceArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private LinuxVirtualMachineGalleryImageReferenceArgs $;
public Builder() {
$ = new LinuxVirtualMachineGalleryImageReferenceArgs();
}
public Builder(LinuxVirtualMachineGalleryImageReferenceArgs defaults) {
$ = new LinuxVirtualMachineGalleryImageReferenceArgs(Objects.requireNonNull(defaults));
}
/**
* @param offer The Offer of the Gallery Image. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder offer(Output offer) {
$.offer = offer;
return this;
}
/**
* @param offer The Offer of the Gallery Image. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder offer(String offer) {
return offer(Output.of(offer));
}
/**
* @param publisher The Publisher of the Gallery Image. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder publisher(Output publisher) {
$.publisher = publisher;
return this;
}
/**
* @param publisher The Publisher of the Gallery Image. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder publisher(String publisher) {
return publisher(Output.of(publisher));
}
/**
* @param sku The SKU of the Gallery Image. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder sku(Output sku) {
$.sku = sku;
return this;
}
/**
* @param sku The SKU of the Gallery Image. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder sku(String sku) {
return sku(Output.of(sku));
}
/**
* @param version The Version of the Gallery Image. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder version(Output version) {
$.version = version;
return this;
}
/**
* @param version The Version of the Gallery Image. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder version(String version) {
return version(Output.of(version));
}
public LinuxVirtualMachineGalleryImageReferenceArgs build() {
if ($.offer == null) {
throw new MissingRequiredPropertyException("LinuxVirtualMachineGalleryImageReferenceArgs", "offer");
}
if ($.publisher == null) {
throw new MissingRequiredPropertyException("LinuxVirtualMachineGalleryImageReferenceArgs", "publisher");
}
if ($.sku == null) {
throw new MissingRequiredPropertyException("LinuxVirtualMachineGalleryImageReferenceArgs", "sku");
}
if ($.version == null) {
throw new MissingRequiredPropertyException("LinuxVirtualMachineGalleryImageReferenceArgs", "version");
}
return $;
}
}
}