Class GithubActionConfiguration
java.lang.Object
com.azure.resourcemanager.appcontainers.models.GithubActionConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GithubActionConfiguration>
public final class GithubActionConfiguration
extends Object
implements com.azure.json.JsonSerializable<GithubActionConfiguration>
Configuration properties that define the mutable settings of a Container App SourceControl.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GithubActionConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionGet the azureCredentials property: AzureCredentials configurations.Get the contextPath property: Context path.static GithubActionConfigurationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of GithubActionConfiguration from the JsonReader.Get the githubPersonalAccessToken property: One time Github PAT to configure github environment.image()Get the image property: Image name.os()Get the os property: Operation system.Get the publishType property: Code or Image.Get the registryInfo property: Registry configurations.Get the runtimeStack property: Runtime stack.Get the runtimeVersion property: Runtime version.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAzureCredentials(AzureCredentials azureCredentials) Set the azureCredentials property: AzureCredentials configurations.withContextPath(String contextPath) Set the contextPath property: Context path.withGithubPersonalAccessToken(String githubPersonalAccessToken) Set the githubPersonalAccessToken property: One time Github PAT to configure github environment.Set the image property: Image name.Set the os property: Operation system.withPublishType(String publishType) Set the publishType property: Code or Image.withRegistryInfo(RegistryInfo registryInfo) Set the registryInfo property: Registry configurations.withRuntimeStack(String runtimeStack) Set the runtimeStack property: Runtime stack.withRuntimeVersion(String runtimeVersion) Set the runtimeVersion property: Runtime version.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
GithubActionConfiguration
public GithubActionConfiguration()Creates an instance of GithubActionConfiguration class.
-
-
Method Details
-
registryInfo
Get the registryInfo property: Registry configurations.- Returns:
- the registryInfo value.
-
withRegistryInfo
Set the registryInfo property: Registry configurations.- Parameters:
registryInfo- the registryInfo value to set.- Returns:
- the GithubActionConfiguration object itself.
-
azureCredentials
Get the azureCredentials property: AzureCredentials configurations.- Returns:
- the azureCredentials value.
-
withAzureCredentials
Set the azureCredentials property: AzureCredentials configurations.- Parameters:
azureCredentials- the azureCredentials value to set.- Returns:
- the GithubActionConfiguration object itself.
-
contextPath
Get the contextPath property: Context path.- Returns:
- the contextPath value.
-
withContextPath
Set the contextPath property: Context path.- Parameters:
contextPath- the contextPath value to set.- Returns:
- the GithubActionConfiguration object itself.
-
githubPersonalAccessToken
Get the githubPersonalAccessToken property: One time Github PAT to configure github environment.- Returns:
- the githubPersonalAccessToken value.
-
withGithubPersonalAccessToken
Set the githubPersonalAccessToken property: One time Github PAT to configure github environment.- Parameters:
githubPersonalAccessToken- the githubPersonalAccessToken value to set.- Returns:
- the GithubActionConfiguration object itself.
-
image
Get the image property: Image name.- Returns:
- the image value.
-
withImage
Set the image property: Image name.- Parameters:
image- the image value to set.- Returns:
- the GithubActionConfiguration object itself.
-
publishType
Get the publishType property: Code or Image.- Returns:
- the publishType value.
-
withPublishType
Set the publishType property: Code or Image.- Parameters:
publishType- the publishType value to set.- Returns:
- the GithubActionConfiguration object itself.
-
os
Get the os property: Operation system.- Returns:
- the os value.
-
withOs
Set the os property: Operation system.- Parameters:
os- the os value to set.- Returns:
- the GithubActionConfiguration object itself.
-
runtimeStack
Get the runtimeStack property: Runtime stack.- Returns:
- the runtimeStack value.
-
withRuntimeStack
Set the runtimeStack property: Runtime stack.- Parameters:
runtimeStack- the runtimeStack value to set.- Returns:
- the GithubActionConfiguration object itself.
-
runtimeVersion
Get the runtimeVersion property: Runtime version.- Returns:
- the runtimeVersion value.
-
withRuntimeVersion
Set the runtimeVersion property: Runtime version.- Parameters:
runtimeVersion- the runtimeVersion 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:
toJsonin 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.
-