Class AcceleratorGitRepository
java.lang.Object
com.azure.resourcemanager.appplatform.models.AcceleratorGitRepository
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AcceleratorGitRepository>
public final class AcceleratorGitRepository
extends Object
implements com.azure.json.JsonSerializable<AcceleratorGitRepository>
The AcceleratorGitRepository model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AcceleratorGitRepository class. -
Method Summary
Modifier and TypeMethodDescriptionGet the authSetting property: Properties of the auth setting payload.branch()Get the branch property: Git repository branch to be used.commit()Get the commit property: Git repository commit to be used.static AcceleratorGitRepositoryfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AcceleratorGitRepository from the JsonReader.gitTag()Get the gitTag property: Git repository tag to be used.Get the intervalInSeconds property: Interval for checking for updates to Git or image repository.subPath()Get the subPath property: Folder path inside the git repository to consider as the root of the accelerator or fragment.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) url()Get the url property: Git repository URL for the accelerator.voidvalidate()Validates the instance.withAuthSetting(AcceleratorAuthSetting authSetting) Set the authSetting property: Properties of the auth setting payload.withBranch(String branch) Set the branch property: Git repository branch to be used.withCommit(String commit) Set the commit property: Git repository commit to be used.withGitTag(String gitTag) Set the gitTag property: Git repository tag to be used.withIntervalInSeconds(Integer intervalInSeconds) Set the intervalInSeconds property: Interval for checking for updates to Git or image repository.withSubPath(String subPath) Set the subPath property: Folder path inside the git repository to consider as the root of the accelerator or fragment.Set the url property: Git repository URL for the accelerator.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
-
AcceleratorGitRepository
public AcceleratorGitRepository()Creates an instance of AcceleratorGitRepository class.
-
-
Method Details
-
url
Get the url property: Git repository URL for the accelerator.- Returns:
- the url value.
-
withUrl
Set the url property: Git repository URL for the accelerator.- Parameters:
url- the url value to set.- Returns:
- the AcceleratorGitRepository object itself.
-
intervalInSeconds
Get the intervalInSeconds property: Interval for checking for updates to Git or image repository.- Returns:
- the intervalInSeconds value.
-
withIntervalInSeconds
Set the intervalInSeconds property: Interval for checking for updates to Git or image repository.- Parameters:
intervalInSeconds- the intervalInSeconds value to set.- Returns:
- the AcceleratorGitRepository object itself.
-
branch
Get the branch property: Git repository branch to be used.- Returns:
- the branch value.
-
withBranch
Set the branch property: Git repository branch to be used.- Parameters:
branch- the branch value to set.- Returns:
- the AcceleratorGitRepository object itself.
-
commit
Get the commit property: Git repository commit to be used.- Returns:
- the commit value.
-
withCommit
Set the commit property: Git repository commit to be used.- Parameters:
commit- the commit value to set.- Returns:
- the AcceleratorGitRepository object itself.
-
gitTag
Get the gitTag property: Git repository tag to be used.- Returns:
- the gitTag value.
-
withGitTag
Set the gitTag property: Git repository tag to be used.- Parameters:
gitTag- the gitTag value to set.- Returns:
- the AcceleratorGitRepository object itself.
-
authSetting
Get the authSetting property: Properties of the auth setting payload.- Returns:
- the authSetting value.
-
withAuthSetting
Set the authSetting property: Properties of the auth setting payload.- Parameters:
authSetting- the authSetting value to set.- Returns:
- the AcceleratorGitRepository object itself.
-
subPath
Get the subPath property: Folder path inside the git repository to consider as the root of the accelerator or fragment.- Returns:
- the subPath value.
-
withSubPath
Set the subPath property: Folder path inside the git repository to consider as the root of the accelerator or fragment.- Parameters:
subPath- the subPath value to set.- Returns:
- the AcceleratorGitRepository 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<AcceleratorGitRepository>- Throws:
IOException
-
fromJson
public static AcceleratorGitRepository fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AcceleratorGitRepository from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AcceleratorGitRepository 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 AcceleratorGitRepository.
-