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

com.pulumi.azurenative.testbase.ImageDefinitionArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.testbase.enums.ImageArchitecture;
import com.pulumi.azurenative.testbase.enums.ImageOSState;
import com.pulumi.azurenative.testbase.enums.ImageSecurityType;
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 ImageDefinitionArgs extends com.pulumi.resources.ResourceArgs {

    public static final ImageDefinitionArgs Empty = new ImageDefinitionArgs();

    /**
     * Custom image architecture.
     * 
     */
    @Import(name="architecture", required=true)
    private Output> architecture;

    /**
     * @return Custom image architecture.
     * 
     */
    public Output> architecture() {
        return this.architecture;
    }

    /**
     * The resource name of the test base image definition.
     * 
     */
    @Import(name="imageDefinitionName")
    private @Nullable Output imageDefinitionName;

    /**
     * @return The resource name of the test base image definition.
     * 
     */
    public Optional> imageDefinitionName() {
        return Optional.ofNullable(this.imageDefinitionName);
    }

    /**
     * Custom image OS state.
     * 
     */
    @Import(name="osState", required=true)
    private Output> osState;

    /**
     * @return Custom image OS state.
     * 
     */
    public Output> osState() {
        return this.osState;
    }

    /**
     * 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;
    }

    /**
     * Custom image security type.
     * 
     */
    @Import(name="securityType", required=true)
    private Output> securityType;

    /**
     * @return Custom image security type.
     * 
     */
    public Output> securityType() {
        return this.securityType;
    }

    /**
     * The resource name of the Test Base Account.
     * 
     */
    @Import(name="testBaseAccountName", required=true)
    private Output testBaseAccountName;

    /**
     * @return The resource name of the Test Base Account.
     * 
     */
    public Output testBaseAccountName() {
        return this.testBaseAccountName;
    }

    private ImageDefinitionArgs() {}

    private ImageDefinitionArgs(ImageDefinitionArgs $) {
        this.architecture = $.architecture;
        this.imageDefinitionName = $.imageDefinitionName;
        this.osState = $.osState;
        this.resourceGroupName = $.resourceGroupName;
        this.securityType = $.securityType;
        this.testBaseAccountName = $.testBaseAccountName;
    }

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

    public static final class Builder {
        private ImageDefinitionArgs $;

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

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

        /**
         * @param architecture Custom image architecture.
         * 
         * @return builder
         * 
         */
        public Builder architecture(Output> architecture) {
            $.architecture = architecture;
            return this;
        }

        /**
         * @param architecture Custom image architecture.
         * 
         * @return builder
         * 
         */
        public Builder architecture(Either architecture) {
            return architecture(Output.of(architecture));
        }

        /**
         * @param architecture Custom image architecture.
         * 
         * @return builder
         * 
         */
        public Builder architecture(String architecture) {
            return architecture(Either.ofLeft(architecture));
        }

        /**
         * @param architecture Custom image architecture.
         * 
         * @return builder
         * 
         */
        public Builder architecture(ImageArchitecture architecture) {
            return architecture(Either.ofRight(architecture));
        }

        /**
         * @param imageDefinitionName The resource name of the test base image definition.
         * 
         * @return builder
         * 
         */
        public Builder imageDefinitionName(@Nullable Output imageDefinitionName) {
            $.imageDefinitionName = imageDefinitionName;
            return this;
        }

        /**
         * @param imageDefinitionName The resource name of the test base image definition.
         * 
         * @return builder
         * 
         */
        public Builder imageDefinitionName(String imageDefinitionName) {
            return imageDefinitionName(Output.of(imageDefinitionName));
        }

        /**
         * @param osState Custom image OS state.
         * 
         * @return builder
         * 
         */
        public Builder osState(Output> osState) {
            $.osState = osState;
            return this;
        }

        /**
         * @param osState Custom image OS state.
         * 
         * @return builder
         * 
         */
        public Builder osState(Either osState) {
            return osState(Output.of(osState));
        }

        /**
         * @param osState Custom image OS state.
         * 
         * @return builder
         * 
         */
        public Builder osState(String osState) {
            return osState(Either.ofLeft(osState));
        }

        /**
         * @param osState Custom image OS state.
         * 
         * @return builder
         * 
         */
        public Builder osState(ImageOSState osState) {
            return osState(Either.ofRight(osState));
        }

        /**
         * @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));
        }

        /**
         * @param securityType Custom image security type.
         * 
         * @return builder
         * 
         */
        public Builder securityType(Output> securityType) {
            $.securityType = securityType;
            return this;
        }

        /**
         * @param securityType Custom image security type.
         * 
         * @return builder
         * 
         */
        public Builder securityType(Either securityType) {
            return securityType(Output.of(securityType));
        }

        /**
         * @param securityType Custom image security type.
         * 
         * @return builder
         * 
         */
        public Builder securityType(String securityType) {
            return securityType(Either.ofLeft(securityType));
        }

        /**
         * @param securityType Custom image security type.
         * 
         * @return builder
         * 
         */
        public Builder securityType(ImageSecurityType securityType) {
            return securityType(Either.ofRight(securityType));
        }

        /**
         * @param testBaseAccountName The resource name of the Test Base Account.
         * 
         * @return builder
         * 
         */
        public Builder testBaseAccountName(Output testBaseAccountName) {
            $.testBaseAccountName = testBaseAccountName;
            return this;
        }

        /**
         * @param testBaseAccountName The resource name of the Test Base Account.
         * 
         * @return builder
         * 
         */
        public Builder testBaseAccountName(String testBaseAccountName) {
            return testBaseAccountName(Output.of(testBaseAccountName));
        }

        public ImageDefinitionArgs build() {
            if ($.architecture == null) {
                throw new MissingRequiredPropertyException("ImageDefinitionArgs", "architecture");
            }
            if ($.osState == null) {
                throw new MissingRequiredPropertyException("ImageDefinitionArgs", "osState");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ImageDefinitionArgs", "resourceGroupName");
            }
            if ($.securityType == null) {
                throw new MissingRequiredPropertyException("ImageDefinitionArgs", "securityType");
            }
            if ($.testBaseAccountName == null) {
                throw new MissingRequiredPropertyException("ImageDefinitionArgs", "testBaseAccountName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy