Class GitHubActionConfiguration
java.lang.Object
com.azure.resourcemanager.appservice.models.GitHubActionConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GitHubActionConfiguration>
public final class GitHubActionConfiguration
extends Object
implements com.azure.json.JsonSerializable<GitHubActionConfiguration>
The GitHub action configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GitHubActionConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionGet the codeConfiguration property: GitHub Action code configuration.Get the containerConfiguration property: GitHub Action container configuration.static GitHubActionConfiguration
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of GitHubActionConfiguration from the JsonReader.Get the generateWorkflowFile property: Workflow option to determine whether the workflow file should be generated and written to the repository.isLinux()
Get the isLinux property: This will help determine the workflow configuration to select.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withCodeConfiguration
(GitHubActionCodeConfiguration codeConfiguration) Set the codeConfiguration property: GitHub Action code configuration.withContainerConfiguration
(GitHubActionContainerConfiguration containerConfiguration) Set the containerConfiguration property: GitHub Action container configuration.withGenerateWorkflowFile
(Boolean generateWorkflowFile) Set the generateWorkflowFile property: Workflow option to determine whether the workflow file should be generated and written to the repository.withIsLinux
(Boolean isLinux) Set the isLinux property: This will help determine the workflow configuration to select.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
-
GitHubActionConfiguration
public GitHubActionConfiguration()Creates an instance of GitHubActionConfiguration class.
-
-
Method Details
-
codeConfiguration
Get the codeConfiguration property: GitHub Action code configuration.- Returns:
- the codeConfiguration value.
-
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.
-
containerConfiguration
Get the containerConfiguration property: GitHub Action container configuration.- Returns:
- the containerConfiguration value.
-
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.
-
isLinux
Get the isLinux property: This will help determine the workflow configuration to select.- Returns:
- the isLinux value.
-
withIsLinux
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.
-
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.
-
withGenerateWorkflowFile
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.
-
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<GitHubActionConfiguration>
- Throws:
IOException
-
fromJson
public static GitHubActionConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-