Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azurenative.web.WebAppSlotArgs Maven / Gradle / Ivy
Go to download
A native Pulumi package for creating and managing Azure resources.
// *** 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.web;
import com.pulumi.azurenative.web.enums.ClientCertMode;
import com.pulumi.azurenative.web.enums.RedundancyMode;
import com.pulumi.azurenative.web.inputs.CloningInfoArgs;
import com.pulumi.azurenative.web.inputs.ExtendedLocationArgs;
import com.pulumi.azurenative.web.inputs.HostNameSslStateArgs;
import com.pulumi.azurenative.web.inputs.HostingEnvironmentProfileArgs;
import com.pulumi.azurenative.web.inputs.ManagedServiceIdentityArgs;
import com.pulumi.azurenative.web.inputs.SiteConfigArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class WebAppSlotArgs extends com.pulumi.resources.ResourceArgs {
public static final WebAppSlotArgs Empty = new WebAppSlotArgs();
/**
* <code>true</code> to enable client affinity; <code>false</code> to stop sending session affinity cookies, which route client requests in the same session to the same instance. Default is <code>true</code>.
*
*/
@Import(name="clientAffinityEnabled")
private @Nullable Output clientAffinityEnabled;
/**
* @return <code>true</code> to enable client affinity; <code>false</code> to stop sending session affinity cookies, which route client requests in the same session to the same instance. Default is <code>true</code>.
*
*/
public Optional> clientAffinityEnabled() {
return Optional.ofNullable(this.clientAffinityEnabled);
}
/**
* <code>true</code> to enable client certificate authentication (TLS mutual authentication); otherwise, <code>false</code>. Default is <code>false</code>.
*
*/
@Import(name="clientCertEnabled")
private @Nullable Output clientCertEnabled;
/**
* @return <code>true</code> to enable client certificate authentication (TLS mutual authentication); otherwise, <code>false</code>. Default is <code>false</code>.
*
*/
public Optional> clientCertEnabled() {
return Optional.ofNullable(this.clientCertEnabled);
}
/**
* client certificate authentication comma-separated exclusion paths
*
*/
@Import(name="clientCertExclusionPaths")
private @Nullable Output clientCertExclusionPaths;
/**
* @return client certificate authentication comma-separated exclusion paths
*
*/
public Optional> clientCertExclusionPaths() {
return Optional.ofNullable(this.clientCertExclusionPaths);
}
/**
* This composes with ClientCertEnabled setting.
* - ClientCertEnabled: false means ClientCert is ignored.
* - ClientCertEnabled: true and ClientCertMode: Required means ClientCert is required.
* - ClientCertEnabled: true and ClientCertMode: Optional means ClientCert is optional or accepted.
*
*/
@Import(name="clientCertMode")
private @Nullable Output clientCertMode;
/**
* @return This composes with ClientCertEnabled setting.
* - ClientCertEnabled: false means ClientCert is ignored.
* - ClientCertEnabled: true and ClientCertMode: Required means ClientCert is required.
* - ClientCertEnabled: true and ClientCertMode: Optional means ClientCert is optional or accepted.
*
*/
public Optional> clientCertMode() {
return Optional.ofNullable(this.clientCertMode);
}
/**
* If specified during app creation, the app is cloned from a source app.
*
*/
@Import(name="cloningInfo")
private @Nullable Output cloningInfo;
/**
* @return If specified during app creation, the app is cloned from a source app.
*
*/
public Optional> cloningInfo() {
return Optional.ofNullable(this.cloningInfo);
}
/**
* Size of the function container.
*
*/
@Import(name="containerSize")
private @Nullable Output containerSize;
/**
* @return Size of the function container.
*
*/
public Optional> containerSize() {
return Optional.ofNullable(this.containerSize);
}
/**
* Unique identifier that verifies the custom domains assigned to the app. Customer will add this id to a txt record for verification.
*
*/
@Import(name="customDomainVerificationId")
private @Nullable Output customDomainVerificationId;
/**
* @return Unique identifier that verifies the custom domains assigned to the app. Customer will add this id to a txt record for verification.
*
*/
public Optional> customDomainVerificationId() {
return Optional.ofNullable(this.customDomainVerificationId);
}
/**
* Maximum allowed daily memory-time quota (applicable on dynamic apps only).
*
*/
@Import(name="dailyMemoryTimeQuota")
private @Nullable Output dailyMemoryTimeQuota;
/**
* @return Maximum allowed daily memory-time quota (applicable on dynamic apps only).
*
*/
public Optional> dailyMemoryTimeQuota() {
return Optional.ofNullable(this.dailyMemoryTimeQuota);
}
/**
* <code>true</code> if the app is enabled; otherwise, <code>false</code>. Setting this value to false disables the app (takes the app offline).
*
*/
@Import(name="enabled")
private @Nullable Output enabled;
/**
* @return <code>true</code> if the app is enabled; otherwise, <code>false</code>. Setting this value to false disables the app (takes the app offline).
*
*/
public Optional> enabled() {
return Optional.ofNullable(this.enabled);
}
/**
* Extended Location.
*
*/
@Import(name="extendedLocation")
private @Nullable Output extendedLocation;
/**
* @return Extended Location.
*
*/
public Optional> extendedLocation() {
return Optional.ofNullable(this.extendedLocation);
}
/**
* Hostname SSL states are used to manage the SSL bindings for app's hostnames.
*
*/
@Import(name="hostNameSslStates")
private @Nullable Output> hostNameSslStates;
/**
* @return Hostname SSL states are used to manage the SSL bindings for app's hostnames.
*
*/
public Optional>> hostNameSslStates() {
return Optional.ofNullable(this.hostNameSslStates);
}
/**
* <code>true</code> to disable the public hostnames of the app; otherwise, <code>false</code>.
* If <code>true</code>, the app is only accessible via API management process.
*
*/
@Import(name="hostNamesDisabled")
private @Nullable Output hostNamesDisabled;
/**
* @return <code>true</code> to disable the public hostnames of the app; otherwise, <code>false</code>.
* If <code>true</code>, the app is only accessible via API management process.
*
*/
public Optional> hostNamesDisabled() {
return Optional.ofNullable(this.hostNamesDisabled);
}
/**
* App Service Environment to use for the app.
*
*/
@Import(name="hostingEnvironmentProfile")
private @Nullable Output hostingEnvironmentProfile;
/**
* @return App Service Environment to use for the app.
*
*/
public Optional> hostingEnvironmentProfile() {
return Optional.ofNullable(this.hostingEnvironmentProfile);
}
/**
* HttpsOnly: configures a web site to accept only https requests. Issues redirect for
* http requests
*
*/
@Import(name="httpsOnly")
private @Nullable Output httpsOnly;
/**
* @return HttpsOnly: configures a web site to accept only https requests. Issues redirect for
* http requests
*
*/
public Optional> httpsOnly() {
return Optional.ofNullable(this.httpsOnly);
}
/**
* Hyper-V sandbox.
*
*/
@Import(name="hyperV")
private @Nullable Output hyperV;
/**
* @return Hyper-V sandbox.
*
*/
public Optional> hyperV() {
return Optional.ofNullable(this.hyperV);
}
/**
* Managed service identity.
*
*/
@Import(name="identity")
private @Nullable Output identity;
/**
* @return Managed service identity.
*
*/
public Optional> identity() {
return Optional.ofNullable(this.identity);
}
/**
* Obsolete: Hyper-V sandbox.
*
*/
@Import(name="isXenon")
private @Nullable Output isXenon;
/**
* @return Obsolete: Hyper-V sandbox.
*
*/
public Optional> isXenon() {
return Optional.ofNullable(this.isXenon);
}
/**
* Identity to use for Key Vault Reference authentication.
*
*/
@Import(name="keyVaultReferenceIdentity")
private @Nullable Output keyVaultReferenceIdentity;
/**
* @return Identity to use for Key Vault Reference authentication.
*
*/
public Optional> keyVaultReferenceIdentity() {
return Optional.ofNullable(this.keyVaultReferenceIdentity);
}
/**
* Kind of resource.
*
*/
@Import(name="kind")
private @Nullable Output kind;
/**
* @return Kind of resource.
*
*/
public Optional> kind() {
return Optional.ofNullable(this.kind);
}
/**
* Resource Location.
*
*/
@Import(name="location")
private @Nullable Output location;
/**
* @return Resource Location.
*
*/
public Optional> location() {
return Optional.ofNullable(this.location);
}
/**
* Azure Resource Manager ID of the customer's selected Managed Environment on which to host this app. This must be of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}
*
*/
@Import(name="managedEnvironmentId")
private @Nullable Output managedEnvironmentId;
/**
* @return Azure Resource Manager ID of the customer's selected Managed Environment on which to host this app. This must be of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}
*
*/
public Optional> managedEnvironmentId() {
return Optional.ofNullable(this.managedEnvironmentId);
}
/**
* Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter.
*
*/
@Import(name="name", required=true)
private Output name;
/**
* @return Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter.
*
*/
public Output name() {
return this.name;
}
/**
* Property to allow or block all public traffic. Allowed Values: 'Enabled', 'Disabled' or an empty string.
*
*/
@Import(name="publicNetworkAccess")
private @Nullable Output publicNetworkAccess;
/**
* @return Property to allow or block all public traffic. Allowed Values: 'Enabled', 'Disabled' or an empty string.
*
*/
public Optional> publicNetworkAccess() {
return Optional.ofNullable(this.publicNetworkAccess);
}
/**
* Site redundancy mode
*
*/
@Import(name="redundancyMode")
private @Nullable Output redundancyMode;
/**
* @return Site redundancy mode
*
*/
public Optional> redundancyMode() {
return Optional.ofNullable(this.redundancyMode);
}
/**
* <code>true</code> if reserved; otherwise, <code>false</code>.
*
*/
@Import(name="reserved")
private @Nullable Output reserved;
/**
* @return <code>true</code> if reserved; otherwise, <code>false</code>.
*
*/
public Optional> reserved() {
return Optional.ofNullable(this.reserved);
}
/**
* Name of the resource group to which the resource belongs.
*
*/
@Import(name="resourceGroupName", required=true)
private Output resourceGroupName;
/**
* @return Name of the resource group to which the resource belongs.
*
*/
public Output resourceGroupName() {
return this.resourceGroupName;
}
/**
* <code>true</code> to stop SCM (KUDU) site when the app is stopped; otherwise, <code>false</code>. The default is <code>false</code>.
*
*/
@Import(name="scmSiteAlsoStopped")
private @Nullable Output scmSiteAlsoStopped;
/**
* @return <code>true</code> to stop SCM (KUDU) site when the app is stopped; otherwise, <code>false</code>. The default is <code>false</code>.
*
*/
public Optional> scmSiteAlsoStopped() {
return Optional.ofNullable(this.scmSiteAlsoStopped);
}
/**
* Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
*
*/
@Import(name="serverFarmId")
private @Nullable Output serverFarmId;
/**
* @return Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
*
*/
public Optional> serverFarmId() {
return Optional.ofNullable(this.serverFarmId);
}
/**
* Configuration of the app.
*
*/
@Import(name="siteConfig")
private @Nullable Output siteConfig;
/**
* @return Configuration of the app.
*
*/
public Optional> siteConfig() {
return Optional.ofNullable(this.siteConfig);
}
/**
* Name of the deployment slot to create or update. By default, this API attempts to create or modify the production slot.
*
*/
@Import(name="slot")
private @Nullable Output slot;
/**
* @return Name of the deployment slot to create or update. By default, this API attempts to create or modify the production slot.
*
*/
public Optional> slot() {
return Optional.ofNullable(this.slot);
}
/**
* Checks if Customer provided storage account is required
*
*/
@Import(name="storageAccountRequired")
private @Nullable Output storageAccountRequired;
/**
* @return Checks if Customer provided storage account is required
*
*/
public Optional> storageAccountRequired() {
return Optional.ofNullable(this.storageAccountRequired);
}
/**
* Resource tags.
*
*/
@Import(name="tags")
private @Nullable Output> tags;
/**
* @return Resource tags.
*
*/
public Optional>> tags() {
return Optional.ofNullable(this.tags);
}
/**
* Azure Resource Manager ID of the Virtual network and subnet to be joined by Regional VNET Integration.
* This must be of the form /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}
*
*/
@Import(name="virtualNetworkSubnetId")
private @Nullable Output virtualNetworkSubnetId;
/**
* @return Azure Resource Manager ID of the Virtual network and subnet to be joined by Regional VNET Integration.
* This must be of the form /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}
*
*/
public Optional> virtualNetworkSubnetId() {
return Optional.ofNullable(this.virtualNetworkSubnetId);
}
/**
* To enable accessing content over virtual network
*
*/
@Import(name="vnetContentShareEnabled")
private @Nullable Output vnetContentShareEnabled;
/**
* @return To enable accessing content over virtual network
*
*/
public Optional> vnetContentShareEnabled() {
return Optional.ofNullable(this.vnetContentShareEnabled);
}
/**
* To enable pulling image over Virtual Network
*
*/
@Import(name="vnetImagePullEnabled")
private @Nullable Output vnetImagePullEnabled;
/**
* @return To enable pulling image over Virtual Network
*
*/
public Optional> vnetImagePullEnabled() {
return Optional.ofNullable(this.vnetImagePullEnabled);
}
/**
* Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied.
*
*/
@Import(name="vnetRouteAllEnabled")
private @Nullable Output vnetRouteAllEnabled;
/**
* @return Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied.
*
*/
public Optional> vnetRouteAllEnabled() {
return Optional.ofNullable(this.vnetRouteAllEnabled);
}
private WebAppSlotArgs() {}
private WebAppSlotArgs(WebAppSlotArgs $) {
this.clientAffinityEnabled = $.clientAffinityEnabled;
this.clientCertEnabled = $.clientCertEnabled;
this.clientCertExclusionPaths = $.clientCertExclusionPaths;
this.clientCertMode = $.clientCertMode;
this.cloningInfo = $.cloningInfo;
this.containerSize = $.containerSize;
this.customDomainVerificationId = $.customDomainVerificationId;
this.dailyMemoryTimeQuota = $.dailyMemoryTimeQuota;
this.enabled = $.enabled;
this.extendedLocation = $.extendedLocation;
this.hostNameSslStates = $.hostNameSslStates;
this.hostNamesDisabled = $.hostNamesDisabled;
this.hostingEnvironmentProfile = $.hostingEnvironmentProfile;
this.httpsOnly = $.httpsOnly;
this.hyperV = $.hyperV;
this.identity = $.identity;
this.isXenon = $.isXenon;
this.keyVaultReferenceIdentity = $.keyVaultReferenceIdentity;
this.kind = $.kind;
this.location = $.location;
this.managedEnvironmentId = $.managedEnvironmentId;
this.name = $.name;
this.publicNetworkAccess = $.publicNetworkAccess;
this.redundancyMode = $.redundancyMode;
this.reserved = $.reserved;
this.resourceGroupName = $.resourceGroupName;
this.scmSiteAlsoStopped = $.scmSiteAlsoStopped;
this.serverFarmId = $.serverFarmId;
this.siteConfig = $.siteConfig;
this.slot = $.slot;
this.storageAccountRequired = $.storageAccountRequired;
this.tags = $.tags;
this.virtualNetworkSubnetId = $.virtualNetworkSubnetId;
this.vnetContentShareEnabled = $.vnetContentShareEnabled;
this.vnetImagePullEnabled = $.vnetImagePullEnabled;
this.vnetRouteAllEnabled = $.vnetRouteAllEnabled;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WebAppSlotArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private WebAppSlotArgs $;
public Builder() {
$ = new WebAppSlotArgs();
}
public Builder(WebAppSlotArgs defaults) {
$ = new WebAppSlotArgs(Objects.requireNonNull(defaults));
}
/**
* @param clientAffinityEnabled <code>true</code> to enable client affinity; <code>false</code> to stop sending session affinity cookies, which route client requests in the same session to the same instance. Default is <code>true</code>.
*
* @return builder
*
*/
public Builder clientAffinityEnabled(@Nullable Output clientAffinityEnabled) {
$.clientAffinityEnabled = clientAffinityEnabled;
return this;
}
/**
* @param clientAffinityEnabled <code>true</code> to enable client affinity; <code>false</code> to stop sending session affinity cookies, which route client requests in the same session to the same instance. Default is <code>true</code>.
*
* @return builder
*
*/
public Builder clientAffinityEnabled(Boolean clientAffinityEnabled) {
return clientAffinityEnabled(Output.of(clientAffinityEnabled));
}
/**
* @param clientCertEnabled <code>true</code> to enable client certificate authentication (TLS mutual authentication); otherwise, <code>false</code>. Default is <code>false</code>.
*
* @return builder
*
*/
public Builder clientCertEnabled(@Nullable Output clientCertEnabled) {
$.clientCertEnabled = clientCertEnabled;
return this;
}
/**
* @param clientCertEnabled <code>true</code> to enable client certificate authentication (TLS mutual authentication); otherwise, <code>false</code>. Default is <code>false</code>.
*
* @return builder
*
*/
public Builder clientCertEnabled(Boolean clientCertEnabled) {
return clientCertEnabled(Output.of(clientCertEnabled));
}
/**
* @param clientCertExclusionPaths client certificate authentication comma-separated exclusion paths
*
* @return builder
*
*/
public Builder clientCertExclusionPaths(@Nullable Output clientCertExclusionPaths) {
$.clientCertExclusionPaths = clientCertExclusionPaths;
return this;
}
/**
* @param clientCertExclusionPaths client certificate authentication comma-separated exclusion paths
*
* @return builder
*
*/
public Builder clientCertExclusionPaths(String clientCertExclusionPaths) {
return clientCertExclusionPaths(Output.of(clientCertExclusionPaths));
}
/**
* @param clientCertMode This composes with ClientCertEnabled setting.
* - ClientCertEnabled: false means ClientCert is ignored.
* - ClientCertEnabled: true and ClientCertMode: Required means ClientCert is required.
* - ClientCertEnabled: true and ClientCertMode: Optional means ClientCert is optional or accepted.
*
* @return builder
*
*/
public Builder clientCertMode(@Nullable Output clientCertMode) {
$.clientCertMode = clientCertMode;
return this;
}
/**
* @param clientCertMode This composes with ClientCertEnabled setting.
* - ClientCertEnabled: false means ClientCert is ignored.
* - ClientCertEnabled: true and ClientCertMode: Required means ClientCert is required.
* - ClientCertEnabled: true and ClientCertMode: Optional means ClientCert is optional or accepted.
*
* @return builder
*
*/
public Builder clientCertMode(ClientCertMode clientCertMode) {
return clientCertMode(Output.of(clientCertMode));
}
/**
* @param cloningInfo If specified during app creation, the app is cloned from a source app.
*
* @return builder
*
*/
public Builder cloningInfo(@Nullable Output cloningInfo) {
$.cloningInfo = cloningInfo;
return this;
}
/**
* @param cloningInfo If specified during app creation, the app is cloned from a source app.
*
* @return builder
*
*/
public Builder cloningInfo(CloningInfoArgs cloningInfo) {
return cloningInfo(Output.of(cloningInfo));
}
/**
* @param containerSize Size of the function container.
*
* @return builder
*
*/
public Builder containerSize(@Nullable Output containerSize) {
$.containerSize = containerSize;
return this;
}
/**
* @param containerSize Size of the function container.
*
* @return builder
*
*/
public Builder containerSize(Integer containerSize) {
return containerSize(Output.of(containerSize));
}
/**
* @param customDomainVerificationId Unique identifier that verifies the custom domains assigned to the app. Customer will add this id to a txt record for verification.
*
* @return builder
*
*/
public Builder customDomainVerificationId(@Nullable Output customDomainVerificationId) {
$.customDomainVerificationId = customDomainVerificationId;
return this;
}
/**
* @param customDomainVerificationId Unique identifier that verifies the custom domains assigned to the app. Customer will add this id to a txt record for verification.
*
* @return builder
*
*/
public Builder customDomainVerificationId(String customDomainVerificationId) {
return customDomainVerificationId(Output.of(customDomainVerificationId));
}
/**
* @param dailyMemoryTimeQuota Maximum allowed daily memory-time quota (applicable on dynamic apps only).
*
* @return builder
*
*/
public Builder dailyMemoryTimeQuota(@Nullable Output dailyMemoryTimeQuota) {
$.dailyMemoryTimeQuota = dailyMemoryTimeQuota;
return this;
}
/**
* @param dailyMemoryTimeQuota Maximum allowed daily memory-time quota (applicable on dynamic apps only).
*
* @return builder
*
*/
public Builder dailyMemoryTimeQuota(Integer dailyMemoryTimeQuota) {
return dailyMemoryTimeQuota(Output.of(dailyMemoryTimeQuota));
}
/**
* @param enabled <code>true</code> if the app is enabled; otherwise, <code>false</code>. Setting this value to false disables the app (takes the app offline).
*
* @return builder
*
*/
public Builder enabled(@Nullable Output enabled) {
$.enabled = enabled;
return this;
}
/**
* @param enabled <code>true</code> if the app is enabled; otherwise, <code>false</code>. Setting this value to false disables the app (takes the app offline).
*
* @return builder
*
*/
public Builder enabled(Boolean enabled) {
return enabled(Output.of(enabled));
}
/**
* @param extendedLocation Extended Location.
*
* @return builder
*
*/
public Builder extendedLocation(@Nullable Output extendedLocation) {
$.extendedLocation = extendedLocation;
return this;
}
/**
* @param extendedLocation Extended Location.
*
* @return builder
*
*/
public Builder extendedLocation(ExtendedLocationArgs extendedLocation) {
return extendedLocation(Output.of(extendedLocation));
}
/**
* @param hostNameSslStates Hostname SSL states are used to manage the SSL bindings for app's hostnames.
*
* @return builder
*
*/
public Builder hostNameSslStates(@Nullable Output> hostNameSslStates) {
$.hostNameSslStates = hostNameSslStates;
return this;
}
/**
* @param hostNameSslStates Hostname SSL states are used to manage the SSL bindings for app's hostnames.
*
* @return builder
*
*/
public Builder hostNameSslStates(List hostNameSslStates) {
return hostNameSslStates(Output.of(hostNameSslStates));
}
/**
* @param hostNameSslStates Hostname SSL states are used to manage the SSL bindings for app's hostnames.
*
* @return builder
*
*/
public Builder hostNameSslStates(HostNameSslStateArgs... hostNameSslStates) {
return hostNameSslStates(List.of(hostNameSslStates));
}
/**
* @param hostNamesDisabled <code>true</code> to disable the public hostnames of the app; otherwise, <code>false</code>.
* If <code>true</code>, the app is only accessible via API management process.
*
* @return builder
*
*/
public Builder hostNamesDisabled(@Nullable Output hostNamesDisabled) {
$.hostNamesDisabled = hostNamesDisabled;
return this;
}
/**
* @param hostNamesDisabled <code>true</code> to disable the public hostnames of the app; otherwise, <code>false</code>.
* If <code>true</code>, the app is only accessible via API management process.
*
* @return builder
*
*/
public Builder hostNamesDisabled(Boolean hostNamesDisabled) {
return hostNamesDisabled(Output.of(hostNamesDisabled));
}
/**
* @param hostingEnvironmentProfile App Service Environment to use for the app.
*
* @return builder
*
*/
public Builder hostingEnvironmentProfile(@Nullable Output hostingEnvironmentProfile) {
$.hostingEnvironmentProfile = hostingEnvironmentProfile;
return this;
}
/**
* @param hostingEnvironmentProfile App Service Environment to use for the app.
*
* @return builder
*
*/
public Builder hostingEnvironmentProfile(HostingEnvironmentProfileArgs hostingEnvironmentProfile) {
return hostingEnvironmentProfile(Output.of(hostingEnvironmentProfile));
}
/**
* @param httpsOnly HttpsOnly: configures a web site to accept only https requests. Issues redirect for
* http requests
*
* @return builder
*
*/
public Builder httpsOnly(@Nullable Output httpsOnly) {
$.httpsOnly = httpsOnly;
return this;
}
/**
* @param httpsOnly HttpsOnly: configures a web site to accept only https requests. Issues redirect for
* http requests
*
* @return builder
*
*/
public Builder httpsOnly(Boolean httpsOnly) {
return httpsOnly(Output.of(httpsOnly));
}
/**
* @param hyperV Hyper-V sandbox.
*
* @return builder
*
*/
public Builder hyperV(@Nullable Output hyperV) {
$.hyperV = hyperV;
return this;
}
/**
* @param hyperV Hyper-V sandbox.
*
* @return builder
*
*/
public Builder hyperV(Boolean hyperV) {
return hyperV(Output.of(hyperV));
}
/**
* @param identity Managed service identity.
*
* @return builder
*
*/
public Builder identity(@Nullable Output identity) {
$.identity = identity;
return this;
}
/**
* @param identity Managed service identity.
*
* @return builder
*
*/
public Builder identity(ManagedServiceIdentityArgs identity) {
return identity(Output.of(identity));
}
/**
* @param isXenon Obsolete: Hyper-V sandbox.
*
* @return builder
*
*/
public Builder isXenon(@Nullable Output isXenon) {
$.isXenon = isXenon;
return this;
}
/**
* @param isXenon Obsolete: Hyper-V sandbox.
*
* @return builder
*
*/
public Builder isXenon(Boolean isXenon) {
return isXenon(Output.of(isXenon));
}
/**
* @param keyVaultReferenceIdentity Identity to use for Key Vault Reference authentication.
*
* @return builder
*
*/
public Builder keyVaultReferenceIdentity(@Nullable Output keyVaultReferenceIdentity) {
$.keyVaultReferenceIdentity = keyVaultReferenceIdentity;
return this;
}
/**
* @param keyVaultReferenceIdentity Identity to use for Key Vault Reference authentication.
*
* @return builder
*
*/
public Builder keyVaultReferenceIdentity(String keyVaultReferenceIdentity) {
return keyVaultReferenceIdentity(Output.of(keyVaultReferenceIdentity));
}
/**
* @param kind Kind of resource.
*
* @return builder
*
*/
public Builder kind(@Nullable Output kind) {
$.kind = kind;
return this;
}
/**
* @param kind Kind of resource.
*
* @return builder
*
*/
public Builder kind(String kind) {
return kind(Output.of(kind));
}
/**
* @param location Resource Location.
*
* @return builder
*
*/
public Builder location(@Nullable Output location) {
$.location = location;
return this;
}
/**
* @param location Resource Location.
*
* @return builder
*
*/
public Builder location(String location) {
return location(Output.of(location));
}
/**
* @param managedEnvironmentId Azure Resource Manager ID of the customer's selected Managed Environment on which to host this app. This must be of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}
*
* @return builder
*
*/
public Builder managedEnvironmentId(@Nullable Output managedEnvironmentId) {
$.managedEnvironmentId = managedEnvironmentId;
return this;
}
/**
* @param managedEnvironmentId Azure Resource Manager ID of the customer's selected Managed Environment on which to host this app. This must be of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}
*
* @return builder
*
*/
public Builder managedEnvironmentId(String managedEnvironmentId) {
return managedEnvironmentId(Output.of(managedEnvironmentId));
}
/**
* @param name Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter.
*
* @return builder
*
*/
public Builder name(Output name) {
$.name = name;
return this;
}
/**
* @param name Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter.
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
/**
* @param publicNetworkAccess Property to allow or block all public traffic. Allowed Values: 'Enabled', 'Disabled' or an empty string.
*
* @return builder
*
*/
public Builder publicNetworkAccess(@Nullable Output publicNetworkAccess) {
$.publicNetworkAccess = publicNetworkAccess;
return this;
}
/**
* @param publicNetworkAccess Property to allow or block all public traffic. Allowed Values: 'Enabled', 'Disabled' or an empty string.
*
* @return builder
*
*/
public Builder publicNetworkAccess(String publicNetworkAccess) {
return publicNetworkAccess(Output.of(publicNetworkAccess));
}
/**
* @param redundancyMode Site redundancy mode
*
* @return builder
*
*/
public Builder redundancyMode(@Nullable Output redundancyMode) {
$.redundancyMode = redundancyMode;
return this;
}
/**
* @param redundancyMode Site redundancy mode
*
* @return builder
*
*/
public Builder redundancyMode(RedundancyMode redundancyMode) {
return redundancyMode(Output.of(redundancyMode));
}
/**
* @param reserved <code>true</code> if reserved; otherwise, <code>false</code>.
*
* @return builder
*
*/
public Builder reserved(@Nullable Output reserved) {
$.reserved = reserved;
return this;
}
/**
* @param reserved <code>true</code> if reserved; otherwise, <code>false</code>.
*
* @return builder
*
*/
public Builder reserved(Boolean reserved) {
return reserved(Output.of(reserved));
}
/**
* @param resourceGroupName Name of the resource group to which the resource belongs.
*
* @return builder
*
*/
public Builder resourceGroupName(Output resourceGroupName) {
$.resourceGroupName = resourceGroupName;
return this;
}
/**
* @param resourceGroupName Name of the resource group to which the resource belongs.
*
* @return builder
*
*/
public Builder resourceGroupName(String resourceGroupName) {
return resourceGroupName(Output.of(resourceGroupName));
}
/**
* @param scmSiteAlsoStopped <code>true</code> to stop SCM (KUDU) site when the app is stopped; otherwise, <code>false</code>. The default is <code>false</code>.
*
* @return builder
*
*/
public Builder scmSiteAlsoStopped(@Nullable Output scmSiteAlsoStopped) {
$.scmSiteAlsoStopped = scmSiteAlsoStopped;
return this;
}
/**
* @param scmSiteAlsoStopped <code>true</code> to stop SCM (KUDU) site when the app is stopped; otherwise, <code>false</code>. The default is <code>false</code>.
*
* @return builder
*
*/
public Builder scmSiteAlsoStopped(Boolean scmSiteAlsoStopped) {
return scmSiteAlsoStopped(Output.of(scmSiteAlsoStopped));
}
/**
* @param serverFarmId Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
*
* @return builder
*
*/
public Builder serverFarmId(@Nullable Output serverFarmId) {
$.serverFarmId = serverFarmId;
return this;
}
/**
* @param serverFarmId Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
*
* @return builder
*
*/
public Builder serverFarmId(String serverFarmId) {
return serverFarmId(Output.of(serverFarmId));
}
/**
* @param siteConfig Configuration of the app.
*
* @return builder
*
*/
public Builder siteConfig(@Nullable Output siteConfig) {
$.siteConfig = siteConfig;
return this;
}
/**
* @param siteConfig Configuration of the app.
*
* @return builder
*
*/
public Builder siteConfig(SiteConfigArgs siteConfig) {
return siteConfig(Output.of(siteConfig));
}
/**
* @param slot Name of the deployment slot to create or update. By default, this API attempts to create or modify the production slot.
*
* @return builder
*
*/
public Builder slot(@Nullable Output slot) {
$.slot = slot;
return this;
}
/**
* @param slot Name of the deployment slot to create or update. By default, this API attempts to create or modify the production slot.
*
* @return builder
*
*/
public Builder slot(String slot) {
return slot(Output.of(slot));
}
/**
* @param storageAccountRequired Checks if Customer provided storage account is required
*
* @return builder
*
*/
public Builder storageAccountRequired(@Nullable Output storageAccountRequired) {
$.storageAccountRequired = storageAccountRequired;
return this;
}
/**
* @param storageAccountRequired Checks if Customer provided storage account is required
*
* @return builder
*
*/
public Builder storageAccountRequired(Boolean storageAccountRequired) {
return storageAccountRequired(Output.of(storageAccountRequired));
}
/**
* @param tags Resource tags.
*
* @return builder
*
*/
public Builder tags(@Nullable Output> tags) {
$.tags = tags;
return this;
}
/**
* @param tags Resource tags.
*
* @return builder
*
*/
public Builder tags(Map tags) {
return tags(Output.of(tags));
}
/**
* @param virtualNetworkSubnetId Azure Resource Manager ID of the Virtual network and subnet to be joined by Regional VNET Integration.
* This must be of the form /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}
*
* @return builder
*
*/
public Builder virtualNetworkSubnetId(@Nullable Output virtualNetworkSubnetId) {
$.virtualNetworkSubnetId = virtualNetworkSubnetId;
return this;
}
/**
* @param virtualNetworkSubnetId Azure Resource Manager ID of the Virtual network and subnet to be joined by Regional VNET Integration.
* This must be of the form /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}
*
* @return builder
*
*/
public Builder virtualNetworkSubnetId(String virtualNetworkSubnetId) {
return virtualNetworkSubnetId(Output.of(virtualNetworkSubnetId));
}
/**
* @param vnetContentShareEnabled To enable accessing content over virtual network
*
* @return builder
*
*/
public Builder vnetContentShareEnabled(@Nullable Output vnetContentShareEnabled) {
$.vnetContentShareEnabled = vnetContentShareEnabled;
return this;
}
/**
* @param vnetContentShareEnabled To enable accessing content over virtual network
*
* @return builder
*
*/
public Builder vnetContentShareEnabled(Boolean vnetContentShareEnabled) {
return vnetContentShareEnabled(Output.of(vnetContentShareEnabled));
}
/**
* @param vnetImagePullEnabled To enable pulling image over Virtual Network
*
* @return builder
*
*/
public Builder vnetImagePullEnabled(@Nullable Output vnetImagePullEnabled) {
$.vnetImagePullEnabled = vnetImagePullEnabled;
return this;
}
/**
* @param vnetImagePullEnabled To enable pulling image over Virtual Network
*
* @return builder
*
*/
public Builder vnetImagePullEnabled(Boolean vnetImagePullEnabled) {
return vnetImagePullEnabled(Output.of(vnetImagePullEnabled));
}
/**
* @param vnetRouteAllEnabled Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied.
*
* @return builder
*
*/
public Builder vnetRouteAllEnabled(@Nullable Output vnetRouteAllEnabled) {
$.vnetRouteAllEnabled = vnetRouteAllEnabled;
return this;
}
/**
* @param vnetRouteAllEnabled Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied.
*
* @return builder
*
*/
public Builder vnetRouteAllEnabled(Boolean vnetRouteAllEnabled) {
return vnetRouteAllEnabled(Output.of(vnetRouteAllEnabled));
}
public WebAppSlotArgs build() {
$.hyperV = Codegen.booleanProp("hyperV").output().arg($.hyperV).def(false).getNullable();
$.isXenon = Codegen.booleanProp("isXenon").output().arg($.isXenon).def(false).getNullable();
if ($.name == null) {
throw new MissingRequiredPropertyException("WebAppSlotArgs", "name");
}
$.reserved = Codegen.booleanProp("reserved").output().arg($.reserved).def(false).getNullable();
if ($.resourceGroupName == null) {
throw new MissingRequiredPropertyException("WebAppSlotArgs", "resourceGroupName");
}
$.scmSiteAlsoStopped = Codegen.booleanProp("scmSiteAlsoStopped").output().arg($.scmSiteAlsoStopped).def(false).getNullable();
return $;
}
}
}