SourceProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.containerregistry.models.SourceProperties

Implements

public final class SourceProperties
implements JsonSerializable<SourceProperties>

The properties of the source code repository.

Constructor Summary

Constructor Description
SourceProperties()

Creates an instance of SourceProperties class.

Method Summary

Modifier and Type Method and Description
String branch()

Get the branch property: The branch name of the source code.

static SourceProperties fromJson(JsonReader jsonReader)

Reads an instance of SourceProperties from the JsonReader.

String repositoryUrl()

Get the repositoryUrl property: The full URL to the source code repository.

AuthInfo sourceControlAuthProperties()

Get the sourceControlAuthProperties property: The authorization properties for accessing the source code repository and to set up webhooks for notifications.

SourceControlType sourceControlType()

Get the sourceControlType property: The type of source control service.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SourceProperties withBranch(String branch)

Set the branch property: The branch name of the source code.

SourceProperties withRepositoryUrl(String repositoryUrl)

Set the repositoryUrl property: The full URL to the source code repository.

SourceProperties withSourceControlAuthProperties(AuthInfo sourceControlAuthProperties)

Set the sourceControlAuthProperties property: The authorization properties for accessing the source code repository and to set up webhooks for notifications.

SourceProperties withSourceControlType(SourceControlType sourceControlType)

Set the sourceControlType property: The type of source control service.

Methods inherited from java.lang.Object

Constructor Details

SourceProperties

public SourceProperties()

Creates an instance of SourceProperties class.

Method Details

branch

public String branch()

Get the branch property: The branch name of the source code.

Returns:

the branch value.

fromJson

public static SourceProperties fromJson(JsonReader jsonReader)

Reads an instance of SourceProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SourceProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

repositoryUrl

public String repositoryUrl()

Get the repositoryUrl property: The full URL to the source code repository.

Returns:

the repositoryUrl value.

sourceControlAuthProperties

public AuthInfo sourceControlAuthProperties()

Get the sourceControlAuthProperties property: The authorization properties for accessing the source code repository and to set up webhooks for notifications.

Returns:

the sourceControlAuthProperties value.

sourceControlType

public SourceControlType sourceControlType()

Get the sourceControlType property: The type of source control service.

Returns:

the sourceControlType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withBranch

public SourceProperties withBranch(String branch)

Set the branch property: The branch name of the source code.

Parameters:

branch - the branch value to set.

Returns:

the SourceProperties object itself.

withRepositoryUrl

public SourceProperties withRepositoryUrl(String repositoryUrl)

Set the repositoryUrl property: The full URL to the source code repository.

Parameters:

repositoryUrl - the repositoryUrl value to set.

Returns:

the SourceProperties object itself.

withSourceControlAuthProperties

public SourceProperties withSourceControlAuthProperties(AuthInfo sourceControlAuthProperties)

Set the sourceControlAuthProperties property: The authorization properties for accessing the source code repository and to set up webhooks for notifications.

Parameters:

sourceControlAuthProperties - the sourceControlAuthProperties value to set.

Returns:

the SourceProperties object itself.

withSourceControlType

public SourceProperties withSourceControlType(SourceControlType sourceControlType)

Set the sourceControlType property: The type of source control service.

Parameters:

sourceControlType - the sourceControlType value to set.

Returns:

the SourceProperties object itself.

Applies to