Class StaticSiteArmResourceInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.core.management.Resource
-
- com.azure.resourcemanager.appservice.fluent.models.StaticSiteArmResourceInner
-
public final class StaticSiteArmResourceInner extends com.azure.core.management.ResourceStatic Site ARM resource.
-
-
Constructor Summary
Constructors Constructor Description StaticSiteArmResourceInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanallowConfigFileUpdates()Get the allowConfigFileUpdates property: <code>false</code> if config file is locked for this static web app; otherwise, <code>true</code>.Stringbranch()Get the branch property: The target branch in the repository.StaticSiteBuildPropertiesbuildProperties()Get the buildProperties property: Build properties to configure on the repository.StringcontentDistributionEndpoint()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.StringdefaultHostname()Get the defaultHostname property: The default autogenerated hostname for the static site.EnterpriseGradeCdnStatusenterpriseGradeCdnStatus()Get the enterpriseGradeCdnStatus property: State indicating the status of the enterprise grade CDN serving traffic to the static web app.ManagedServiceIdentityidentity()Get the identity property: Managed service identity.StringkeyVaultReferenceIdentity()Get the keyVaultReferenceIdentity property: Identity to use for Key Vault Reference authentication.Stringkind()Get the kind property: Kind of resource.List<ResponseMessageEnvelopeRemotePrivateEndpointConnection>privateEndpointConnections()Get the privateEndpointConnections property: Private endpoint connections.Stringprovider()Get the provider property: The provider that submitted the last deployment to the primary environment of the static site.StringrepositoryToken()Get the repositoryToken property: A user's github repository token.StringrepositoryUrl()Get the repositoryUrl property: URL for the repository of the static site.SkuDescriptionsku()Get the sku property: Description of a SKU for a scalable resource.StagingEnvironmentPolicystagingEnvironmentPolicy()Get the stagingEnvironmentPolicy property: State indicating whether staging environments are allowed or not allowed for a static web app.StaticSiteTemplateOptionstemplateProperties()Get the templateProperties property: Template options for generating a new repository.List<StaticSiteUserProvidedFunctionApp>userProvidedFunctionApps()Get the userProvidedFunctionApps property: User provided function apps registered with the static site.voidvalidate()Validates the instance.StaticSiteArmResourceInnerwithAllowConfigFileUpdates(Boolean allowConfigFileUpdates)Set the allowConfigFileUpdates property: <code>false</code> if config file is locked for this static web app; otherwise, <code>true</code>.StaticSiteArmResourceInnerwithBranch(String branch)Set the branch property: The target branch in the repository.StaticSiteArmResourceInnerwithBuildProperties(StaticSiteBuildProperties buildProperties)Set the buildProperties property: Build properties to configure on the repository.StaticSiteArmResourceInnerwithEnterpriseGradeCdnStatus(EnterpriseGradeCdnStatus enterpriseGradeCdnStatus)Set the enterpriseGradeCdnStatus property: State indicating the status of the enterprise grade CDN serving traffic to the static web app.StaticSiteArmResourceInnerwithIdentity(ManagedServiceIdentity identity)Set the identity property: Managed service identity.StaticSiteArmResourceInnerwithKind(String kind)Set the kind property: Kind of resource.StaticSiteArmResourceInnerwithLocation(String location)StaticSiteArmResourceInnerwithProvider(String provider)Set the provider property: The provider that submitted the last deployment to the primary environment of the static site.StaticSiteArmResourceInnerwithRepositoryToken(String repositoryToken)Set the repositoryToken property: A user's github repository token.StaticSiteArmResourceInnerwithRepositoryUrl(String repositoryUrl)Set the repositoryUrl property: URL for the repository of the static site.StaticSiteArmResourceInnerwithSku(SkuDescription sku)Set the sku property: Description of a SKU for a scalable resource.StaticSiteArmResourceInnerwithStagingEnvironmentPolicy(StagingEnvironmentPolicy stagingEnvironmentPolicy)Set the stagingEnvironmentPolicy property: State indicating whether staging environments are allowed or not allowed for a static web app.StaticSiteArmResourceInnerwithTags(Map<String,String> tags)StaticSiteArmResourceInnerwithTemplateProperties(StaticSiteTemplateOptions templateProperties)Set the templateProperties property: Template options for generating a new repository.
-
-
-
Method Detail
-
sku
public SkuDescription sku()
Get the sku property: Description of a SKU for a scalable resource.- Returns:
- the sku value.
-
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.
-
identity
public ManagedServiceIdentity identity()
Get the identity property: Managed service identity.- Returns:
- the identity value.
-
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.
-
kind
public String kind()
Get the kind property: Kind of resource.- Returns:
- the kind value.
-
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:
withLocationin classcom.azure.core.management.Resource
-
withTags
public StaticSiteArmResourceInner withTags(Map<String,String> tags)
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
defaultHostname
public String defaultHostname()
Get the defaultHostname property: The default autogenerated hostname for the static site.- Returns:
- the defaultHostname value.
-
repositoryUrl
public String repositoryUrl()
Get the repositoryUrl property: URL for the repository of the static site.- Returns:
- the repositoryUrl value.
-
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.
-
branch
public String branch()
Get the branch property: The target branch in the repository.- Returns:
- the branch value.
-
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.
-
customDomains
public List<String> customDomains()
Get the customDomains property: The custom domains associated with this static site.- Returns:
- the customDomains 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.
-
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.
-
buildProperties
public StaticSiteBuildProperties buildProperties()
Get the buildProperties property: Build properties to configure on the repository.- Returns:
- the buildProperties value.
-
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.
-
privateEndpointConnections
public List<ResponseMessageEnvelopeRemotePrivateEndpointConnection> privateEndpointConnections()
Get the privateEndpointConnections property: Private endpoint connections.- Returns:
- the privateEndpointConnections 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.
-
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
public Boolean 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
public StaticSiteArmResourceInner withAllowConfigFileUpdates(Boolean allowConfigFileUpdates)
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
public StaticSiteTemplateOptions 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
public String contentDistributionEndpoint()
Get the contentDistributionEndpoint property: The content distribution endpoint for the static site.- Returns:
- the contentDistributionEndpoint value.
-
keyVaultReferenceIdentity
public String keyVaultReferenceIdentity()
Get the keyVaultReferenceIdentity property: Identity to use for Key Vault Reference authentication.- Returns:
- the keyVaultReferenceIdentity value.
-
userProvidedFunctionApps
public List<StaticSiteUserProvidedFunctionApp> userProvidedFunctionApps()
Get the userProvidedFunctionApps property: User provided function apps registered with the static site.- Returns:
- the userProvidedFunctionApps 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.
-
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.
-
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.
-
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-