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

com.pulumi.azure.appservice.inputs.SlotCustomHostnameBindingState 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.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final SlotCustomHostnameBindingState Empty = new SlotCustomHostnameBindingState();

    /**
     * The ID of the App Service Slot. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="appServiceSlotId")
    private @Nullable Output appServiceSlotId;

    /**
     * @return The ID of the App Service Slot. Changing this forces a new resource to be created.
     * 
     */
    public Optional> appServiceSlotId() {
        return Optional.ofNullable(this.appServiceSlotId);
    }

    /**
     * Specifies the Custom Hostname to use for the App Service, example `www.example.com`. Changing this forces a new resource to be created.
     * 
     * > **NOTE:** A CNAME needs to be configured from this Hostname to the Azure Website - otherwise Azure will reject the Hostname Binding.
     * 
     */
    @Import(name="hostname")
    private @Nullable Output hostname;

    /**
     * @return Specifies the Custom Hostname to use for the App Service, example `www.example.com`. Changing this forces a new resource to be created.
     * 
     * > **NOTE:** A CNAME needs to be configured from this Hostname to the Azure Website - otherwise Azure will reject the Hostname Binding.
     * 
     */
    public Optional> hostname() {
        return Optional.ofNullable(this.hostname);
    }

    /**
     * The SSL type. Possible values are `IpBasedEnabled` and `SniEnabled`. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="sslState")
    private @Nullable Output sslState;

    /**
     * @return The SSL type. Possible values are `IpBasedEnabled` and `SniEnabled`. Changing this forces a new resource to be created.
     * 
     */
    public Optional> sslState() {
        return Optional.ofNullable(this.sslState);
    }

    /**
     * The SSL certificate thumbprint. Changing this forces a new resource to be created.
     * 
     * > **NOTE:** `thumbprint` must be specified when `ssl_state` is set.
     * 
     */
    @Import(name="thumbprint")
    private @Nullable Output thumbprint;

    /**
     * @return The SSL certificate thumbprint. Changing this forces a new resource to be created.
     * 
     * > **NOTE:** `thumbprint` must be specified when `ssl_state` is set.
     * 
     */
    public Optional> thumbprint() {
        return Optional.ofNullable(this.thumbprint);
    }

    /**
     * The virtual IP address assigned to the hostname if IP based SSL is enabled.
     * 
     */
    @Import(name="virtualIp")
    private @Nullable Output virtualIp;

    /**
     * @return The virtual IP address assigned to the hostname if IP based SSL is enabled.
     * 
     */
    public Optional> virtualIp() {
        return Optional.ofNullable(this.virtualIp);
    }

    private SlotCustomHostnameBindingState() {}

    private SlotCustomHostnameBindingState(SlotCustomHostnameBindingState $) {
        this.appServiceSlotId = $.appServiceSlotId;
        this.hostname = $.hostname;
        this.sslState = $.sslState;
        this.thumbprint = $.thumbprint;
        this.virtualIp = $.virtualIp;
    }

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

    public static final class Builder {
        private SlotCustomHostnameBindingState $;

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

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

        /**
         * @param appServiceSlotId The ID of the App Service Slot. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder appServiceSlotId(@Nullable Output appServiceSlotId) {
            $.appServiceSlotId = appServiceSlotId;
            return this;
        }

        /**
         * @param appServiceSlotId The ID of the App Service Slot. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder appServiceSlotId(String appServiceSlotId) {
            return appServiceSlotId(Output.of(appServiceSlotId));
        }

        /**
         * @param hostname Specifies the Custom Hostname to use for the App Service, example `www.example.com`. Changing this forces a new resource to be created.
         * 
         * > **NOTE:** A CNAME needs to be configured from this Hostname to the Azure Website - otherwise Azure will reject the Hostname Binding.
         * 
         * @return builder
         * 
         */
        public Builder hostname(@Nullable Output hostname) {
            $.hostname = hostname;
            return this;
        }

        /**
         * @param hostname Specifies the Custom Hostname to use for the App Service, example `www.example.com`. Changing this forces a new resource to be created.
         * 
         * > **NOTE:** A CNAME needs to be configured from this Hostname to the Azure Website - otherwise Azure will reject the Hostname Binding.
         * 
         * @return builder
         * 
         */
        public Builder hostname(String hostname) {
            return hostname(Output.of(hostname));
        }

        /**
         * @param sslState The SSL type. Possible values are `IpBasedEnabled` and `SniEnabled`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder sslState(@Nullable Output sslState) {
            $.sslState = sslState;
            return this;
        }

        /**
         * @param sslState The SSL type. Possible values are `IpBasedEnabled` and `SniEnabled`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder sslState(String sslState) {
            return sslState(Output.of(sslState));
        }

        /**
         * @param thumbprint The SSL certificate thumbprint. Changing this forces a new resource to be created.
         * 
         * > **NOTE:** `thumbprint` must be specified when `ssl_state` is set.
         * 
         * @return builder
         * 
         */
        public Builder thumbprint(@Nullable Output thumbprint) {
            $.thumbprint = thumbprint;
            return this;
        }

        /**
         * @param thumbprint The SSL certificate thumbprint. Changing this forces a new resource to be created.
         * 
         * > **NOTE:** `thumbprint` must be specified when `ssl_state` is set.
         * 
         * @return builder
         * 
         */
        public Builder thumbprint(String thumbprint) {
            return thumbprint(Output.of(thumbprint));
        }

        /**
         * @param virtualIp The virtual IP address assigned to the hostname if IP based SSL is enabled.
         * 
         * @return builder
         * 
         */
        public Builder virtualIp(@Nullable Output virtualIp) {
            $.virtualIp = virtualIp;
            return this;
        }

        /**
         * @param virtualIp The virtual IP address assigned to the hostname if IP based SSL is enabled.
         * 
         * @return builder
         * 
         */
        public Builder virtualIp(String virtualIp) {
            return virtualIp(Output.of(virtualIp));
        }

        public SlotCustomHostnameBindingState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy