Freigeben über


GitPatternRepository Class

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

Implements

public final class GitPatternRepository
implements JsonSerializable<GitPatternRepository>

Git repository property payload for config server.

Constructor Summary

Constructor Description
GitPatternRepository()

Creates an instance of GitPatternRepository class.

Method Summary

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

Reads an instance of GitPatternRepository 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 name()

Get the name property: Name of the repository.

String password()

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

List<String> pattern()

Get the pattern property: Collection of pattern of the repository.

String privateKey()

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

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.

GitPatternRepository withHostKey(String hostKey)

Set the hostKey property: Public sshKey of git repository.

GitPatternRepository withHostKeyAlgorithm(String hostKeyAlgorithm)

Set the hostKeyAlgorithm property: SshKey algorithm of git repository.

GitPatternRepository withLabel(String label)

Set the label property: Label of the repository.

GitPatternRepository withName(String name)

Set the name property: Name of the repository.

GitPatternRepository withPassword(String password)

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

GitPatternRepository withPattern(List<String> pattern)

Set the pattern property: Collection of pattern of the repository.

GitPatternRepository withPrivateKey(String privateKey)

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

GitPatternRepository withSearchPaths(List<String> searchPaths)

Set the searchPaths property: Searching path of the repository.

GitPatternRepository withStrictHostKeyChecking(Boolean strictHostKeyChecking)

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

GitPatternRepository withUri(String uri)

Set the uri property: URI of the repository.

GitPatternRepository withUsername(String username)

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

Methods inherited from java.lang.Object

Constructor Details

GitPatternRepository

public GitPatternRepository()

Creates an instance of GitPatternRepository class.

Method Details

fromJson

public static GitPatternRepository fromJson(JsonReader jsonReader)

Reads an instance of GitPatternRepository from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of GitPatternRepository 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.

name

public String name()

Get the name property: Name of the repository.

Returns:

the name value.

password

public String password()

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

Returns:

the password value.

pattern

public List pattern()

Get the pattern property: Collection of pattern of the repository.

Returns:

the pattern value.

privateKey

public String privateKey()

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

Returns:

the privateKey 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 GitPatternRepository withHostKey(String hostKey)

Set the hostKey property: Public sshKey of git repository.

Parameters:

hostKey - the hostKey value to set.

Returns:

the GitPatternRepository object itself.

withHostKeyAlgorithm

public GitPatternRepository withHostKeyAlgorithm(String hostKeyAlgorithm)

Set the hostKeyAlgorithm property: SshKey algorithm of git repository.

Parameters:

hostKeyAlgorithm - the hostKeyAlgorithm value to set.

Returns:

the GitPatternRepository object itself.

withLabel

public GitPatternRepository withLabel(String label)

Set the label property: Label of the repository.

Parameters:

label - the label value to set.

Returns:

the GitPatternRepository object itself.

withName

public GitPatternRepository withName(String name)

Set the name property: Name of the repository.

Parameters:

name - the name value to set.

Returns:

the GitPatternRepository object itself.

withPassword

public GitPatternRepository withPassword(String password)

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

Parameters:

password - the password value to set.

Returns:

the GitPatternRepository object itself.

withPattern

public GitPatternRepository withPattern(List pattern)

Set the pattern property: Collection of pattern of the repository.

Parameters:

pattern - the pattern value to set.

Returns:

the GitPatternRepository object itself.

withPrivateKey

public GitPatternRepository withPrivateKey(String privateKey)

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

Parameters:

privateKey - the privateKey value to set.

Returns:

the GitPatternRepository object itself.

withSearchPaths

public GitPatternRepository withSearchPaths(List searchPaths)

Set the searchPaths property: Searching path of the repository.

Parameters:

searchPaths - the searchPaths value to set.

Returns:

the GitPatternRepository object itself.

withStrictHostKeyChecking

public GitPatternRepository withStrictHostKeyChecking(Boolean strictHostKeyChecking)

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

Parameters:

strictHostKeyChecking - the strictHostKeyChecking value to set.

Returns:

the GitPatternRepository object itself.

withUri

public GitPatternRepository withUri(String uri)

Set the uri property: URI of the repository.

Parameters:

uri - the uri value to set.

Returns:

the GitPatternRepository object itself.

withUsername

public GitPatternRepository withUsername(String username)

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

Parameters:

username - the username value to set.

Returns:

the GitPatternRepository object itself.

Applies to