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

com.pulumi.azurenative.operationsmanagement.inputs.ManagementConfigurationPropertiesArgs 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.operationsmanagement.inputs;

import com.pulumi.azurenative.operationsmanagement.inputs.ArmTemplateParameterArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * ManagementConfiguration properties supported by the OperationsManagement resource provider.
 * 
 */
public final class ManagementConfigurationPropertiesArgs extends com.pulumi.resources.ResourceArgs {

    public static final ManagementConfigurationPropertiesArgs Empty = new ManagementConfigurationPropertiesArgs();

    /**
     * The applicationId of the appliance for this Management.
     * 
     */
    @Import(name="applicationId")
    private @Nullable Output applicationId;

    /**
     * @return The applicationId of the appliance for this Management.
     * 
     */
    public Optional> applicationId() {
        return Optional.ofNullable(this.applicationId);
    }

    /**
     * Parameters to run the ARM template
     * 
     */
    @Import(name="parameters", required=true)
    private Output> parameters;

    /**
     * @return Parameters to run the ARM template
     * 
     */
    public Output> parameters() {
        return this.parameters;
    }

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

    /**
     * @return The type of the parent resource.
     * 
     */
    public Output parentResourceType() {
        return this.parentResourceType;
    }

    /**
     * The Json object containing the ARM template to deploy
     * 
     */
    @Import(name="template", required=true)
    private Output template;

    /**
     * @return The Json object containing the ARM template to deploy
     * 
     */
    public Output template() {
        return this.template;
    }

    private ManagementConfigurationPropertiesArgs() {}

    private ManagementConfigurationPropertiesArgs(ManagementConfigurationPropertiesArgs $) {
        this.applicationId = $.applicationId;
        this.parameters = $.parameters;
        this.parentResourceType = $.parentResourceType;
        this.template = $.template;
    }

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

    public static final class Builder {
        private ManagementConfigurationPropertiesArgs $;

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

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

        /**
         * @param applicationId The applicationId of the appliance for this Management.
         * 
         * @return builder
         * 
         */
        public Builder applicationId(@Nullable Output applicationId) {
            $.applicationId = applicationId;
            return this;
        }

        /**
         * @param applicationId The applicationId of the appliance for this Management.
         * 
         * @return builder
         * 
         */
        public Builder applicationId(String applicationId) {
            return applicationId(Output.of(applicationId));
        }

        /**
         * @param parameters Parameters to run the ARM template
         * 
         * @return builder
         * 
         */
        public Builder parameters(Output> parameters) {
            $.parameters = parameters;
            return this;
        }

        /**
         * @param parameters Parameters to run the ARM template
         * 
         * @return builder
         * 
         */
        public Builder parameters(List parameters) {
            return parameters(Output.of(parameters));
        }

        /**
         * @param parameters Parameters to run the ARM template
         * 
         * @return builder
         * 
         */
        public Builder parameters(ArmTemplateParameterArgs... parameters) {
            return parameters(List.of(parameters));
        }

        /**
         * @param parentResourceType The type of the parent resource.
         * 
         * @return builder
         * 
         */
        public Builder parentResourceType(Output parentResourceType) {
            $.parentResourceType = parentResourceType;
            return this;
        }

        /**
         * @param parentResourceType The type of the parent resource.
         * 
         * @return builder
         * 
         */
        public Builder parentResourceType(String parentResourceType) {
            return parentResourceType(Output.of(parentResourceType));
        }

        /**
         * @param template The Json object containing the ARM template to deploy
         * 
         * @return builder
         * 
         */
        public Builder template(Output template) {
            $.template = template;
            return this;
        }

        /**
         * @param template The Json object containing the ARM template to deploy
         * 
         * @return builder
         * 
         */
        public Builder template(Object template) {
            return template(Output.of(template));
        }

        public ManagementConfigurationPropertiesArgs build() {
            if ($.parameters == null) {
                throw new MissingRequiredPropertyException("ManagementConfigurationPropertiesArgs", "parameters");
            }
            if ($.parentResourceType == null) {
                throw new MissingRequiredPropertyException("ManagementConfigurationPropertiesArgs", "parentResourceType");
            }
            if ($.template == null) {
                throw new MissingRequiredPropertyException("ManagementConfigurationPropertiesArgs", "template");
            }
            return $;
        }
    }

}