Class SourceUpdateParameters
- java.lang.Object
-
- com.azure.resourcemanager.containerregistry.models.SourceUpdateParameters
-
public final class SourceUpdateParameters extends Object
The properties for updating the source code repository.
-
-
Constructor Summary
Constructors Constructor Description SourceUpdateParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringbranch()Get the branch property: The branch name of the source code.StringrepositoryUrl()Get the repositoryUrl property: The full URL to the source code repository.AuthInfoUpdateParameterssourceControlAuthProperties()Get the sourceControlAuthProperties property: The authorization properties for accessing the source code repository and to set up webhooks for notifications.SourceControlTypesourceControlType()Get the sourceControlType property: The type of source control service.voidvalidate()Validates the instance.SourceUpdateParameterswithBranch(String branch)Set the branch property: The branch name of the source code.SourceUpdateParameterswithRepositoryUrl(String repositoryUrl)Set the repositoryUrl property: The full URL to the source code repository.SourceUpdateParameterswithSourceControlAuthProperties(AuthInfoUpdateParameters sourceControlAuthProperties)Set the sourceControlAuthProperties property: The authorization properties for accessing the source code repository and to set up webhooks for notifications.SourceUpdateParameterswithSourceControlType(SourceControlType sourceControlType)Set the sourceControlType property: The type of source control service.
-
-
-
Method Detail
-
sourceControlType
public SourceControlType sourceControlType()
Get the sourceControlType property: The type of source control service.- Returns:
- the sourceControlType value.
-
withSourceControlType
public SourceUpdateParameters withSourceControlType(SourceControlType sourceControlType)
Set the sourceControlType property: The type of source control service.- Parameters:
sourceControlType- the sourceControlType value to set.- Returns:
- the SourceUpdateParameters object itself.
-
repositoryUrl
public String repositoryUrl()
Get the repositoryUrl property: The full URL to the source code repository.- Returns:
- the repositoryUrl value.
-
withRepositoryUrl
public SourceUpdateParameters withRepositoryUrl(String repositoryUrl)
Set the repositoryUrl property: The full URL to the source code repository.- Parameters:
repositoryUrl- the repositoryUrl value to set.- Returns:
- the SourceUpdateParameters object itself.
-
branch
public String branch()
Get the branch property: The branch name of the source code.- Returns:
- the branch value.
-
withBranch
public SourceUpdateParameters withBranch(String branch)
Set the branch property: The branch name of the source code.- Parameters:
branch- the branch value to set.- Returns:
- the SourceUpdateParameters object itself.
-
sourceControlAuthProperties
public AuthInfoUpdateParameters 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.
-
withSourceControlAuthProperties
public SourceUpdateParameters withSourceControlAuthProperties(AuthInfoUpdateParameters 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 SourceUpdateParameters object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-