Class AzureKeyVaultSmbCredentials
java.lang.Object
com.azure.resourcemanager.storagemover.models.Credentials
com.azure.resourcemanager.storagemover.models.AzureKeyVaultSmbCredentials
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Credentials>
The Azure Key Vault secret URIs which store the credentials.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AzureKeyVaultSmbCredentials class. -
Method Summary
Modifier and TypeMethodDescriptionstatic AzureKeyVaultSmbCredentialsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AzureKeyVaultSmbCredentials from the JsonReader.Get the passwordUri property: The Azure Key Vault secret URI which stores the password.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The Credentials type.Get the usernameUri property: The Azure Key Vault secret URI which stores the username.voidvalidate()Validates the instance.withPasswordUri(String passwordUri) Set the passwordUri property: The Azure Key Vault secret URI which stores the password.withUsernameUri(String usernameUri) Set the usernameUri property: The Azure Key Vault secret URI which stores the username.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
-
AzureKeyVaultSmbCredentials
public AzureKeyVaultSmbCredentials()Creates an instance of AzureKeyVaultSmbCredentials class.
-
-
Method Details
-
type
Get the type property: The Credentials type.- Overrides:
typein classCredentials- Returns:
- the type value.
-
usernameUri
Get the usernameUri property: The Azure Key Vault secret URI which stores the username. Use empty string to clean-up existing value.- Returns:
- the usernameUri value.
-
withUsernameUri
Set the usernameUri property: The Azure Key Vault secret URI which stores the username. Use empty string to clean-up existing value.- Parameters:
usernameUri- the usernameUri value to set.- Returns:
- the AzureKeyVaultSmbCredentials object itself.
-
passwordUri
Get the passwordUri property: The Azure Key Vault secret URI which stores the password. Use empty string to clean-up existing value.- Returns:
- the passwordUri value.
-
withPasswordUri
Set the passwordUri property: The Azure Key Vault secret URI which stores the password. Use empty string to clean-up existing value.- Parameters:
passwordUri- the passwordUri value to set.- Returns:
- the AzureKeyVaultSmbCredentials object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classCredentials- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<Credentials>- Overrides:
toJsonin classCredentials- Throws:
IOException
-
fromJson
public static AzureKeyVaultSmbCredentials fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AzureKeyVaultSmbCredentials from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AzureKeyVaultSmbCredentials if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the AzureKeyVaultSmbCredentials.
-