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

com.pulumi.azure.maintenance.inputs.ConfigurationState Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.maintenance.inputs;

import com.pulumi.azure.maintenance.inputs.ConfigurationInstallPatchesArgs;
import com.pulumi.azure.maintenance.inputs.ConfigurationWindowArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ConfigurationState Empty = new ConfigurationState();

    /**
     * The in guest user patch mode. Possible values are `Platform` or `User`. Must be specified when `scope` is `InGuestPatch`.
     * 
     */
    @Import(name="inGuestUserPatchMode")
    private @Nullable Output inGuestUserPatchMode;

    /**
     * @return The in guest user patch mode. Possible values are `Platform` or `User`. Must be specified when `scope` is `InGuestPatch`.
     * 
     */
    public Optional> inGuestUserPatchMode() {
        return Optional.ofNullable(this.inGuestUserPatchMode);
    }

    /**
     * An `install_patches` block as defined below.
     * 
     * > **NOTE:** `install_patches` must be specified when `scope` is `InGuestPatch`.
     * 
     */
    @Import(name="installPatches")
    private @Nullable Output installPatches;

    /**
     * @return An `install_patches` block as defined below.
     * 
     * > **NOTE:** `install_patches` must be specified when `scope` is `InGuestPatch`.
     * 
     */
    public Optional> installPatches() {
        return Optional.ofNullable(this.installPatches);
    }

    /**
     * Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Specifies the name of the Maintenance Configuration. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Specifies the name of the Maintenance Configuration. Changing this forces a new resource to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * A mapping of properties to assign to the resource.
     * 
     */
    @Import(name="properties")
    private @Nullable Output> properties;

    /**
     * @return A mapping of properties to assign to the resource.
     * 
     */
    public Optional>> properties() {
        return Optional.ofNullable(this.properties);
    }

    /**
     * The name of the Resource Group where the Maintenance Configuration should exist. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="resourceGroupName")
    private @Nullable Output resourceGroupName;

    /**
     * @return The name of the Resource Group where the Maintenance Configuration should exist. Changing this forces a new resource to be created.
     * 
     */
    public Optional> resourceGroupName() {
        return Optional.ofNullable(this.resourceGroupName);
    }

    /**
     * The scope of the Maintenance Configuration. Possible values are `Extension`, `Host`, `InGuestPatch`, `OSImage`, `SQLDB` or `SQLManagedInstance`.
     * 
     */
    @Import(name="scope")
    private @Nullable Output scope;

    /**
     * @return The scope of the Maintenance Configuration. Possible values are `Extension`, `Host`, `InGuestPatch`, `OSImage`, `SQLDB` or `SQLManagedInstance`.
     * 
     */
    public Optional> scope() {
        return Optional.ofNullable(this.scope);
    }

    /**
     * A mapping of tags to assign to the resource. The key could not contain upper case letter.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A mapping of tags to assign to the resource. The key could not contain upper case letter.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * The visibility of the Maintenance Configuration. The only allowable value is `Custom`. Defaults to `Custom`.
     * 
     */
    @Import(name="visibility")
    private @Nullable Output visibility;

    /**
     * @return The visibility of the Maintenance Configuration. The only allowable value is `Custom`. Defaults to `Custom`.
     * 
     */
    public Optional> visibility() {
        return Optional.ofNullable(this.visibility);
    }

    /**
     * A `window` block as defined below.
     * 
     */
    @Import(name="window")
    private @Nullable Output window;

    /**
     * @return A `window` block as defined below.
     * 
     */
    public Optional> window() {
        return Optional.ofNullable(this.window);
    }

    private ConfigurationState() {}

    private ConfigurationState(ConfigurationState $) {
        this.inGuestUserPatchMode = $.inGuestUserPatchMode;
        this.installPatches = $.installPatches;
        this.location = $.location;
        this.name = $.name;
        this.properties = $.properties;
        this.resourceGroupName = $.resourceGroupName;
        this.scope = $.scope;
        this.tags = $.tags;
        this.visibility = $.visibility;
        this.window = $.window;
    }

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

    public static final class Builder {
        private ConfigurationState $;

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

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

        /**
         * @param inGuestUserPatchMode The in guest user patch mode. Possible values are `Platform` or `User`. Must be specified when `scope` is `InGuestPatch`.
         * 
         * @return builder
         * 
         */
        public Builder inGuestUserPatchMode(@Nullable Output inGuestUserPatchMode) {
            $.inGuestUserPatchMode = inGuestUserPatchMode;
            return this;
        }

        /**
         * @param inGuestUserPatchMode The in guest user patch mode. Possible values are `Platform` or `User`. Must be specified when `scope` is `InGuestPatch`.
         * 
         * @return builder
         * 
         */
        public Builder inGuestUserPatchMode(String inGuestUserPatchMode) {
            return inGuestUserPatchMode(Output.of(inGuestUserPatchMode));
        }

        /**
         * @param installPatches An `install_patches` block as defined below.
         * 
         * > **NOTE:** `install_patches` must be specified when `scope` is `InGuestPatch`.
         * 
         * @return builder
         * 
         */
        public Builder installPatches(@Nullable Output installPatches) {
            $.installPatches = installPatches;
            return this;
        }

        /**
         * @param installPatches An `install_patches` block as defined below.
         * 
         * > **NOTE:** `install_patches` must be specified when `scope` is `InGuestPatch`.
         * 
         * @return builder
         * 
         */
        public Builder installPatches(ConfigurationInstallPatchesArgs installPatches) {
            return installPatches(Output.of(installPatches));
        }

        /**
         * @param location Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param name Specifies the name of the Maintenance Configuration. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Specifies the name of the Maintenance Configuration. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param properties A mapping of properties to assign to the resource.
         * 
         * @return builder
         * 
         */
        public Builder properties(@Nullable Output> properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties A mapping of properties to assign to the resource.
         * 
         * @return builder
         * 
         */
        public Builder properties(Map properties) {
            return properties(Output.of(properties));
        }

        /**
         * @param resourceGroupName The name of the Resource Group where the Maintenance Configuration should exist. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(@Nullable Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the Resource Group where the Maintenance Configuration should exist. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param scope The scope of the Maintenance Configuration. Possible values are `Extension`, `Host`, `InGuestPatch`, `OSImage`, `SQLDB` or `SQLManagedInstance`.
         * 
         * @return builder
         * 
         */
        public Builder scope(@Nullable Output scope) {
            $.scope = scope;
            return this;
        }

        /**
         * @param scope The scope of the Maintenance Configuration. Possible values are `Extension`, `Host`, `InGuestPatch`, `OSImage`, `SQLDB` or `SQLManagedInstance`.
         * 
         * @return builder
         * 
         */
        public Builder scope(String scope) {
            return scope(Output.of(scope));
        }

        /**
         * @param tags A mapping of tags to assign to the resource. The key could not contain upper case letter.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A mapping of tags to assign to the resource. The key could not contain upper case letter.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param visibility The visibility of the Maintenance Configuration. The only allowable value is `Custom`. Defaults to `Custom`.
         * 
         * @return builder
         * 
         */
        public Builder visibility(@Nullable Output visibility) {
            $.visibility = visibility;
            return this;
        }

        /**
         * @param visibility The visibility of the Maintenance Configuration. The only allowable value is `Custom`. Defaults to `Custom`.
         * 
         * @return builder
         * 
         */
        public Builder visibility(String visibility) {
            return visibility(Output.of(visibility));
        }

        /**
         * @param window A `window` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder window(@Nullable Output window) {
            $.window = window;
            return this;
        }

        /**
         * @param window A `window` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder window(ConfigurationWindowArgs window) {
            return window(Output.of(window));
        }

        public ConfigurationState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy