All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.devcenter.outputs.ImageReferenceResponse Maven / Gradle / Ivy

There is a newer version: 2.82.0
Show newest version
// *** 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.devcenter.outputs;

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 ImageReferenceResponse {
    /**
     * @return The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual version in use.
     * 
     */
    private String exactVersion;
    /**
     * @return Image ID, or Image version ID. When Image ID is provided, its latest version will be used.
     * 
     */
    private @Nullable String id;

    private ImageReferenceResponse() {}
    /**
     * @return The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual version in use.
     * 
     */
    public String exactVersion() {
        return this.exactVersion;
    }
    /**
     * @return Image ID, or Image version ID. When Image ID is provided, its latest version will be used.
     * 
     */
    public Optional id() {
        return Optional.ofNullable(this.id);
    }

    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 String exactVersion;
        private @Nullable String id;
        public Builder() {}
        public Builder(ImageReferenceResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.exactVersion = defaults.exactVersion;
    	      this.id = defaults.id;
        }

        @CustomType.Setter
        public Builder exactVersion(String exactVersion) {
            if (exactVersion == null) {
              throw new MissingRequiredPropertyException("ImageReferenceResponse", "exactVersion");
            }
            this.exactVersion = exactVersion;
            return this;
        }
        @CustomType.Setter
        public Builder id(@Nullable String id) {

            this.id = id;
            return this;
        }
        public ImageReferenceResponse build() {
            final var _resultValue = new ImageReferenceResponse();
            _resultValue.exactVersion = exactVersion;
            _resultValue.id = id;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy