StaticSite Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. fluent. models. StaticSite
- com.
Implements
public final class StaticSite
implements JsonSerializable<StaticSite>
A static site.
Constructor Summary
| Constructor | Description |
|---|---|
| StaticSite() |
Creates an instance of Static |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Boolean |
allowConfigFileUpdates()
Get the allow |
| String |
branch()
Get the branch property: The target branch in the repository. |
|
Static |
buildProperties()
Get the build |
| String |
contentDistributionEndpoint()
Get the content |
| List<String> |
customDomains()
Get the custom |
|
List<Database |
databaseConnections()
Get the database |
| String |
defaultHostname()
Get the default |
|
Enterprise |
enterpriseGradeCdnStatus()
Get the enterprise |
|
static
Static |
fromJson(JsonReader jsonReader)
Reads an instance of Static |
| String |
keyVaultReferenceIdentity()
Get the key |
|
List<Static |
linkedBackends()
Get the linked |
|
List<Response |
privateEndpointConnections()
Get the private |
| 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 public |
| String |
repositoryToken()
Get the repository |
| String |
repositoryUrl()
Get the repository |
|
Staging |
stagingEnvironmentPolicy()
Get the staging |
|
Static |
templateProperties()
Get the template |
|
Json |
toJson(JsonWriter jsonWriter) |
|
List<Static |
userProvidedFunctionApps()
Get the user |
| void |
validate()
Validates the instance. |
|
Static |
withAllowConfigFileUpdates(Boolean allowConfigFileUpdates)
Set the allow |
|
Static |
withBranch(String branch)
Set the branch property: The target branch in the repository. |
|
Static |
withBuildProperties(StaticSiteBuildProperties buildProperties)
Set the build |
|
Static |
withEnterpriseGradeCdnStatus(EnterpriseGradeCdnStatus enterpriseGradeCdnStatus)
Set the enterprise |
|
Static |
withProvider(String provider)
Set the provider property: The provider that submitted the last deployment to the primary environment of the static site. |
|
Static |
withPublicNetworkAccess(String publicNetworkAccess)
Set the public |
|
Static |
withRepositoryToken(String repositoryToken)
Set the repository |
|
Static |
withRepositoryUrl(String repositoryUrl)
Set the repository |
|
Static |
withStagingEnvironmentPolicy(StagingEnvironmentPolicy stagingEnvironmentPolicy)
Set the staging |
|
Static |
withTemplateProperties(StaticSiteTemplateOptions templateProperties)
Set the template |
Methods inherited from java.lang.Object
Constructor Details
StaticSite
public StaticSite()
Creates an instance of StaticSite 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:
branch
public String branch()
Get the branch property: The target branch in the repository.
Returns:
buildProperties
public StaticSiteBuildProperties buildProperties()
Get the buildProperties property: Build properties to configure on the repository.
Returns:
contentDistributionEndpoint
public String contentDistributionEndpoint()
Get the contentDistributionEndpoint property: The content distribution endpoint for the static site.
Returns:
customDomains
public List<String> customDomains()
Get the customDomains property: The custom domains associated with this static site.
Returns:
databaseConnections
public List<DatabaseConnectionOverview> databaseConnections()
Get the databaseConnections property: Database connections for the static site.
Returns:
defaultHostname
public String defaultHostname()
Get the defaultHostname property: The default autogenerated hostname for the static site.
Returns:
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:
fromJson
public static StaticSite fromJson(JsonReader jsonReader)
Reads an instance of StaticSite from the JsonReader.
Parameters:
Returns:
Throws:
keyVaultReferenceIdentity
public String keyVaultReferenceIdentity()
Get the keyVaultReferenceIdentity property: Identity to use for Key Vault Reference authentication.
Returns:
linkedBackends
public List<StaticSiteLinkedBackend> linkedBackends()
Get the linkedBackends property: Backends linked to the static side.
Returns:
privateEndpointConnections
public List<ResponseMessageEnvelopeRemotePrivateEndpointConnection> privateEndpointConnections()
Get the privateEndpointConnections property: Private endpoint connections.
Returns:
provider
public String provider()
Get the provider property: The provider that submitted the last deployment to the primary environment of the static site.
Returns:
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:
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:
repositoryUrl
public String repositoryUrl()
Get the repositoryUrl property: URL for the repository of the static site.
Returns:
stagingEnvironmentPolicy
public StagingEnvironmentPolicy stagingEnvironmentPolicy()
Get the stagingEnvironmentPolicy property: State indicating whether staging environments are allowed or not allowed for a static web app.
Returns:
templateProperties
public StaticSiteTemplateOptions templateProperties()
Get the templateProperties property: Template options for generating a new repository.
Returns:
toJson
userProvidedFunctionApps
public List<StaticSiteUserProvidedFunctionApp> userProvidedFunctionApps()
Get the userProvidedFunctionApps property: User provided function apps registered with the static site.
Returns:
validate
public void validate()
Validates the instance.
withAllowConfigFileUpdates
public StaticSite withAllowConfigFileUpdates(Boolean allowConfigFileUpdates)
Set the allowConfigFileUpdates property: false if config file is locked for this static web app; otherwise, true.
Parameters:
Returns:
withBranch
public StaticSite withBranch(String branch)
Set the branch property: The target branch in the repository.
Parameters:
Returns:
withBuildProperties
public StaticSite withBuildProperties(StaticSiteBuildProperties buildProperties)
Set the buildProperties property: Build properties to configure on the repository.
Parameters:
Returns:
withEnterpriseGradeCdnStatus
public StaticSite withEnterpriseGradeCdnStatus(EnterpriseGradeCdnStatus enterpriseGradeCdnStatus)
Set the enterpriseGradeCdnStatus property: State indicating the status of the enterprise grade CDN serving traffic to the static web app.
Parameters:
Returns:
withProvider
public StaticSite withProvider(String provider)
Set the provider property: The provider that submitted the last deployment to the primary environment of the static site.
Parameters:
Returns:
withPublicNetworkAccess
public StaticSite 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:
Returns:
withRepositoryToken
public StaticSite 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:
Returns:
withRepositoryUrl
public StaticSite withRepositoryUrl(String repositoryUrl)
Set the repositoryUrl property: URL for the repository of the static site.
Parameters:
Returns:
withStagingEnvironmentPolicy
public StaticSite withStagingEnvironmentPolicy(StagingEnvironmentPolicy stagingEnvironmentPolicy)
Set the stagingEnvironmentPolicy property: State indicating whether staging environments are allowed or not allowed for a static web app.
Parameters:
Returns:
withTemplateProperties
public StaticSite withTemplateProperties(StaticSiteTemplateOptions templateProperties)
Set the templateProperties property: Template options for generating a new repository.
Parameters:
Returns: