SourceProperties Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. SourceProperties
- com.
Implements
public final class SourceProperties
implements JsonSerializable<SourceProperties>
The properties of the source code repository.
Constructor Summary
Constructor | Description |
---|---|
SourceProperties() |
Creates an instance of Source |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
branch()
Get the branch property: The branch name of the source code. |
static
Source |
fromJson(JsonReader jsonReader)
Reads an instance of Source |
String |
repositoryUrl()
Get the repository |
Auth |
sourceControlAuthProperties()
Get the source |
Source |
sourceControlType()
Get the source |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Source |
withBranch(String branch)
Set the branch property: The branch name of the source code. |
Source |
withRepositoryUrl(String repositoryUrl)
Set the repository |
Source |
withSourceControlAuthProperties(AuthInfo sourceControlAuthProperties)
Set the source |
Source |
withSourceControlType(SourceControlType sourceControlType)
Set the source |
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:
fromJson
public static SourceProperties fromJson(JsonReader jsonReader)
Reads an instance of SourceProperties from the JsonReader.
Parameters:
Returns:
Throws:
repositoryUrl
public String repositoryUrl()
Get the repositoryUrl property: The full URL to the source code repository.
Returns:
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:
sourceControlType
public SourceControlType sourceControlType()
Get the sourceControlType property: The type of source control service.
Returns:
toJson
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:
Returns:
withRepositoryUrl
public SourceProperties withRepositoryUrl(String repositoryUrl)
Set the repositoryUrl property: The full URL to the source code repository.
Parameters:
Returns:
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:
Returns:
withSourceControlType
public SourceProperties withSourceControlType(SourceControlType sourceControlType)
Set the sourceControlType property: The type of source control service.
Parameters:
Returns:
Applies to
Azure SDK for Java