GitHubActionConfiguration Class

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

Implements

public final class GitHubActionConfiguration
implements JsonSerializable<GitHubActionConfiguration>

The GitHub action configuration.

Constructor Summary

Constructor Description
GitHubActionConfiguration()

Creates an instance of GitHubActionConfiguration class.

Method Summary

Modifier and Type Method and Description
GitHubActionCodeConfiguration codeConfiguration()

Get the codeConfiguration property: GitHub Action code configuration.

GitHubActionContainerConfiguration containerConfiguration()

Get the containerConfiguration property: GitHub Action container configuration.

static GitHubActionConfiguration fromJson(JsonReader jsonReader)

Reads an instance of GitHubActionConfiguration from the JsonReader.

Boolean generateWorkflowFile()

Get the generateWorkflowFile property: Workflow option to determine whether the workflow file should be generated and written to the repository.

Boolean isLinux()

Get the isLinux property: This will help determine the workflow configuration to select.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

GitHubActionConfiguration withCodeConfiguration(GitHubActionCodeConfiguration codeConfiguration)

Set the codeConfiguration property: GitHub Action code configuration.

GitHubActionConfiguration withContainerConfiguration(GitHubActionContainerConfiguration containerConfiguration)

Set the containerConfiguration property: GitHub Action container configuration.

GitHubActionConfiguration withGenerateWorkflowFile(Boolean generateWorkflowFile)

Set the generateWorkflowFile property: Workflow option to determine whether the workflow file should be generated and written to the repository.

GitHubActionConfiguration withIsLinux(Boolean isLinux)

Set the isLinux property: This will help determine the workflow configuration to select.

Methods inherited from java.lang.Object

Constructor Details

GitHubActionConfiguration

public GitHubActionConfiguration()

Creates an instance of GitHubActionConfiguration class.

Method Details

codeConfiguration

public GitHubActionCodeConfiguration codeConfiguration()

Get the codeConfiguration property: GitHub Action code configuration.

Returns:

the codeConfiguration value.

containerConfiguration

public GitHubActionContainerConfiguration containerConfiguration()

Get the containerConfiguration property: GitHub Action container configuration.

Returns:

the containerConfiguration value.

fromJson

public static GitHubActionConfiguration fromJson(JsonReader jsonReader)

Reads an instance of GitHubActionConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of GitHubActionConfiguration 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 GitHubActionConfiguration.

generateWorkflowFile

public Boolean generateWorkflowFile()

Get the generateWorkflowFile property: Workflow option to determine whether the workflow file should be generated and written to the repository.

Returns:

the generateWorkflowFile value.

isLinux

public Boolean isLinux()

Get the isLinux property: This will help determine the workflow configuration to select.

Returns:

the isLinux value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCodeConfiguration

public GitHubActionConfiguration withCodeConfiguration(GitHubActionCodeConfiguration codeConfiguration)

Set the codeConfiguration property: GitHub Action code configuration.

Parameters:

codeConfiguration - the codeConfiguration value to set.

Returns:

the GitHubActionConfiguration object itself.

withContainerConfiguration

public GitHubActionConfiguration withContainerConfiguration(GitHubActionContainerConfiguration containerConfiguration)

Set the containerConfiguration property: GitHub Action container configuration.

Parameters:

containerConfiguration - the containerConfiguration value to set.

Returns:

the GitHubActionConfiguration object itself.

withGenerateWorkflowFile

public GitHubActionConfiguration withGenerateWorkflowFile(Boolean generateWorkflowFile)

Set the generateWorkflowFile property: Workflow option to determine whether the workflow file should be generated and written to the repository.

Parameters:

generateWorkflowFile - the generateWorkflowFile value to set.

Returns:

the GitHubActionConfiguration object itself.

withIsLinux

public GitHubActionConfiguration withIsLinux(Boolean isLinux)

Set the isLinux property: This will help determine the workflow configuration to select.

Parameters:

isLinux - the isLinux value to set.

Returns:

the GitHubActionConfiguration object itself.

Applies to