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 Details

    • GitHubActionCodeConfiguration

      public GitHubActionCodeConfiguration()
      Creates an instance of GitHubActionCodeConfiguration class.
  • Method Details

    • runtimeStack

      public String runtimeStack()
      Get the runtimeStack property: Runtime stack is used to determine the workflow file content for code base apps.
      Returns:
      the runtimeStack value.
    • withRuntimeStack

      public GitHubActionCodeConfiguration withRuntimeStack(String runtimeStack)
      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

      public String 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

      public GitHubActionCodeConfiguration withRuntimeVersion(String runtimeVersion)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.