Compartilhar via


GitHubActionCodeConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.GitHubActionCodeConfiguration

Implements

public final class GitHubActionCodeConfiguration
implements JsonSerializable<GitHubActionCodeConfiguration>

The GitHub action code configuration.

Constructor Summary

Constructor Description
GitHubActionCodeConfiguration()

Creates an instance of GitHubActionCodeConfiguration class.

Method Summary

Modifier and Type Method and Description
static GitHubActionCodeConfiguration fromJson(JsonReader jsonReader)

Reads an instance of GitHubActionCodeConfiguration from the JsonReader.

String runtimeStack()

Get the runtimeStack property: Runtime stack is used to determine the workflow file content for code base apps.

String runtimeVersion()

Get the runtimeVersion property: Runtime version is used to determine what build version to set in the workflow file.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

GitHubActionCodeConfiguration withRuntimeStack(String runtimeStack)

Set the runtimeStack property: Runtime stack is used to determine the workflow file content for code base apps.

GitHubActionCodeConfiguration 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 java.lang.Object

Constructor Details

GitHubActionCodeConfiguration

public GitHubActionCodeConfiguration()

Creates an instance of GitHubActionCodeConfiguration class.

Method Details

fromJson

public static GitHubActionCodeConfiguration fromJson(JsonReader jsonReader)

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.

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.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

Applies to