Class StaticSiteArmResourceInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.appservice.fluent.models.StaticSiteArmResourceInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class StaticSiteArmResourceInner
extends com.azure.core.management.Resource
Static Site ARM resource.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of StaticSiteArmResourceInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the allowConfigFileUpdates property: <code>false</code> if config file is locked for this static web app; otherwise, <code>true</code>.branch()
Get the branch property: The target branch in the repository.Get the buildProperties property: Build properties to configure on the repository.Get the contentDistributionEndpoint property: The content distribution endpoint for the static site.Get the customDomains property: The custom domains associated with this static site.Get the databaseConnections property: Database connections for the static site.Get the defaultHostname property: The default autogenerated hostname for the static site.Get the enterpriseGradeCdnStatus property: State indicating the status of the enterprise grade CDN serving traffic to the static web app.static StaticSiteArmResourceInner
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of StaticSiteArmResourceInner from the JsonReader.id()
Get the id property: Fully qualified resource Id for the resource.identity()
Get the identity property: Managed service identity.Get the keyVaultReferenceIdentity property: Identity to use for Key Vault Reference authentication.kind()
Get the kind property: Kind of resource.Get the linkedBackends property: Backends linked to the static side.name()
Get the name property: The name of the resource.Get the privateEndpointConnections property: Private endpoint connections.provider()
Get the provider property: The provider that submitted the last deployment to the primary environment of the static site.Get the publicNetworkAccess property: State indicating whether public traffic are allowed or not for a static web app.Get the repositoryToken property: A user's github repository token.Get the repositoryUrl property: URL for the repository of the static site.sku()
Get the sku property: Description of a SKU for a scalable resource.Get the stagingEnvironmentPolicy property: State indicating whether staging environments are allowed or not allowed for a static web app.Get the templateProperties property: Template options for generating a new repository.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) type()
Get the type property: The type of the resource.Get the userProvidedFunctionApps property: User provided function apps registered with the static site.void
validate()
Validates the instance.withAllowConfigFileUpdates
(Boolean allowConfigFileUpdates) Set the allowConfigFileUpdates property: <code>false</code> if config file is locked for this static web app; otherwise, <code>true</code>.withBranch
(String branch) Set the branch property: The target branch in the repository.withBuildProperties
(StaticSiteBuildProperties buildProperties) Set the buildProperties property: Build properties to configure on the repository.withEnterpriseGradeCdnStatus
(EnterpriseGradeCdnStatus enterpriseGradeCdnStatus) Set the enterpriseGradeCdnStatus property: State indicating the status of the enterprise grade CDN serving traffic to the static web app.withIdentity
(ManagedServiceIdentity identity) Set the identity property: Managed service identity.Set the kind property: Kind of resource.withLocation
(String location) withProvider
(String provider) Set the provider property: The provider that submitted the last deployment to the primary environment of the static site.withPublicNetworkAccess
(String publicNetworkAccess) Set the publicNetworkAccess property: State indicating whether public traffic are allowed or not for a static web app.withRepositoryToken
(String repositoryToken) Set the repositoryToken property: A user's github repository token.withRepositoryUrl
(String repositoryUrl) Set the repositoryUrl property: URL for the repository of the static site.withSku
(SkuDescription sku) Set the sku property: Description of a SKU for a scalable resource.withStagingEnvironmentPolicy
(StagingEnvironmentPolicy stagingEnvironmentPolicy) Set the stagingEnvironmentPolicy property: State indicating whether staging environments are allowed or not allowed for a static web app.withTemplateProperties
(StaticSiteTemplateOptions templateProperties) Set the templateProperties property: Template options for generating a new repository.Methods inherited from class com.azure.core.management.Resource
location, tags
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
StaticSiteArmResourceInner
public StaticSiteArmResourceInner()Creates an instance of StaticSiteArmResourceInner class.
-
-
Method Details
-
sku
Get the sku property: Description of a SKU for a scalable resource.- Returns:
- the sku value.
-
withSku
Set the sku property: Description of a SKU for a scalable resource.- Parameters:
sku
- the sku value to set.- Returns:
- the StaticSiteArmResourceInner object itself.
-
identity
Get the identity property: Managed service identity.- Returns:
- the identity value.
-
withIdentity
Set the identity property: Managed service identity.- Parameters:
identity
- the identity value to set.- Returns:
- the StaticSiteArmResourceInner object itself.
-
kind
Get the kind property: Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference for details supported values for kind.- Returns:
- the kind value.
-
withKind
Set the kind property: Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference for details supported values for kind.- Parameters:
kind
- the kind value to set.- Returns:
- the StaticSiteArmResourceInner object itself.
-
type
Get the type property: The type of the resource.- Overrides:
type
in classcom.azure.core.management.ProxyResource
- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
name
in classcom.azure.core.management.ProxyResource
- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
id
in classcom.azure.core.management.ProxyResource
- Returns:
- the id value.
-
withLocation
- Overrides:
withLocation
in classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTags
in classcom.azure.core.management.Resource
-
defaultHostname
Get the defaultHostname property: The default autogenerated hostname for the static site.- Returns:
- the defaultHostname value.
-
repositoryUrl
Get the repositoryUrl property: URL for the repository of the static site.- Returns:
- the repositoryUrl value.
-
withRepositoryUrl
Set the repositoryUrl property: URL for the repository of the static site.- Parameters:
repositoryUrl
- the repositoryUrl value to set.- Returns:
- the StaticSiteArmResourceInner object itself.
-
branch
Get the branch property: The target branch in the repository.- Returns:
- the branch value.
-
withBranch
Set the branch property: The target branch in the repository.- Parameters:
branch
- the branch value to set.- Returns:
- the StaticSiteArmResourceInner object itself.
-
customDomains
Get the customDomains property: The custom domains associated with this static site.- Returns:
- the customDomains value.
-
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.
-
withRepositoryToken
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.
-
buildProperties
Get the buildProperties property: Build properties to configure on the repository.- Returns:
- the buildProperties value.
-
withBuildProperties
Set the buildProperties property: Build properties to configure on the repository.- Parameters:
buildProperties
- the buildProperties value to set.- Returns:
- the StaticSiteArmResourceInner object itself.
-
privateEndpointConnections
Get the privateEndpointConnections property: Private endpoint connections.- Returns:
- the privateEndpointConnections value.
-
stagingEnvironmentPolicy
Get the stagingEnvironmentPolicy property: State indicating whether staging environments are allowed or not allowed for a static web app.- Returns:
- the stagingEnvironmentPolicy value.
-
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.
-
allowConfigFileUpdates
Get the allowConfigFileUpdates property: <code>false</code> if config file is locked for this static web app; otherwise, <code>true</code>.- Returns:
- the allowConfigFileUpdates value.
-
withAllowConfigFileUpdates
Set the allowConfigFileUpdates property: <code>false</code> if config file is locked for this static web app; otherwise, <code>true</code>.- Parameters:
allowConfigFileUpdates
- the allowConfigFileUpdates value to set.- Returns:
- the StaticSiteArmResourceInner object itself.
-
templateProperties
Get the templateProperties property: Template options for generating a new repository.- Returns:
- the templateProperties value.
-
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.
-
contentDistributionEndpoint
Get the contentDistributionEndpoint property: The content distribution endpoint for the static site.- Returns:
- the contentDistributionEndpoint value.
-
keyVaultReferenceIdentity
Get the keyVaultReferenceIdentity property: Identity to use for Key Vault Reference authentication.- Returns:
- the keyVaultReferenceIdentity value.
-
userProvidedFunctionApps
Get the userProvidedFunctionApps property: User provided function apps registered with the static site.- Returns:
- the userProvidedFunctionApps value.
-
linkedBackends
Get the linkedBackends property: Backends linked to the static side.- Returns:
- the linkedBackends value.
-
provider
Get the provider property: The provider that submitted the last deployment to the primary environment of the static site.- Returns:
- the provider value.
-
withProvider
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.
-
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.
-
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.
-
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.
-
withPublicNetworkAccess
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.
-
databaseConnections
Get the databaseConnections property: Database connections for the static site.- Returns:
- the databaseConnections value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
- Overrides:
toJson
in classcom.azure.core.management.Resource
- Throws:
IOException
-
fromJson
public static StaticSiteArmResourceInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the StaticSiteArmResourceInner.
-