
com.pulumi.azurenative.virtualmachineimages.outputs.ImageTemplatePlatformImageSourceResponse 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.virtualmachineimages.outputs;
import com.pulumi.azurenative.virtualmachineimages.outputs.PlatformImagePurchasePlanResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ImageTemplatePlatformImageSourceResponse {
/**
* @return Image version from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). This readonly field differs from 'version', only if the value specified in 'version' field is 'latest'.
*
*/
private String exactVersion;
/**
* @return Image offer from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).
*
*/
private @Nullable String offer;
/**
* @return Optional configuration of purchase plan for platform image.
*
*/
private @Nullable PlatformImagePurchasePlanResponse planInfo;
/**
* @return Image Publisher in [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).
*
*/
private @Nullable String publisher;
/**
* @return Image sku from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).
*
*/
private @Nullable String sku;
/**
* @return Specifies the type of source image you want to start with.
* Expected value is 'PlatformImage'.
*
*/
private String type;
/**
* @return Image version from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). If 'latest' is specified here, the version is evaluated when the image build takes place, not when the template is submitted.
*
*/
private @Nullable String version;
private ImageTemplatePlatformImageSourceResponse() {}
/**
* @return Image version from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). This readonly field differs from 'version', only if the value specified in 'version' field is 'latest'.
*
*/
public String exactVersion() {
return this.exactVersion;
}
/**
* @return Image offer from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).
*
*/
public Optional offer() {
return Optional.ofNullable(this.offer);
}
/**
* @return Optional configuration of purchase plan for platform image.
*
*/
public Optional planInfo() {
return Optional.ofNullable(this.planInfo);
}
/**
* @return Image Publisher in [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).
*
*/
public Optional publisher() {
return Optional.ofNullable(this.publisher);
}
/**
* @return Image sku from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).
*
*/
public Optional sku() {
return Optional.ofNullable(this.sku);
}
/**
* @return Specifies the type of source image you want to start with.
* Expected value is 'PlatformImage'.
*
*/
public String type() {
return this.type;
}
/**
* @return Image version from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). If 'latest' is specified here, the version is evaluated when the image build takes place, not when the template is submitted.
*
*/
public Optional version() {
return Optional.ofNullable(this.version);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ImageTemplatePlatformImageSourceResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String exactVersion;
private @Nullable String offer;
private @Nullable PlatformImagePurchasePlanResponse planInfo;
private @Nullable String publisher;
private @Nullable String sku;
private String type;
private @Nullable String version;
public Builder() {}
public Builder(ImageTemplatePlatformImageSourceResponse defaults) {
Objects.requireNonNull(defaults);
this.exactVersion = defaults.exactVersion;
this.offer = defaults.offer;
this.planInfo = defaults.planInfo;
this.publisher = defaults.publisher;
this.sku = defaults.sku;
this.type = defaults.type;
this.version = defaults.version;
}
@CustomType.Setter
public Builder exactVersion(String exactVersion) {
if (exactVersion == null) {
throw new MissingRequiredPropertyException("ImageTemplatePlatformImageSourceResponse", "exactVersion");
}
this.exactVersion = exactVersion;
return this;
}
@CustomType.Setter
public Builder offer(@Nullable String offer) {
this.offer = offer;
return this;
}
@CustomType.Setter
public Builder planInfo(@Nullable PlatformImagePurchasePlanResponse planInfo) {
this.planInfo = planInfo;
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 type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("ImageTemplatePlatformImageSourceResponse", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder version(@Nullable String version) {
this.version = version;
return this;
}
public ImageTemplatePlatformImageSourceResponse build() {
final var _resultValue = new ImageTemplatePlatformImageSourceResponse();
_resultValue.exactVersion = exactVersion;
_resultValue.offer = offer;
_resultValue.planInfo = planInfo;
_resultValue.publisher = publisher;
_resultValue.sku = sku;
_resultValue.type = type;
_resultValue.version = version;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy