Class GitHubActionCodeConfiguration
java.lang.Object
com.azure.resourcemanager.appservice.models.GitHubActionCodeConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GitHubActionCodeConfiguration>
public final class GitHubActionCodeConfiguration
extends Object
implements com.azure.json.JsonSerializable<GitHubActionCodeConfiguration>
The GitHub action code configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GitHubActionCodeConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of GitHubActionCodeConfiguration from the JsonReader.Get the runtimeStack property: Runtime stack is used to determine the workflow file content for code base apps.Get the runtimeVersion property: Runtime version is used to determine what build version to set in the workflow file.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withRuntimeStack
(String runtimeStack) Set the runtimeStack property: Runtime stack is used to determine the workflow file content for code base apps.withRuntimeVersion
(String runtimeVersion) Set the runtimeVersion property: Runtime version is used to determine what build version to set in the workflow file.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
-
GitHubActionCodeConfiguration
public GitHubActionCodeConfiguration()Creates an instance of GitHubActionCodeConfiguration class.
-
-
Method Details
-
runtimeStack
Get the runtimeStack property: Runtime stack is used to determine the workflow file content for code base apps.- Returns:
- the runtimeStack value.
-
withRuntimeStack
Set the runtimeStack property: Runtime stack is used to determine the workflow file content for code base apps.- Parameters:
runtimeStack
- the runtimeStack value to set.- Returns:
- the GitHubActionCodeConfiguration object itself.
-
runtimeVersion
Get the runtimeVersion property: Runtime version is used to determine what build version to set in the workflow file.- Returns:
- the runtimeVersion value.
-
withRuntimeVersion
Set the runtimeVersion property: Runtime version is used to determine what build version to set in the workflow file.- Parameters:
runtimeVersion
- the runtimeVersion value to set.- Returns:
- the GitHubActionCodeConfiguration object itself.
-
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<GitHubActionCodeConfiguration>
- Throws:
IOException
-
fromJson
public static GitHubActionCodeConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of GitHubActionCodeConfiguration from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of GitHubActionCodeConfiguration 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 GitHubActionCodeConfiguration.
-