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

com.pulumi.azurenative.azuresphere.ImageArgs 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.azuresphere;

import com.pulumi.azurenative.azuresphere.enums.RegionalDataBoundary;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ImageArgs Empty = new ImageArgs();

    /**
     * Name of catalog
     * 
     */
    @Import(name="catalogName", required=true)
    private Output catalogName;

    /**
     * @return Name of catalog
     * 
     */
    public Output catalogName() {
        return this.catalogName;
    }

    /**
     * Image as a UTF-8 encoded base 64 string on image create. This field contains the image URI on image reads.
     * 
     */
    @Import(name="image")
    private @Nullable Output image;

    /**
     * @return Image as a UTF-8 encoded base 64 string on image create. This field contains the image URI on image reads.
     * 
     */
    public Optional> image() {
        return Optional.ofNullable(this.image);
    }

    /**
     * Image ID
     * 
     */
    @Import(name="imageId")
    private @Nullable Output imageId;

    /**
     * @return Image ID
     * 
     */
    public Optional> imageId() {
        return Optional.ofNullable(this.imageId);
    }

    /**
     * Image name. Use an image GUID for GA versions of the API.
     * 
     */
    @Import(name="imageName")
    private @Nullable Output imageName;

    /**
     * @return Image name. Use an image GUID for GA versions of the API.
     * 
     */
    public Optional> imageName() {
        return Optional.ofNullable(this.imageName);
    }

    /**
     * Regional data boundary for an image
     * 
     */
    @Import(name="regionalDataBoundary")
    private @Nullable Output> regionalDataBoundary;

    /**
     * @return Regional data boundary for an image
     * 
     */
    public Optional>> regionalDataBoundary() {
        return Optional.ofNullable(this.regionalDataBoundary);
    }

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

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

    private ImageArgs() {}

    private ImageArgs(ImageArgs $) {
        this.catalogName = $.catalogName;
        this.image = $.image;
        this.imageId = $.imageId;
        this.imageName = $.imageName;
        this.regionalDataBoundary = $.regionalDataBoundary;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private ImageArgs $;

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

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

        /**
         * @param catalogName Name of catalog
         * 
         * @return builder
         * 
         */
        public Builder catalogName(Output catalogName) {
            $.catalogName = catalogName;
            return this;
        }

        /**
         * @param catalogName Name of catalog
         * 
         * @return builder
         * 
         */
        public Builder catalogName(String catalogName) {
            return catalogName(Output.of(catalogName));
        }

        /**
         * @param image Image as a UTF-8 encoded base 64 string on image create. This field contains the image URI on image reads.
         * 
         * @return builder
         * 
         */
        public Builder image(@Nullable Output image) {
            $.image = image;
            return this;
        }

        /**
         * @param image Image as a UTF-8 encoded base 64 string on image create. This field contains the image URI on image reads.
         * 
         * @return builder
         * 
         */
        public Builder image(String image) {
            return image(Output.of(image));
        }

        /**
         * @param imageId Image ID
         * 
         * @return builder
         * 
         */
        public Builder imageId(@Nullable Output imageId) {
            $.imageId = imageId;
            return this;
        }

        /**
         * @param imageId Image ID
         * 
         * @return builder
         * 
         */
        public Builder imageId(String imageId) {
            return imageId(Output.of(imageId));
        }

        /**
         * @param imageName Image name. Use an image GUID for GA versions of the API.
         * 
         * @return builder
         * 
         */
        public Builder imageName(@Nullable Output imageName) {
            $.imageName = imageName;
            return this;
        }

        /**
         * @param imageName Image name. Use an image GUID for GA versions of the API.
         * 
         * @return builder
         * 
         */
        public Builder imageName(String imageName) {
            return imageName(Output.of(imageName));
        }

        /**
         * @param regionalDataBoundary Regional data boundary for an image
         * 
         * @return builder
         * 
         */
        public Builder regionalDataBoundary(@Nullable Output> regionalDataBoundary) {
            $.regionalDataBoundary = regionalDataBoundary;
            return this;
        }

        /**
         * @param regionalDataBoundary Regional data boundary for an image
         * 
         * @return builder
         * 
         */
        public Builder regionalDataBoundary(Either regionalDataBoundary) {
            return regionalDataBoundary(Output.of(regionalDataBoundary));
        }

        /**
         * @param regionalDataBoundary Regional data boundary for an image
         * 
         * @return builder
         * 
         */
        public Builder regionalDataBoundary(String regionalDataBoundary) {
            return regionalDataBoundary(Either.ofLeft(regionalDataBoundary));
        }

        /**
         * @param regionalDataBoundary Regional data boundary for an image
         * 
         * @return builder
         * 
         */
        public Builder regionalDataBoundary(RegionalDataBoundary regionalDataBoundary) {
            return regionalDataBoundary(Either.ofRight(regionalDataBoundary));
        }

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

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

        public ImageArgs build() {
            if ($.catalogName == null) {
                throw new MissingRequiredPropertyException("ImageArgs", "catalogName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ImageArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy