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

com.pulumi.azure.appservice.inputs.FunctionAppActiveSlotState 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.appservice.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final FunctionAppActiveSlotState Empty = new FunctionAppActiveSlotState();

    /**
     * The timestamp of the last successful swap with `Production`
     * 
     */
    @Import(name="lastSuccessfulSwap")
    private @Nullable Output lastSuccessfulSwap;

    /**
     * @return The timestamp of the last successful swap with `Production`
     * 
     */
    public Optional> lastSuccessfulSwap() {
        return Optional.ofNullable(this.lastSuccessfulSwap);
    }

    /**
     * The swap action should overwrite the Production slot's network configuration with the configuration from this slot. Defaults to `true`. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="overwriteNetworkConfig")
    private @Nullable Output overwriteNetworkConfig;

    /**
     * @return The swap action should overwrite the Production slot's network configuration with the configuration from this slot. Defaults to `true`. Changing this forces a new resource to be created.
     * 
     */
    public Optional> overwriteNetworkConfig() {
        return Optional.ofNullable(this.overwriteNetworkConfig);
    }

    /**
     * The ID of the Slot to swap with `Production`.
     * 
     */
    @Import(name="slotId")
    private @Nullable Output slotId;

    /**
     * @return The ID of the Slot to swap with `Production`.
     * 
     */
    public Optional> slotId() {
        return Optional.ofNullable(this.slotId);
    }

    private FunctionAppActiveSlotState() {}

    private FunctionAppActiveSlotState(FunctionAppActiveSlotState $) {
        this.lastSuccessfulSwap = $.lastSuccessfulSwap;
        this.overwriteNetworkConfig = $.overwriteNetworkConfig;
        this.slotId = $.slotId;
    }

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

    public static final class Builder {
        private FunctionAppActiveSlotState $;

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

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

        /**
         * @param lastSuccessfulSwap The timestamp of the last successful swap with `Production`
         * 
         * @return builder
         * 
         */
        public Builder lastSuccessfulSwap(@Nullable Output lastSuccessfulSwap) {
            $.lastSuccessfulSwap = lastSuccessfulSwap;
            return this;
        }

        /**
         * @param lastSuccessfulSwap The timestamp of the last successful swap with `Production`
         * 
         * @return builder
         * 
         */
        public Builder lastSuccessfulSwap(String lastSuccessfulSwap) {
            return lastSuccessfulSwap(Output.of(lastSuccessfulSwap));
        }

        /**
         * @param overwriteNetworkConfig The swap action should overwrite the Production slot's network configuration with the configuration from this slot. Defaults to `true`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder overwriteNetworkConfig(@Nullable Output overwriteNetworkConfig) {
            $.overwriteNetworkConfig = overwriteNetworkConfig;
            return this;
        }

        /**
         * @param overwriteNetworkConfig The swap action should overwrite the Production slot's network configuration with the configuration from this slot. Defaults to `true`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder overwriteNetworkConfig(Boolean overwriteNetworkConfig) {
            return overwriteNetworkConfig(Output.of(overwriteNetworkConfig));
        }

        /**
         * @param slotId The ID of the Slot to swap with `Production`.
         * 
         * @return builder
         * 
         */
        public Builder slotId(@Nullable Output slotId) {
            $.slotId = slotId;
            return this;
        }

        /**
         * @param slotId The ID of the Slot to swap with `Production`.
         * 
         * @return builder
         * 
         */
        public Builder slotId(String slotId) {
            return slotId(Output.of(slotId));
        }

        public FunctionAppActiveSlotState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy