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

com.pulumi.azurenative.compute.GalleryImageVersionArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.compute;

import com.pulumi.azurenative.compute.inputs.GalleryImageVersionPublishingProfileArgs;
import com.pulumi.azurenative.compute.inputs.GalleryImageVersionSafetyProfileArgs;
import com.pulumi.azurenative.compute.inputs.GalleryImageVersionStorageProfileArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class GalleryImageVersionArgs extends com.pulumi.resources.ResourceArgs {

    public static final GalleryImageVersionArgs Empty = new GalleryImageVersionArgs();

    /**
     * The name of the gallery image definition in which the Image Version is to be created.
     * 
     */
    @Import(name="galleryImageName", required=true)
    private Output galleryImageName;

    /**
     * @return The name of the gallery image definition in which the Image Version is to be created.
     * 
     */
    public Output galleryImageName() {
        return this.galleryImageName;
    }

    /**
     * The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>
     * 
     */
    @Import(name="galleryImageVersionName")
    private @Nullable Output galleryImageVersionName;

    /**
     * @return The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>
     * 
     */
    public Optional> galleryImageVersionName() {
        return Optional.ofNullable(this.galleryImageVersionName);
    }

    /**
     * The name of the Shared Image Gallery in which the Image Definition resides.
     * 
     */
    @Import(name="galleryName", required=true)
    private Output galleryName;

    /**
     * @return The name of the Shared Image Gallery in which the Image Definition resides.
     * 
     */
    public Output galleryName() {
        return this.galleryName;
    }

    /**
     * Resource location
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Resource location
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The publishing profile of a gallery image Version.
     * 
     */
    @Import(name="publishingProfile")
    private @Nullable Output publishingProfile;

    /**
     * @return The publishing profile of a gallery image Version.
     * 
     */
    public Optional> publishingProfile() {
        return Optional.ofNullable(this.publishingProfile);
    }

    /**
     * The name of the resource group.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * This is the safety profile of the Gallery Image Version.
     * 
     */
    @Import(name="safetyProfile")
    private @Nullable Output safetyProfile;

    /**
     * @return This is the safety profile of the Gallery Image Version.
     * 
     */
    public Optional> safetyProfile() {
        return Optional.ofNullable(this.safetyProfile);
    }

    /**
     * This is the storage profile of a Gallery Image Version.
     * 
     */
    @Import(name="storageProfile", required=true)
    private Output storageProfile;

    /**
     * @return This is the storage profile of a Gallery Image Version.
     * 
     */
    public Output storageProfile() {
        return this.storageProfile;
    }

    /**
     * Resource tags
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private GalleryImageVersionArgs() {}

    private GalleryImageVersionArgs(GalleryImageVersionArgs $) {
        this.galleryImageName = $.galleryImageName;
        this.galleryImageVersionName = $.galleryImageVersionName;
        this.galleryName = $.galleryName;
        this.location = $.location;
        this.publishingProfile = $.publishingProfile;
        this.resourceGroupName = $.resourceGroupName;
        this.safetyProfile = $.safetyProfile;
        this.storageProfile = $.storageProfile;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private GalleryImageVersionArgs $;

        public Builder() {
            $ = new GalleryImageVersionArgs();
        }

        public Builder(GalleryImageVersionArgs defaults) {
            $ = new GalleryImageVersionArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param galleryImageName The name of the gallery image definition in which the Image Version is to be created.
         * 
         * @return builder
         * 
         */
        public Builder galleryImageName(Output galleryImageName) {
            $.galleryImageName = galleryImageName;
            return this;
        }

        /**
         * @param galleryImageName The name of the gallery image definition in which the Image Version is to be created.
         * 
         * @return builder
         * 
         */
        public Builder galleryImageName(String galleryImageName) {
            return galleryImageName(Output.of(galleryImageName));
        }

        /**
         * @param galleryImageVersionName The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>
         * 
         * @return builder
         * 
         */
        public Builder galleryImageVersionName(@Nullable Output galleryImageVersionName) {
            $.galleryImageVersionName = galleryImageVersionName;
            return this;
        }

        /**
         * @param galleryImageVersionName The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>
         * 
         * @return builder
         * 
         */
        public Builder galleryImageVersionName(String galleryImageVersionName) {
            return galleryImageVersionName(Output.of(galleryImageVersionName));
        }

        /**
         * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides.
         * 
         * @return builder
         * 
         */
        public Builder galleryName(Output galleryName) {
            $.galleryName = galleryName;
            return this;
        }

        /**
         * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides.
         * 
         * @return builder
         * 
         */
        public Builder galleryName(String galleryName) {
            return galleryName(Output.of(galleryName));
        }

        /**
         * @param location Resource location
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Resource location
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param publishingProfile The publishing profile of a gallery image Version.
         * 
         * @return builder
         * 
         */
        public Builder publishingProfile(@Nullable Output publishingProfile) {
            $.publishingProfile = publishingProfile;
            return this;
        }

        /**
         * @param publishingProfile The publishing profile of a gallery image Version.
         * 
         * @return builder
         * 
         */
        public Builder publishingProfile(GalleryImageVersionPublishingProfileArgs publishingProfile) {
            return publishingProfile(Output.of(publishingProfile));
        }

        /**
         * @param resourceGroupName The name of the resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param safetyProfile This is the safety profile of the Gallery Image Version.
         * 
         * @return builder
         * 
         */
        public Builder safetyProfile(@Nullable Output safetyProfile) {
            $.safetyProfile = safetyProfile;
            return this;
        }

        /**
         * @param safetyProfile This is the safety profile of the Gallery Image Version.
         * 
         * @return builder
         * 
         */
        public Builder safetyProfile(GalleryImageVersionSafetyProfileArgs safetyProfile) {
            return safetyProfile(Output.of(safetyProfile));
        }

        /**
         * @param storageProfile This is the storage profile of a Gallery Image Version.
         * 
         * @return builder
         * 
         */
        public Builder storageProfile(Output storageProfile) {
            $.storageProfile = storageProfile;
            return this;
        }

        /**
         * @param storageProfile This is the storage profile of a Gallery Image Version.
         * 
         * @return builder
         * 
         */
        public Builder storageProfile(GalleryImageVersionStorageProfileArgs storageProfile) {
            return storageProfile(Output.of(storageProfile));
        }

        /**
         * @param tags Resource tags
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public GalleryImageVersionArgs build() {
            if ($.galleryImageName == null) {
                throw new MissingRequiredPropertyException("GalleryImageVersionArgs", "galleryImageName");
            }
            if ($.galleryName == null) {
                throw new MissingRequiredPropertyException("GalleryImageVersionArgs", "galleryName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("GalleryImageVersionArgs", "resourceGroupName");
            }
            if ($.storageProfile == null) {
                throw new MissingRequiredPropertyException("GalleryImageVersionArgs", "storageProfile");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy