Class SourceProperties
java.lang.Object
com.azure.resourcemanager.containerregistry.models.SourceProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SourceProperties>
public final class SourceProperties
extends Object
implements com.azure.json.JsonSerializable<SourceProperties>
The properties of the source code repository.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbranch()Get the branch property: The branch name of the source code.static SourcePropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SourceProperties from the JsonReader.Get the repositoryUrl property: The full URL to the source code repository.Get the sourceControlAuthProperties property: The authorization properties for accessing the source code repository and to set up webhooks for notifications.Get the sourceControlType property: The type of source control service.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withBranch(String branch) Set the branch property: The branch name of the source code.withRepositoryUrl(String repositoryUrl) Set the repositoryUrl property: The full URL to the source code repository.withSourceControlAuthProperties(AuthInfo sourceControlAuthProperties) Set the sourceControlAuthProperties property: The authorization properties for accessing the source code repository and to set up webhooks for notifications.withSourceControlType(SourceControlType sourceControlType) Set the sourceControlType property: The type of source control service.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SourceProperties
public SourceProperties()Creates an instance of SourceProperties class.
-
-
Method Details
-
sourceControlType
Get the sourceControlType property: The type of source control service.- Returns:
- the sourceControlType value.
-
withSourceControlType
Set the sourceControlType property: The type of source control service.- Parameters:
sourceControlType- the sourceControlType value to set.- Returns:
- the SourceProperties object itself.
-
repositoryUrl
Get the repositoryUrl property: The full URL to the source code repository.- Returns:
- the repositoryUrl value.
-
withRepositoryUrl
Set the repositoryUrl property: The full URL to the source code repository.- Parameters:
repositoryUrl- the repositoryUrl value to set.- Returns:
- the SourceProperties object itself.
-
branch
Get the branch property: The branch name of the source code.- Returns:
- the branch value.
-
withBranch
Set the branch property: The branch name of the source code.- Parameters:
branch- the branch value to set.- Returns:
- the SourceProperties object itself.
-
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
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SourceProperties>- Throws:
IOException
-
fromJson
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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the SourceProperties.
-