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

com.pulumi.azurenative.devtestlab.outputs.GetCustomImageResult 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.devtestlab.outputs;

import com.pulumi.azurenative.devtestlab.outputs.CustomImagePropertiesCustomResponse;
import com.pulumi.azurenative.devtestlab.outputs.CustomImagePropertiesFromPlanResponse;
import com.pulumi.azurenative.devtestlab.outputs.CustomImagePropertiesFromVmResponse;
import com.pulumi.azurenative.devtestlab.outputs.DataDiskStorageTypeInfoResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetCustomImageResult {
    /**
     * @return The author of the custom image.
     * 
     */
    private @Nullable String author;
    /**
     * @return The creation date of the custom image.
     * 
     */
    private String creationDate;
    /**
     * @return Storage information about the plan related to this custom image
     * 
     */
    private @Nullable CustomImagePropertiesFromPlanResponse customImagePlan;
    /**
     * @return Storage information about the data disks present in the custom image
     * 
     */
    private @Nullable List dataDiskStorageInfo;
    /**
     * @return The description of the custom image.
     * 
     */
    private @Nullable String description;
    /**
     * @return The identifier of the resource.
     * 
     */
    private String id;
    /**
     * @return Whether or not the custom images underlying offer/plan has been enabled for programmatic deployment
     * 
     */
    private @Nullable Boolean isPlanAuthorized;
    /**
     * @return The location of the resource.
     * 
     */
    private @Nullable String location;
    /**
     * @return The Managed Image Id backing the custom image.
     * 
     */
    private @Nullable String managedImageId;
    /**
     * @return The Managed Snapshot Id backing the custom image.
     * 
     */
    private @Nullable String managedSnapshotId;
    /**
     * @return The name of the resource.
     * 
     */
    private String name;
    /**
     * @return The provisioning status of the resource.
     * 
     */
    private String provisioningState;
    /**
     * @return The tags of the resource.
     * 
     */
    private @Nullable Map tags;
    /**
     * @return The type of the resource.
     * 
     */
    private String type;
    /**
     * @return The unique immutable identifier of a resource (Guid).
     * 
     */
    private String uniqueIdentifier;
    /**
     * @return The VHD from which the image is to be created.
     * 
     */
    private @Nullable CustomImagePropertiesCustomResponse vhd;
    /**
     * @return The virtual machine from which the image is to be created.
     * 
     */
    private @Nullable CustomImagePropertiesFromVmResponse vm;

    private GetCustomImageResult() {}
    /**
     * @return The author of the custom image.
     * 
     */
    public Optional author() {
        return Optional.ofNullable(this.author);
    }
    /**
     * @return The creation date of the custom image.
     * 
     */
    public String creationDate() {
        return this.creationDate;
    }
    /**
     * @return Storage information about the plan related to this custom image
     * 
     */
    public Optional customImagePlan() {
        return Optional.ofNullable(this.customImagePlan);
    }
    /**
     * @return Storage information about the data disks present in the custom image
     * 
     */
    public List dataDiskStorageInfo() {
        return this.dataDiskStorageInfo == null ? List.of() : this.dataDiskStorageInfo;
    }
    /**
     * @return The description of the custom image.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return The identifier of the resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Whether or not the custom images underlying offer/plan has been enabled for programmatic deployment
     * 
     */
    public Optional isPlanAuthorized() {
        return Optional.ofNullable(this.isPlanAuthorized);
    }
    /**
     * @return The location of the resource.
     * 
     */
    public Optional location() {
        return Optional.ofNullable(this.location);
    }
    /**
     * @return The Managed Image Id backing the custom image.
     * 
     */
    public Optional managedImageId() {
        return Optional.ofNullable(this.managedImageId);
    }
    /**
     * @return The Managed Snapshot Id backing the custom image.
     * 
     */
    public Optional managedSnapshotId() {
        return Optional.ofNullable(this.managedSnapshotId);
    }
    /**
     * @return The name of the resource.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The provisioning status of the resource.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return The tags of the resource.
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return The type of the resource.
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return The unique immutable identifier of a resource (Guid).
     * 
     */
    public String uniqueIdentifier() {
        return this.uniqueIdentifier;
    }
    /**
     * @return The VHD from which the image is to be created.
     * 
     */
    public Optional vhd() {
        return Optional.ofNullable(this.vhd);
    }
    /**
     * @return The virtual machine from which the image is to be created.
     * 
     */
    public Optional vm() {
        return Optional.ofNullable(this.vm);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(GetCustomImageResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String author;
        private String creationDate;
        private @Nullable CustomImagePropertiesFromPlanResponse customImagePlan;
        private @Nullable List dataDiskStorageInfo;
        private @Nullable String description;
        private String id;
        private @Nullable Boolean isPlanAuthorized;
        private @Nullable String location;
        private @Nullable String managedImageId;
        private @Nullable String managedSnapshotId;
        private String name;
        private String provisioningState;
        private @Nullable Map tags;
        private String type;
        private String uniqueIdentifier;
        private @Nullable CustomImagePropertiesCustomResponse vhd;
        private @Nullable CustomImagePropertiesFromVmResponse vm;
        public Builder() {}
        public Builder(GetCustomImageResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.author = defaults.author;
    	      this.creationDate = defaults.creationDate;
    	      this.customImagePlan = defaults.customImagePlan;
    	      this.dataDiskStorageInfo = defaults.dataDiskStorageInfo;
    	      this.description = defaults.description;
    	      this.id = defaults.id;
    	      this.isPlanAuthorized = defaults.isPlanAuthorized;
    	      this.location = defaults.location;
    	      this.managedImageId = defaults.managedImageId;
    	      this.managedSnapshotId = defaults.managedSnapshotId;
    	      this.name = defaults.name;
    	      this.provisioningState = defaults.provisioningState;
    	      this.tags = defaults.tags;
    	      this.type = defaults.type;
    	      this.uniqueIdentifier = defaults.uniqueIdentifier;
    	      this.vhd = defaults.vhd;
    	      this.vm = defaults.vm;
        }

        @CustomType.Setter
        public Builder author(@Nullable String author) {

            this.author = author;
            return this;
        }
        @CustomType.Setter
        public Builder creationDate(String creationDate) {
            if (creationDate == null) {
              throw new MissingRequiredPropertyException("GetCustomImageResult", "creationDate");
            }
            this.creationDate = creationDate;
            return this;
        }
        @CustomType.Setter
        public Builder customImagePlan(@Nullable CustomImagePropertiesFromPlanResponse customImagePlan) {

            this.customImagePlan = customImagePlan;
            return this;
        }
        @CustomType.Setter
        public Builder dataDiskStorageInfo(@Nullable List dataDiskStorageInfo) {

            this.dataDiskStorageInfo = dataDiskStorageInfo;
            return this;
        }
        public Builder dataDiskStorageInfo(DataDiskStorageTypeInfoResponse... dataDiskStorageInfo) {
            return dataDiskStorageInfo(List.of(dataDiskStorageInfo));
        }
        @CustomType.Setter
        public Builder description(@Nullable String description) {

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

            this.isPlanAuthorized = isPlanAuthorized;
            return this;
        }
        @CustomType.Setter
        public Builder location(@Nullable String location) {

            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder managedImageId(@Nullable String managedImageId) {

            this.managedImageId = managedImageId;
            return this;
        }
        @CustomType.Setter
        public Builder managedSnapshotId(@Nullable String managedSnapshotId) {

            this.managedSnapshotId = managedSnapshotId;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetCustomImageResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetCustomImageResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder tags(@Nullable Map tags) {

            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetCustomImageResult", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder uniqueIdentifier(String uniqueIdentifier) {
            if (uniqueIdentifier == null) {
              throw new MissingRequiredPropertyException("GetCustomImageResult", "uniqueIdentifier");
            }
            this.uniqueIdentifier = uniqueIdentifier;
            return this;
        }
        @CustomType.Setter
        public Builder vhd(@Nullable CustomImagePropertiesCustomResponse vhd) {

            this.vhd = vhd;
            return this;
        }
        @CustomType.Setter
        public Builder vm(@Nullable CustomImagePropertiesFromVmResponse vm) {

            this.vm = vm;
            return this;
        }
        public GetCustomImageResult build() {
            final var _resultValue = new GetCustomImageResult();
            _resultValue.author = author;
            _resultValue.creationDate = creationDate;
            _resultValue.customImagePlan = customImagePlan;
            _resultValue.dataDiskStorageInfo = dataDiskStorageInfo;
            _resultValue.description = description;
            _resultValue.id = id;
            _resultValue.isPlanAuthorized = isPlanAuthorized;
            _resultValue.location = location;
            _resultValue.managedImageId = managedImageId;
            _resultValue.managedSnapshotId = managedSnapshotId;
            _resultValue.name = name;
            _resultValue.provisioningState = provisioningState;
            _resultValue.tags = tags;
            _resultValue.type = type;
            _resultValue.uniqueIdentifier = uniqueIdentifier;
            _resultValue.vhd = vhd;
            _resultValue.vm = vm;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy