Class GitHubActionContainerConfiguration
java.lang.Object
com.azure.resourcemanager.appservice.models.GitHubActionContainerConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GitHubActionContainerConfiguration>
public final class GitHubActionContainerConfiguration
extends Object
implements com.azure.json.JsonSerializable<GitHubActionContainerConfiguration>
The GitHub action container configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GitHubActionContainerConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of GitHubActionContainerConfiguration from the JsonReader.Get the imageName property: The image name for the build.password()
Get the password property: The password used to upload the image to the container registry.Get the serverUrl property: The server URL for the container registry where the build will be hosted.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) username()
Get the username property: The username used to upload the image to the container registry.void
validate()
Validates the instance.withImageName
(String imageName) Set the imageName property: The image name for the build.withPassword
(String password) Set the password property: The password used to upload the image to the container registry.withServerUrl
(String serverUrl) Set the serverUrl property: The server URL for the container registry where the build will be hosted.withUsername
(String username) Set the username property: The username used to upload the image to the container registry.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
-
GitHubActionContainerConfiguration
public GitHubActionContainerConfiguration()Creates an instance of GitHubActionContainerConfiguration class.
-
-
Method Details
-
serverUrl
Get the serverUrl property: The server URL for the container registry where the build will be hosted.- Returns:
- the serverUrl value.
-
withServerUrl
Set the serverUrl property: The server URL for the container registry where the build will be hosted.- Parameters:
serverUrl
- the serverUrl value to set.- Returns:
- the GitHubActionContainerConfiguration object itself.
-
imageName
Get the imageName property: The image name for the build.- Returns:
- the imageName value.
-
withImageName
Set the imageName property: The image name for the build.- Parameters:
imageName
- the imageName value to set.- Returns:
- the GitHubActionContainerConfiguration object itself.
-
username
Get the username property: The username used to upload the image to the container registry.- Returns:
- the username value.
-
withUsername
Set the username property: The username used to upload the image to the container registry.- Parameters:
username
- the username value to set.- Returns:
- the GitHubActionContainerConfiguration object itself.
-
password
Get the password property: The password used to upload the image to the container registry.- Returns:
- the password value.
-
withPassword
Set the password property: The password used to upload the image to the container registry.- Parameters:
password
- the password value to set.- Returns:
- the GitHubActionContainerConfiguration 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<GitHubActionContainerConfiguration>
- Throws:
IOException
-
fromJson
public static GitHubActionContainerConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of GitHubActionContainerConfiguration from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of GitHubActionContainerConfiguration 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 GitHubActionContainerConfiguration.
-