Compartir a través de


GitHubActionContainerConfiguration Class

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

Implements

public final class GitHubActionContainerConfiguration
implements JsonSerializable<GitHubActionContainerConfiguration>

The GitHub action container configuration.

Constructor Summary

Constructor Description
GitHubActionContainerConfiguration()

Creates an instance of GitHubActionContainerConfiguration class.

Method Summary

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

Reads an instance of GitHubActionContainerConfiguration from the JsonReader.

String imageName()

Get the imageName property: The image name for the build.

String password()

Get the password property: The password used to upload the image to the container registry.

String serverUrl()

Get the serverUrl property: The server URL for the container registry where the build will be hosted.

JsonWriter toJson(JsonWriter jsonWriter)
String username()

Get the username property: The username used to upload the image to the container registry.

void validate()

Validates the instance.

GitHubActionContainerConfiguration withImageName(String imageName)

Set the imageName property: The image name for the build.

GitHubActionContainerConfiguration withPassword(String password)

Set the password property: The password used to upload the image to the container registry.

GitHubActionContainerConfiguration withServerUrl(String serverUrl)

Set the serverUrl property: The server URL for the container registry where the build will be hosted.

GitHubActionContainerConfiguration withUsername(String username)

Set the username property: The username used to upload the image to the container registry.

Methods inherited from java.lang.Object

Constructor Details

GitHubActionContainerConfiguration

public GitHubActionContainerConfiguration()

Creates an instance of GitHubActionContainerConfiguration class.

Method Details

fromJson

public static GitHubActionContainerConfiguration fromJson(JsonReader jsonReader)

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.

imageName

public String imageName()

Get the imageName property: The image name for the build.

Returns:

the imageName value.

password

public String password()

Get the password property: The password used to upload the image to the container registry.

Returns:

the password value.

serverUrl

public String serverUrl()

Get the serverUrl property: The server URL for the container registry where the build will be hosted.

Returns:

the serverUrl value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

username

public String username()

Get the username property: The username used to upload the image to the container registry.

Returns:

the username value.

validate

public void validate()

Validates the instance.

withImageName

public GitHubActionContainerConfiguration withImageName(String imageName)

Set the imageName property: The image name for the build.

Parameters:

imageName - the imageName value to set.

Returns:

the GitHubActionContainerConfiguration object itself.

withPassword

public GitHubActionContainerConfiguration withPassword(String password)

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.

withServerUrl

public GitHubActionContainerConfiguration withServerUrl(String serverUrl)

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.

withUsername

public GitHubActionContainerConfiguration withUsername(String username)

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.

Applies to