Class ConfigurationServiceGitRepository
java.lang.Object
com.azure.resourcemanager.appplatform.models.ConfigurationServiceGitRepository
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ConfigurationServiceGitRepository>
public final class ConfigurationServiceGitRepository
extends Object
implements com.azure.json.JsonSerializable<ConfigurationServiceGitRepository>
Git repository property payload for Application Configuration Service.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ConfigurationServiceGitRepository class. -
Method Summary
Modifier and TypeMethodDescriptionGet the caCertResourceId property: Resource Id of CA certificate for https URL of Git repository.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ConfigurationServiceGitRepository from the JsonReader.Get the gitImplementation property: Git libraries used to support various repository providers.hostKey()Get the hostKey property: Public sshKey of git repository.Get the hostKeyAlgorithm property: SshKey algorithm of git repository.label()Get the label property: Label of the repository.name()Get the name property: Name of the repository.password()Get the password property: Password of git repository basic auth.patterns()Get the patterns property: Collection of patterns of the repository.Get the privateKey property: Private sshKey algorithm of git repository.Get the searchPaths property: Searching path of the repository.Get the strictHostKeyChecking property: Strict host key checking or not.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) uri()Get the uri property: URI of the repository.username()Get the username property: Username of git repository basic auth.voidvalidate()Validates the instance.withCaCertResourceId(String caCertResourceId) Set the caCertResourceId property: Resource Id of CA certificate for https URL of Git repository.withGitImplementation(GitImplementation gitImplementation) Set the gitImplementation property: Git libraries used to support various repository providers.withHostKey(String hostKey) Set the hostKey property: Public sshKey of git repository.withHostKeyAlgorithm(String hostKeyAlgorithm) Set the hostKeyAlgorithm property: SshKey algorithm of git repository.Set the label property: Label of the repository.Set the name property: Name of the repository.withPassword(String password) Set the password property: Password of git repository basic auth.withPatterns(List<String> patterns) Set the patterns property: Collection of patterns of the repository.withPrivateKey(String privateKey) Set the privateKey property: Private sshKey algorithm of git repository.withSearchPaths(List<String> searchPaths) Set the searchPaths property: Searching path of the repository.withStrictHostKeyChecking(Boolean strictHostKeyChecking) Set the strictHostKeyChecking property: Strict host key checking or not.Set the uri property: URI of the repository.withUsername(String username) Set the username property: Username of git repository basic auth.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
-
ConfigurationServiceGitRepository
public ConfigurationServiceGitRepository()Creates an instance of ConfigurationServiceGitRepository class.
-
-
Method Details
-
name
Get the name property: Name of the repository.- Returns:
- the name value.
-
withName
Set the name property: Name of the repository.- Parameters:
name- the name value to set.- Returns:
- the ConfigurationServiceGitRepository object itself.
-
patterns
Get the patterns property: Collection of patterns of the repository.- Returns:
- the patterns value.
-
withPatterns
Set the patterns property: Collection of patterns of the repository.- Parameters:
patterns- the patterns value to set.- Returns:
- the ConfigurationServiceGitRepository object itself.
-
uri
Get the uri property: URI of the repository.- Returns:
- the uri value.
-
withUri
Set the uri property: URI of the repository.- Parameters:
uri- the uri value to set.- Returns:
- the ConfigurationServiceGitRepository object itself.
-
label
Get the label property: Label of the repository.- Returns:
- the label value.
-
withLabel
Set the label property: Label of the repository.- Parameters:
label- the label value to set.- Returns:
- the ConfigurationServiceGitRepository object itself.
-
searchPaths
Get the searchPaths property: Searching path of the repository.- Returns:
- the searchPaths value.
-
withSearchPaths
Set the searchPaths property: Searching path of the repository.- Parameters:
searchPaths- the searchPaths value to set.- Returns:
- the ConfigurationServiceGitRepository object itself.
-
username
Get the username property: Username of git repository basic auth.- Returns:
- the username value.
-
withUsername
Set the username property: Username of git repository basic auth.- Parameters:
username- the username value to set.- Returns:
- the ConfigurationServiceGitRepository object itself.
-
password
Get the password property: Password of git repository basic auth.- Returns:
- the password value.
-
withPassword
Set the password property: Password of git repository basic auth.- Parameters:
password- the password value to set.- Returns:
- the ConfigurationServiceGitRepository object itself.
-
hostKey
Get the hostKey property: Public sshKey of git repository.- Returns:
- the hostKey value.
-
withHostKey
Set the hostKey property: Public sshKey of git repository.- Parameters:
hostKey- the hostKey value to set.- Returns:
- the ConfigurationServiceGitRepository object itself.
-
hostKeyAlgorithm
Get the hostKeyAlgorithm property: SshKey algorithm of git repository.- Returns:
- the hostKeyAlgorithm value.
-
withHostKeyAlgorithm
Set the hostKeyAlgorithm property: SshKey algorithm of git repository.- Parameters:
hostKeyAlgorithm- the hostKeyAlgorithm value to set.- Returns:
- the ConfigurationServiceGitRepository object itself.
-
privateKey
Get the privateKey property: Private sshKey algorithm of git repository.- Returns:
- the privateKey value.
-
withPrivateKey
Set the privateKey property: Private sshKey algorithm of git repository.- Parameters:
privateKey- the privateKey value to set.- Returns:
- the ConfigurationServiceGitRepository object itself.
-
strictHostKeyChecking
Get the strictHostKeyChecking property: Strict host key checking or not.- Returns:
- the strictHostKeyChecking value.
-
withStrictHostKeyChecking
Set the strictHostKeyChecking property: Strict host key checking or not.- Parameters:
strictHostKeyChecking- the strictHostKeyChecking value to set.- Returns:
- the ConfigurationServiceGitRepository object itself.
-
gitImplementation
Get the gitImplementation property: Git libraries used to support various repository providers.- Returns:
- the gitImplementation value.
-
withGitImplementation
Set the gitImplementation property: Git libraries used to support various repository providers.- Parameters:
gitImplementation- the gitImplementation value to set.- Returns:
- the ConfigurationServiceGitRepository object itself.
-
caCertResourceId
Get the caCertResourceId property: Resource Id of CA certificate for https URL of Git repository.- Returns:
- the caCertResourceId value.
-
withCaCertResourceId
Set the caCertResourceId property: Resource Id of CA certificate for https URL of Git repository.- Parameters:
caCertResourceId- the caCertResourceId value to set.- Returns:
- the ConfigurationServiceGitRepository 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<ConfigurationServiceGitRepository>- Throws:
IOException
-
fromJson
public static ConfigurationServiceGitRepository fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ConfigurationServiceGitRepository from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ConfigurationServiceGitRepository 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 ConfigurationServiceGitRepository.
-