com.pulumi.azure.appservice.outputs.GetFunctionAppResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
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.
// *** 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.outputs;
import com.pulumi.azure.appservice.outputs.GetFunctionAppConnectionString;
import com.pulumi.azure.appservice.outputs.GetFunctionAppIdentity;
import com.pulumi.azure.appservice.outputs.GetFunctionAppSiteConfig;
import com.pulumi.azure.appservice.outputs.GetFunctionAppSiteCredential;
import com.pulumi.azure.appservice.outputs.GetFunctionAppSourceControl;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class GetFunctionAppResult {
/**
* @return The ID of the App Service Plan within which to create this Function App.
*
*/
private String appServicePlanId;
/**
* @return A key-value pair of App Settings.
*
*/
private Map appSettings;
/**
* @return The mode of the Function App's client certificates requirement for incoming requests.
*
*/
private String clientCertMode;
/**
* @return An `connection_string` block as defined below.
*
*/
private List connectionStrings;
/**
* @return An identifier used by App Service to perform domain ownership verification via DNS TXT record.
*
*/
private String customDomainVerificationId;
/**
* @return The default hostname associated with the Function App.
*
*/
private String defaultHostname;
/**
* @return Is the Function App enabled?
*
*/
private Boolean enabled;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return A `identity` block as defined below.
*
*/
private List identities;
private String location;
/**
* @return The name for this IP Restriction.
*
*/
private String name;
/**
* @return A string indicating the Operating System type for this function app.
*
*/
private String osType;
/**
* @return A comma separated list of outbound IP addresses.
*
*/
private String outboundIpAddresses;
/**
* @return A comma separated list of outbound IP addresses, not all of which are necessarily in use. Superset of `outbound_ip_addresses`.
*
*/
private String possibleOutboundIpAddresses;
private String resourceGroupName;
private List siteConfigs;
/**
* @return A `site_credential` block as defined below, which contains the site-level credentials used to publish to this App Service.
*
*/
private List siteCredentials;
/**
* @return A `source_control` block as defined below.
*
*/
private List sourceControls;
private @Nullable Map tags;
private GetFunctionAppResult() {}
/**
* @return The ID of the App Service Plan within which to create this Function App.
*
*/
public String appServicePlanId() {
return this.appServicePlanId;
}
/**
* @return A key-value pair of App Settings.
*
*/
public Map appSettings() {
return this.appSettings;
}
/**
* @return The mode of the Function App's client certificates requirement for incoming requests.
*
*/
public String clientCertMode() {
return this.clientCertMode;
}
/**
* @return An `connection_string` block as defined below.
*
*/
public List connectionStrings() {
return this.connectionStrings;
}
/**
* @return An identifier used by App Service to perform domain ownership verification via DNS TXT record.
*
*/
public String customDomainVerificationId() {
return this.customDomainVerificationId;
}
/**
* @return The default hostname associated with the Function App.
*
*/
public String defaultHostname() {
return this.defaultHostname;
}
/**
* @return Is the Function App enabled?
*
*/
public Boolean enabled() {
return this.enabled;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return A `identity` block as defined below.
*
*/
public List identities() {
return this.identities;
}
public String location() {
return this.location;
}
/**
* @return The name for this IP Restriction.
*
*/
public String name() {
return this.name;
}
/**
* @return A string indicating the Operating System type for this function app.
*
*/
public String osType() {
return this.osType;
}
/**
* @return A comma separated list of outbound IP addresses.
*
*/
public String outboundIpAddresses() {
return this.outboundIpAddresses;
}
/**
* @return A comma separated list of outbound IP addresses, not all of which are necessarily in use. Superset of `outbound_ip_addresses`.
*
*/
public String possibleOutboundIpAddresses() {
return this.possibleOutboundIpAddresses;
}
public String resourceGroupName() {
return this.resourceGroupName;
}
public List siteConfigs() {
return this.siteConfigs;
}
/**
* @return A `site_credential` block as defined below, which contains the site-level credentials used to publish to this App Service.
*
*/
public List siteCredentials() {
return this.siteCredentials;
}
/**
* @return A `source_control` block as defined below.
*
*/
public List sourceControls() {
return this.sourceControls;
}
public Map tags() {
return this.tags == null ? Map.of() : this.tags;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetFunctionAppResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String appServicePlanId;
private Map appSettings;
private String clientCertMode;
private List connectionStrings;
private String customDomainVerificationId;
private String defaultHostname;
private Boolean enabled;
private String id;
private List identities;
private String location;
private String name;
private String osType;
private String outboundIpAddresses;
private String possibleOutboundIpAddresses;
private String resourceGroupName;
private List siteConfigs;
private List siteCredentials;
private List sourceControls;
private @Nullable Map tags;
public Builder() {}
public Builder(GetFunctionAppResult defaults) {
Objects.requireNonNull(defaults);
this.appServicePlanId = defaults.appServicePlanId;
this.appSettings = defaults.appSettings;
this.clientCertMode = defaults.clientCertMode;
this.connectionStrings = defaults.connectionStrings;
this.customDomainVerificationId = defaults.customDomainVerificationId;
this.defaultHostname = defaults.defaultHostname;
this.enabled = defaults.enabled;
this.id = defaults.id;
this.identities = defaults.identities;
this.location = defaults.location;
this.name = defaults.name;
this.osType = defaults.osType;
this.outboundIpAddresses = defaults.outboundIpAddresses;
this.possibleOutboundIpAddresses = defaults.possibleOutboundIpAddresses;
this.resourceGroupName = defaults.resourceGroupName;
this.siteConfigs = defaults.siteConfigs;
this.siteCredentials = defaults.siteCredentials;
this.sourceControls = defaults.sourceControls;
this.tags = defaults.tags;
}
@CustomType.Setter
public Builder appServicePlanId(String appServicePlanId) {
if (appServicePlanId == null) {
throw new MissingRequiredPropertyException("GetFunctionAppResult", "appServicePlanId");
}
this.appServicePlanId = appServicePlanId;
return this;
}
@CustomType.Setter
public Builder appSettings(Map appSettings) {
if (appSettings == null) {
throw new MissingRequiredPropertyException("GetFunctionAppResult", "appSettings");
}
this.appSettings = appSettings;
return this;
}
@CustomType.Setter
public Builder clientCertMode(String clientCertMode) {
if (clientCertMode == null) {
throw new MissingRequiredPropertyException("GetFunctionAppResult", "clientCertMode");
}
this.clientCertMode = clientCertMode;
return this;
}
@CustomType.Setter
public Builder connectionStrings(List connectionStrings) {
if (connectionStrings == null) {
throw new MissingRequiredPropertyException("GetFunctionAppResult", "connectionStrings");
}
this.connectionStrings = connectionStrings;
return this;
}
public Builder connectionStrings(GetFunctionAppConnectionString... connectionStrings) {
return connectionStrings(List.of(connectionStrings));
}
@CustomType.Setter
public Builder customDomainVerificationId(String customDomainVerificationId) {
if (customDomainVerificationId == null) {
throw new MissingRequiredPropertyException("GetFunctionAppResult", "customDomainVerificationId");
}
this.customDomainVerificationId = customDomainVerificationId;
return this;
}
@CustomType.Setter
public Builder defaultHostname(String defaultHostname) {
if (defaultHostname == null) {
throw new MissingRequiredPropertyException("GetFunctionAppResult", "defaultHostname");
}
this.defaultHostname = defaultHostname;
return this;
}
@CustomType.Setter
public Builder enabled(Boolean enabled) {
if (enabled == null) {
throw new MissingRequiredPropertyException("GetFunctionAppResult", "enabled");
}
this.enabled = enabled;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetFunctionAppResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder identities(List identities) {
if (identities == null) {
throw new MissingRequiredPropertyException("GetFunctionAppResult", "identities");
}
this.identities = identities;
return this;
}
public Builder identities(GetFunctionAppIdentity... identities) {
return identities(List.of(identities));
}
@CustomType.Setter
public Builder location(String location) {
if (location == null) {
throw new MissingRequiredPropertyException("GetFunctionAppResult", "location");
}
this.location = location;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetFunctionAppResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder osType(String osType) {
if (osType == null) {
throw new MissingRequiredPropertyException("GetFunctionAppResult", "osType");
}
this.osType = osType;
return this;
}
@CustomType.Setter
public Builder outboundIpAddresses(String outboundIpAddresses) {
if (outboundIpAddresses == null) {
throw new MissingRequiredPropertyException("GetFunctionAppResult", "outboundIpAddresses");
}
this.outboundIpAddresses = outboundIpAddresses;
return this;
}
@CustomType.Setter
public Builder possibleOutboundIpAddresses(String possibleOutboundIpAddresses) {
if (possibleOutboundIpAddresses == null) {
throw new MissingRequiredPropertyException("GetFunctionAppResult", "possibleOutboundIpAddresses");
}
this.possibleOutboundIpAddresses = possibleOutboundIpAddresses;
return this;
}
@CustomType.Setter
public Builder resourceGroupName(String resourceGroupName) {
if (resourceGroupName == null) {
throw new MissingRequiredPropertyException("GetFunctionAppResult", "resourceGroupName");
}
this.resourceGroupName = resourceGroupName;
return this;
}
@CustomType.Setter
public Builder siteConfigs(List siteConfigs) {
if (siteConfigs == null) {
throw new MissingRequiredPropertyException("GetFunctionAppResult", "siteConfigs");
}
this.siteConfigs = siteConfigs;
return this;
}
public Builder siteConfigs(GetFunctionAppSiteConfig... siteConfigs) {
return siteConfigs(List.of(siteConfigs));
}
@CustomType.Setter
public Builder siteCredentials(List siteCredentials) {
if (siteCredentials == null) {
throw new MissingRequiredPropertyException("GetFunctionAppResult", "siteCredentials");
}
this.siteCredentials = siteCredentials;
return this;
}
public Builder siteCredentials(GetFunctionAppSiteCredential... siteCredentials) {
return siteCredentials(List.of(siteCredentials));
}
@CustomType.Setter
public Builder sourceControls(List sourceControls) {
if (sourceControls == null) {
throw new MissingRequiredPropertyException("GetFunctionAppResult", "sourceControls");
}
this.sourceControls = sourceControls;
return this;
}
public Builder sourceControls(GetFunctionAppSourceControl... sourceControls) {
return sourceControls(List.of(sourceControls));
}
@CustomType.Setter
public Builder tags(@Nullable Map tags) {
this.tags = tags;
return this;
}
public GetFunctionAppResult build() {
final var _resultValue = new GetFunctionAppResult();
_resultValue.appServicePlanId = appServicePlanId;
_resultValue.appSettings = appSettings;
_resultValue.clientCertMode = clientCertMode;
_resultValue.connectionStrings = connectionStrings;
_resultValue.customDomainVerificationId = customDomainVerificationId;
_resultValue.defaultHostname = defaultHostname;
_resultValue.enabled = enabled;
_resultValue.id = id;
_resultValue.identities = identities;
_resultValue.location = location;
_resultValue.name = name;
_resultValue.osType = osType;
_resultValue.outboundIpAddresses = outboundIpAddresses;
_resultValue.possibleOutboundIpAddresses = possibleOutboundIpAddresses;
_resultValue.resourceGroupName = resourceGroupName;
_resultValue.siteConfigs = siteConfigs;
_resultValue.siteCredentials = siteCredentials;
_resultValue.sourceControls = sourceControls;
_resultValue.tags = tags;
return _resultValue;
}
}
}