StaticSiteArmResourceInner Class

public final class StaticSiteArmResourceInner
extends Resource

Static Site ARM resource.

Constructor Summary

Constructor Description
StaticSiteArmResourceInner()

Creates an instance of StaticSiteArmResourceInner class.

Method Summary

Modifier and Type Method and Description
Boolean allowConfigFileUpdates()

Get the allowConfigFileUpdates property: false if config file is locked for this static web app; otherwise, true.

String branch()

Get the branch property: The target branch in the repository.

StaticSiteBuildProperties buildProperties()

Get the buildProperties property: Build properties to configure on the repository.

String contentDistributionEndpoint()

Get the contentDistributionEndpoint property: The content distribution endpoint for the static site.

List<String> customDomains()

Get the customDomains property: The custom domains associated with this static site.

List<DatabaseConnectionOverview> databaseConnections()

Get the databaseConnections property: Database connections for the static site.

String defaultHostname()

Get the defaultHostname property: The default autogenerated hostname for the static site.

EnterpriseGradeCdnStatus enterpriseGradeCdnStatus()

Get the enterpriseGradeCdnStatus property: State indicating the status of the enterprise grade CDN serving traffic to the static web app.

static StaticSiteArmResourceInner fromJson(JsonReader jsonReader)

Reads an instance of StaticSiteArmResourceInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

ManagedServiceIdentity identity()

Get the identity property: Managed service identity.

String keyVaultReferenceIdentity()

Get the keyVaultReferenceIdentity property: Identity to use for Key Vault Reference authentication.

String kind()

Get the kind property: Kind of resource.

List<StaticSiteLinkedBackend> linkedBackends()

Get the linkedBackends property: Backends linked to the static side.

String name()

Get the name property: The name of the resource.

List<ResponseMessageEnvelopeRemotePrivateEndpointConnection> privateEndpointConnections()

Get the privateEndpointConnections property: Private endpoint connections.

String provider()

Get the provider property: The provider that submitted the last deployment to the primary environment of the static site.

String publicNetworkAccess()

Get the publicNetworkAccess property: State indicating whether public traffic are allowed or not for a static web app.

String repositoryToken()

Get the repositoryToken property: A user's github repository token.

String repositoryUrl()

Get the repositoryUrl property: URL for the repository of the static site.

SkuDescription sku()

Get the sku property: Description of a SKU for a scalable resource.

StagingEnvironmentPolicy stagingEnvironmentPolicy()

Get the stagingEnvironmentPolicy property: State indicating whether staging environments are allowed or not allowed for a static web app.

StaticSiteTemplateOptions templateProperties()

Get the templateProperties property: Template options for generating a new repository.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

List<StaticSiteUserProvidedFunctionApp> userProvidedFunctionApps()

Get the userProvidedFunctionApps property: User provided function apps registered with the static site.

void validate()

Validates the instance.

StaticSiteArmResourceInner withAllowConfigFileUpdates(Boolean allowConfigFileUpdates)

Set the allowConfigFileUpdates property: false if config file is locked for this static web app; otherwise, true.

StaticSiteArmResourceInner withBranch(String branch)

Set the branch property: The target branch in the repository.

StaticSiteArmResourceInner withBuildProperties(StaticSiteBuildProperties buildProperties)

Set the buildProperties property: Build properties to configure on the repository.

StaticSiteArmResourceInner withEnterpriseGradeCdnStatus(EnterpriseGradeCdnStatus enterpriseGradeCdnStatus)

Set the enterpriseGradeCdnStatus property: State indicating the status of the enterprise grade CDN serving traffic to the static web app.

StaticSiteArmResourceInner withIdentity(ManagedServiceIdentity identity)

Set the identity property: Managed service identity.

StaticSiteArmResourceInner withKind(String kind)

Set the kind property: Kind of resource.

StaticSiteArmResourceInner withLocation(String location)
StaticSiteArmResourceInner withProvider(String provider)

Set the provider property: The provider that submitted the last deployment to the primary environment of the static site.

StaticSiteArmResourceInner withPublicNetworkAccess(String publicNetworkAccess)

Set the publicNetworkAccess property: State indicating whether public traffic are allowed or not for a static web app.

StaticSiteArmResourceInner withRepositoryToken(String repositoryToken)

Set the repositoryToken property: A user's github repository token.

StaticSiteArmResourceInner withRepositoryUrl(String repositoryUrl)

Set the repositoryUrl property: URL for the repository of the static site.

StaticSiteArmResourceInner withSku(SkuDescription sku)

Set the sku property: Description of a SKU for a scalable resource.

StaticSiteArmResourceInner withStagingEnvironmentPolicy(StagingEnvironmentPolicy stagingEnvironmentPolicy)

Set the stagingEnvironmentPolicy property: State indicating whether staging environments are allowed or not allowed for a static web app.

StaticSiteArmResourceInner withTags(Map<String,String> tags)
StaticSiteArmResourceInner withTemplateProperties(StaticSiteTemplateOptions templateProperties)

Set the templateProperties property: Template options for generating a new repository.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

StaticSiteArmResourceInner

public StaticSiteArmResourceInner()

Creates an instance of StaticSiteArmResourceInner class.

Method Details

allowConfigFileUpdates

public Boolean allowConfigFileUpdates()

Get the allowConfigFileUpdates property: false if config file is locked for this static web app; otherwise, true.

Returns:

the allowConfigFileUpdates value.

branch

public String branch()

Get the branch property: The target branch in the repository.

Returns:

the branch value.

buildProperties

public StaticSiteBuildProperties buildProperties()

Get the buildProperties property: Build properties to configure on the repository.

Returns:

the buildProperties value.

contentDistributionEndpoint

public String contentDistributionEndpoint()

Get the contentDistributionEndpoint property: The content distribution endpoint for the static site.

Returns:

the contentDistributionEndpoint value.

customDomains

public List customDomains()

Get the customDomains property: The custom domains associated with this static site.

Returns:

the customDomains value.

databaseConnections

public List databaseConnections()

Get the databaseConnections property: Database connections for the static site.

Returns:

the databaseConnections value.

defaultHostname

public String defaultHostname()

Get the defaultHostname property: The default autogenerated hostname for the static site.

Returns:

the defaultHostname value.

enterpriseGradeCdnStatus

public EnterpriseGradeCdnStatus enterpriseGradeCdnStatus()

Get the enterpriseGradeCdnStatus property: State indicating the status of the enterprise grade CDN serving traffic to the static web app.

Returns:

the enterpriseGradeCdnStatus value.

fromJson

public static StaticSiteArmResourceInner fromJson(JsonReader jsonReader)

Reads an instance of StaticSiteArmResourceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of StaticSiteArmResourceInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

StaticSiteArmResourceInner.id()

Returns:

the id value.

identity

public ManagedServiceIdentity identity()

Get the identity property: Managed service identity.

Returns:

the identity value.

keyVaultReferenceIdentity

public String keyVaultReferenceIdentity()

Get the keyVaultReferenceIdentity property: Identity to use for Key Vault Reference authentication.

Returns:

the keyVaultReferenceIdentity value.

kind

public String kind()

Get the kind property: Kind of resource.

Returns:

the kind value.

linkedBackends

public List linkedBackends()

Get the linkedBackends property: Backends linked to the static side.

Returns:

the linkedBackends value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

StaticSiteArmResourceInner.name()

Returns:

the name value.

privateEndpointConnections

public List privateEndpointConnections()

Get the privateEndpointConnections property: Private endpoint connections.

Returns:

the privateEndpointConnections value.

provider

public String provider()

Get the provider property: The provider that submitted the last deployment to the primary environment of the static site.

Returns:

the provider value.

publicNetworkAccess

public String publicNetworkAccess()

Get the publicNetworkAccess property: State indicating whether public traffic are allowed or not for a static web app. Allowed Values: 'Enabled', 'Disabled' or an empty string.

Returns:

the publicNetworkAccess value.

repositoryToken

public String repositoryToken()

Get the repositoryToken property: A user's github repository token. This is used to setup the Github Actions workflow file and API secrets.

Returns:

the repositoryToken value.

repositoryUrl

public String repositoryUrl()

Get the repositoryUrl property: URL for the repository of the static site.

Returns:

the repositoryUrl value.

sku

public SkuDescription sku()

Get the sku property: Description of a SKU for a scalable resource.

Returns:

the sku value.

stagingEnvironmentPolicy

public StagingEnvironmentPolicy stagingEnvironmentPolicy()

Get the stagingEnvironmentPolicy property: State indicating whether staging environments are allowed or not allowed for a static web app.

Returns:

the stagingEnvironmentPolicy value.

templateProperties

public StaticSiteTemplateOptions templateProperties()

Get the templateProperties property: Template options for generating a new repository.

Returns:

the templateProperties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

StaticSiteArmResourceInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

StaticSiteArmResourceInner.type()

Returns:

the type value.

userProvidedFunctionApps

public List userProvidedFunctionApps()

Get the userProvidedFunctionApps property: User provided function apps registered with the static site.

Returns:

the userProvidedFunctionApps value.

validate

public void validate()

Validates the instance.

withAllowConfigFileUpdates

public StaticSiteArmResourceInner withAllowConfigFileUpdates(Boolean allowConfigFileUpdates)

Set the allowConfigFileUpdates property: false if config file is locked for this static web app; otherwise, true.

Parameters:

allowConfigFileUpdates - the allowConfigFileUpdates value to set.

Returns:

the StaticSiteArmResourceInner object itself.

withBranch

public StaticSiteArmResourceInner withBranch(String branch)

Set the branch property: The target branch in the repository.

Parameters:

branch - the branch value to set.

Returns:

the StaticSiteArmResourceInner object itself.

withBuildProperties

public StaticSiteArmResourceInner withBuildProperties(StaticSiteBuildProperties buildProperties)

Set the buildProperties property: Build properties to configure on the repository.

Parameters:

buildProperties - the buildProperties value to set.

Returns:

the StaticSiteArmResourceInner object itself.

withEnterpriseGradeCdnStatus

public StaticSiteArmResourceInner withEnterpriseGradeCdnStatus(EnterpriseGradeCdnStatus enterpriseGradeCdnStatus)

Set the enterpriseGradeCdnStatus property: State indicating the status of the enterprise grade CDN serving traffic to the static web app.

Parameters:

enterpriseGradeCdnStatus - the enterpriseGradeCdnStatus value to set.

Returns:

the StaticSiteArmResourceInner object itself.

withIdentity

public StaticSiteArmResourceInner withIdentity(ManagedServiceIdentity identity)

Set the identity property: Managed service identity.

Parameters:

identity - the identity value to set.

Returns:

the StaticSiteArmResourceInner object itself.

withKind

public StaticSiteArmResourceInner withKind(String kind)

Set the kind property: Kind of resource.

Parameters:

kind - the kind value to set.

Returns:

the StaticSiteArmResourceInner object itself.

withLocation

public StaticSiteArmResourceInner withLocation(String location)

Overrides:

StaticSiteArmResourceInner.withLocation(String location)

Parameters:

location

withProvider

public StaticSiteArmResourceInner withProvider(String provider)

Set the provider property: The provider that submitted the last deployment to the primary environment of the static site.

Parameters:

provider - the provider value to set.

Returns:

the StaticSiteArmResourceInner object itself.

withPublicNetworkAccess

public StaticSiteArmResourceInner withPublicNetworkAccess(String publicNetworkAccess)

Set the publicNetworkAccess property: State indicating whether public traffic are allowed or not for a static web app. Allowed Values: 'Enabled', 'Disabled' or an empty string.

Parameters:

publicNetworkAccess - the publicNetworkAccess value to set.

Returns:

the StaticSiteArmResourceInner object itself.

withRepositoryToken

public StaticSiteArmResourceInner withRepositoryToken(String repositoryToken)

Set the repositoryToken property: A user's github repository token. This is used to setup the Github Actions workflow file and API secrets.

Parameters:

repositoryToken - the repositoryToken value to set.

Returns:

the StaticSiteArmResourceInner object itself.

withRepositoryUrl

public StaticSiteArmResourceInner withRepositoryUrl(String repositoryUrl)

Set the repositoryUrl property: URL for the repository of the static site.

Parameters:

repositoryUrl - the repositoryUrl value to set.

Returns:

the StaticSiteArmResourceInner object itself.

withSku

public StaticSiteArmResourceInner withSku(SkuDescription sku)

Set the sku property: Description of a SKU for a scalable resource.

Parameters:

sku - the sku value to set.

Returns:

the StaticSiteArmResourceInner object itself.

withStagingEnvironmentPolicy

public StaticSiteArmResourceInner withStagingEnvironmentPolicy(StagingEnvironmentPolicy stagingEnvironmentPolicy)

Set the stagingEnvironmentPolicy property: State indicating whether staging environments are allowed or not allowed for a static web app.

Parameters:

stagingEnvironmentPolicy - the stagingEnvironmentPolicy value to set.

Returns:

the StaticSiteArmResourceInner object itself.

withTags

public StaticSiteArmResourceInner withTags(Map tags)

Overrides:

StaticSiteArmResourceInner.withTags(Map<String,String> tags)

Parameters:

tags

withTemplateProperties

public StaticSiteArmResourceInner withTemplateProperties(StaticSiteTemplateOptions templateProperties)

Set the templateProperties property: Template options for generating a new repository.

Parameters:

templateProperties - the templateProperties value to set.

Returns:

the StaticSiteArmResourceInner object itself.

Applies to