Class StaticSiteBuildProperties
java.lang.Object
com.azure.resourcemanager.appservice.models.StaticSiteBuildProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<StaticSiteBuildProperties>
public final class StaticSiteBuildProperties
extends Object
implements com.azure.json.JsonSerializable<StaticSiteBuildProperties>
Build properties for the static site.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of StaticSiteBuildProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the apiBuildCommand property: A custom command to run during deployment of the Azure Functions API application.Get the apiLocation property: The path to the api code within the repository.Get the appArtifactLocation property: Deprecated: The path of the app artifacts after building (deprecated in favor of OutputLocation).Get the appBuildCommand property: A custom command to run during deployment of the static content application.Get the appLocation property: The path to the app code within the repository.static StaticSiteBuildPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of StaticSiteBuildProperties from the JsonReader.Get the githubActionSecretNameOverride property: Github Action secret name override.Get the outputLocation property: The output path of the app after building.Get the skipGithubActionWorkflowGeneration property: Skip Github Action workflow generation.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withApiBuildCommand(String apiBuildCommand) Set the apiBuildCommand property: A custom command to run during deployment of the Azure Functions API application.withApiLocation(String apiLocation) Set the apiLocation property: The path to the api code within the repository.withAppArtifactLocation(String appArtifactLocation) Set the appArtifactLocation property: Deprecated: The path of the app artifacts after building (deprecated in favor of OutputLocation).withAppBuildCommand(String appBuildCommand) Set the appBuildCommand property: A custom command to run during deployment of the static content application.withAppLocation(String appLocation) Set the appLocation property: The path to the app code within the repository.withGithubActionSecretNameOverride(String githubActionSecretNameOverride) Set the githubActionSecretNameOverride property: Github Action secret name override.withOutputLocation(String outputLocation) Set the outputLocation property: The output path of the app after building.withSkipGithubActionWorkflowGeneration(Boolean skipGithubActionWorkflowGeneration) Set the skipGithubActionWorkflowGeneration property: Skip Github Action workflow generation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
StaticSiteBuildProperties
public StaticSiteBuildProperties()Creates an instance of StaticSiteBuildProperties class.
-
-
Method Details
-
appLocation
Get the appLocation property: The path to the app code within the repository.- Returns:
- the appLocation value.
-
withAppLocation
Set the appLocation property: The path to the app code within the repository.- Parameters:
appLocation- the appLocation value to set.- Returns:
- the StaticSiteBuildProperties object itself.
-
apiLocation
Get the apiLocation property: The path to the api code within the repository.- Returns:
- the apiLocation value.
-
withApiLocation
Set the apiLocation property: The path to the api code within the repository.- Parameters:
apiLocation- the apiLocation value to set.- Returns:
- the StaticSiteBuildProperties object itself.
-
appArtifactLocation
Get the appArtifactLocation property: Deprecated: The path of the app artifacts after building (deprecated in favor of OutputLocation).- Returns:
- the appArtifactLocation value.
-
withAppArtifactLocation
Set the appArtifactLocation property: Deprecated: The path of the app artifacts after building (deprecated in favor of OutputLocation).- Parameters:
appArtifactLocation- the appArtifactLocation value to set.- Returns:
- the StaticSiteBuildProperties object itself.
-
outputLocation
Get the outputLocation property: The output path of the app after building.- Returns:
- the outputLocation value.
-
withOutputLocation
Set the outputLocation property: The output path of the app after building.- Parameters:
outputLocation- the outputLocation value to set.- Returns:
- the StaticSiteBuildProperties object itself.
-
appBuildCommand
Get the appBuildCommand property: A custom command to run during deployment of the static content application.- Returns:
- the appBuildCommand value.
-
withAppBuildCommand
Set the appBuildCommand property: A custom command to run during deployment of the static content application.- Parameters:
appBuildCommand- the appBuildCommand value to set.- Returns:
- the StaticSiteBuildProperties object itself.
-
apiBuildCommand
Get the apiBuildCommand property: A custom command to run during deployment of the Azure Functions API application.- Returns:
- the apiBuildCommand value.
-
withApiBuildCommand
Set the apiBuildCommand property: A custom command to run during deployment of the Azure Functions API application.- Parameters:
apiBuildCommand- the apiBuildCommand value to set.- Returns:
- the StaticSiteBuildProperties object itself.
-
skipGithubActionWorkflowGeneration
Get the skipGithubActionWorkflowGeneration property: Skip Github Action workflow generation.- Returns:
- the skipGithubActionWorkflowGeneration value.
-
withSkipGithubActionWorkflowGeneration
public StaticSiteBuildProperties withSkipGithubActionWorkflowGeneration(Boolean skipGithubActionWorkflowGeneration) Set the skipGithubActionWorkflowGeneration property: Skip Github Action workflow generation.- Parameters:
skipGithubActionWorkflowGeneration- the skipGithubActionWorkflowGeneration value to set.- Returns:
- the StaticSiteBuildProperties object itself.
-
githubActionSecretNameOverride
Get the githubActionSecretNameOverride property: Github Action secret name override.- Returns:
- the githubActionSecretNameOverride value.
-
withGithubActionSecretNameOverride
public StaticSiteBuildProperties withGithubActionSecretNameOverride(String githubActionSecretNameOverride) Set the githubActionSecretNameOverride property: Github Action secret name override.- Parameters:
githubActionSecretNameOverride- the githubActionSecretNameOverride value to set.- Returns:
- the StaticSiteBuildProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<StaticSiteBuildProperties>- Throws:
IOException
-
fromJson
public static StaticSiteBuildProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of StaticSiteBuildProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of StaticSiteBuildProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the StaticSiteBuildProperties.
-