
com.pulumi.azurenative.hybridnetwork.outputs.ImageReferenceResponse 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.azurenative.hybridnetwork.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ImageReferenceResponse {
/**
* @return Specifies in decimal numbers, the exact version of image used to create the virtual machine.
*
*/
private @Nullable String exactVersion;
/**
* @return Specifies the offer of the image used to create the virtual machine.
*
*/
private @Nullable String offer;
/**
* @return The image publisher.
*
*/
private @Nullable String publisher;
/**
* @return The image SKU.
*
*/
private @Nullable String sku;
/**
* @return Specifies the version of the image used to create the virtual machine. The allowed formats are Major.Minor.Build or 'latest'. Major, Minor, and Build are decimal numbers. Specify 'latest' to use the latest version of an image available at deploy time. Even if you use 'latest', the VM image will not automatically update after deploy time even if a new version becomes available.
*
*/
private @Nullable String version;
private ImageReferenceResponse() {}
/**
* @return Specifies in decimal numbers, the exact version of image used to create the virtual machine.
*
*/
public Optional exactVersion() {
return Optional.ofNullable(this.exactVersion);
}
/**
* @return Specifies the offer of the image used to create the virtual machine.
*
*/
public Optional offer() {
return Optional.ofNullable(this.offer);
}
/**
* @return The image publisher.
*
*/
public Optional publisher() {
return Optional.ofNullable(this.publisher);
}
/**
* @return The image SKU.
*
*/
public Optional sku() {
return Optional.ofNullable(this.sku);
}
/**
* @return Specifies the version of the image used to create the virtual machine. The allowed formats are Major.Minor.Build or 'latest'. Major, Minor, and Build are decimal numbers. Specify 'latest' to use the latest version of an image available at deploy time. Even if you use 'latest', the VM image will not automatically update after deploy time even if a new version becomes available.
*
*/
public Optional version() {
return Optional.ofNullable(this.version);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ImageReferenceResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String exactVersion;
private @Nullable String offer;
private @Nullable String publisher;
private @Nullable String sku;
private @Nullable String version;
public Builder() {}
public Builder(ImageReferenceResponse defaults) {
Objects.requireNonNull(defaults);
this.exactVersion = defaults.exactVersion;
this.offer = defaults.offer;
this.publisher = defaults.publisher;
this.sku = defaults.sku;
this.version = defaults.version;
}
@CustomType.Setter
public Builder exactVersion(@Nullable String exactVersion) {
this.exactVersion = exactVersion;
return this;
}
@CustomType.Setter
public Builder offer(@Nullable String offer) {
this.offer = offer;
return this;
}
@CustomType.Setter
public Builder publisher(@Nullable String publisher) {
this.publisher = publisher;
return this;
}
@CustomType.Setter
public Builder sku(@Nullable String sku) {
this.sku = sku;
return this;
}
@CustomType.Setter
public Builder version(@Nullable String version) {
this.version = version;
return this;
}
public ImageReferenceResponse build() {
final var _resultValue = new ImageReferenceResponse();
_resultValue.exactVersion = exactVersion;
_resultValue.offer = offer;
_resultValue.publisher = publisher;
_resultValue.sku = sku;
_resultValue.version = version;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy