Freigeben über


ConfigServerGitProperty Class

  • java.lang.Object
    • com.azure.resourcemanager.appplatform.models.ConfigServerGitProperty

Implements

public final class ConfigServerGitProperty
implements JsonSerializable<ConfigServerGitProperty>

Property of git.

Constructor Summary

Constructor Description
ConfigServerGitProperty()

Creates an instance of ConfigServerGitProperty class.

Method Summary

Modifier and Type Method and Description
static ConfigServerGitProperty fromJson(JsonReader jsonReader)

Reads an instance of ConfigServerGitProperty from the JsonReader.

String hostKey()

Get the hostKey property: Public sshKey of git repository.

String hostKeyAlgorithm()

Get the hostKeyAlgorithm property: SshKey algorithm of git repository.

String label()

Get the label property: Label of the repository.

String password()

Get the password property: Password of git repository basic auth.

String privateKey()

Get the privateKey property: Private sshKey algorithm of git repository.

List<GitPatternRepository> repositories()

Get the repositories property: Repositories of git.

List<String> searchPaths()

Get the searchPaths property: Searching path of the repository.

Boolean strictHostKeyChecking()

Get the strictHostKeyChecking property: Strict host key checking or not.

JsonWriter toJson(JsonWriter jsonWriter)
String uri()

Get the uri property: URI of the repository.

String username()

Get the username property: Username of git repository basic auth.

void validate()

Validates the instance.

ConfigServerGitProperty withHostKey(String hostKey)

Set the hostKey property: Public sshKey of git repository.

ConfigServerGitProperty withHostKeyAlgorithm(String hostKeyAlgorithm)

Set the hostKeyAlgorithm property: SshKey algorithm of git repository.

ConfigServerGitProperty withLabel(String label)

Set the label property: Label of the repository.

ConfigServerGitProperty withPassword(String password)

Set the password property: Password of git repository basic auth.

ConfigServerGitProperty withPrivateKey(String privateKey)

Set the privateKey property: Private sshKey algorithm of git repository.

ConfigServerGitProperty withRepositories(List<GitPatternRepository> repositories)

Set the repositories property: Repositories of git.

ConfigServerGitProperty withSearchPaths(List<String> searchPaths)

Set the searchPaths property: Searching path of the repository.

ConfigServerGitProperty withStrictHostKeyChecking(Boolean strictHostKeyChecking)

Set the strictHostKeyChecking property: Strict host key checking or not.

ConfigServerGitProperty withUri(String uri)

Set the uri property: URI of the repository.

ConfigServerGitProperty withUsername(String username)

Set the username property: Username of git repository basic auth.

Methods inherited from java.lang.Object

Constructor Details

ConfigServerGitProperty

public ConfigServerGitProperty()

Creates an instance of ConfigServerGitProperty class.

Method Details

fromJson

public static ConfigServerGitProperty fromJson(JsonReader jsonReader)

Reads an instance of ConfigServerGitProperty from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ConfigServerGitProperty if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

hostKey

public String hostKey()

Get the hostKey property: Public sshKey of git repository.

Returns:

the hostKey value.

hostKeyAlgorithm

public String hostKeyAlgorithm()

Get the hostKeyAlgorithm property: SshKey algorithm of git repository.

Returns:

the hostKeyAlgorithm value.

label

public String label()

Get the label property: Label of the repository.

Returns:

the label value.

password

public String password()

Get the password property: Password of git repository basic auth.

Returns:

the password value.

privateKey

public String privateKey()

Get the privateKey property: Private sshKey algorithm of git repository.

Returns:

the privateKey value.

repositories

public List repositories()

Get the repositories property: Repositories of git.

Returns:

the repositories value.

searchPaths

public List searchPaths()

Get the searchPaths property: Searching path of the repository.

Returns:

the searchPaths value.

strictHostKeyChecking

public Boolean strictHostKeyChecking()

Get the strictHostKeyChecking property: Strict host key checking or not.

Returns:

the strictHostKeyChecking value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

uri

public String uri()

Get the uri property: URI of the repository.

Returns:

the uri value.

username

public String username()

Get the username property: Username of git repository basic auth.

Returns:

the username value.

validate

public void validate()

Validates the instance.

withHostKey

public ConfigServerGitProperty withHostKey(String hostKey)

Set the hostKey property: Public sshKey of git repository.

Parameters:

hostKey - the hostKey value to set.

Returns:

the ConfigServerGitProperty object itself.

withHostKeyAlgorithm

public ConfigServerGitProperty withHostKeyAlgorithm(String hostKeyAlgorithm)

Set the hostKeyAlgorithm property: SshKey algorithm of git repository.

Parameters:

hostKeyAlgorithm - the hostKeyAlgorithm value to set.

Returns:

the ConfigServerGitProperty object itself.

withLabel

public ConfigServerGitProperty withLabel(String label)

Set the label property: Label of the repository.

Parameters:

label - the label value to set.

Returns:

the ConfigServerGitProperty object itself.

withPassword

public ConfigServerGitProperty withPassword(String password)

Set the password property: Password of git repository basic auth.

Parameters:

password - the password value to set.

Returns:

the ConfigServerGitProperty object itself.

withPrivateKey

public ConfigServerGitProperty withPrivateKey(String privateKey)

Set the privateKey property: Private sshKey algorithm of git repository.

Parameters:

privateKey - the privateKey value to set.

Returns:

the ConfigServerGitProperty object itself.

withRepositories

public ConfigServerGitProperty withRepositories(List repositories)

Set the repositories property: Repositories of git.

Parameters:

repositories - the repositories value to set.

Returns:

the ConfigServerGitProperty object itself.

withSearchPaths

public ConfigServerGitProperty withSearchPaths(List searchPaths)

Set the searchPaths property: Searching path of the repository.

Parameters:

searchPaths - the searchPaths value to set.

Returns:

the ConfigServerGitProperty object itself.

withStrictHostKeyChecking

public ConfigServerGitProperty withStrictHostKeyChecking(Boolean strictHostKeyChecking)

Set the strictHostKeyChecking property: Strict host key checking or not.

Parameters:

strictHostKeyChecking - the strictHostKeyChecking value to set.

Returns:

the ConfigServerGitProperty object itself.

withUri

public ConfigServerGitProperty withUri(String uri)

Set the uri property: URI of the repository.

Parameters:

uri - the uri value to set.

Returns:

the ConfigServerGitProperty object itself.

withUsername

public ConfigServerGitProperty withUsername(String username)

Set the username property: Username of git repository basic auth.

Parameters:

username - the username value to set.

Returns:

the ConfigServerGitProperty object itself.

Applies to