Class ImportRdbParameters
java.lang.Object
com.azure.resourcemanager.redis.models.ImportRdbParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ImportRdbParameters>
public final class ImportRdbParameters
extends Object
implements com.azure.json.JsonSerializable<ImportRdbParameters>
Parameters for Redis import operation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfiles()
Get the files property: files to import.format()
Get the format property: File format.static ImportRdbParameters
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ImportRdbParameters from the JsonReader.Get the preferredDataArchiveAuthMethod property: Preferred auth method to communicate to storage account used for data archive, specify SAS or ManagedIdentity, default value is SAS.Get the storageSubscriptionId property: Subscription id of the storage container containing files to import using Managed Identity.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Set the files property: files to import.withFormat
(String format) Set the format property: File format.withPreferredDataArchiveAuthMethod
(String preferredDataArchiveAuthMethod) Set the preferredDataArchiveAuthMethod property: Preferred auth method to communicate to storage account used for data archive, specify SAS or ManagedIdentity, default value is SAS.withStorageSubscriptionId
(String storageSubscriptionId) Set the storageSubscriptionId property: Subscription id of the storage container containing files to import using Managed Identity.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ImportRdbParameters
public ImportRdbParameters()Creates an instance of ImportRdbParameters class.
-
-
Method Details
-
format
Get the format property: File format.- Returns:
- the format value.
-
withFormat
Set the format property: File format.- Parameters:
format
- the format value to set.- Returns:
- the ImportRdbParameters object itself.
-
files
Get the files property: files to import.- Returns:
- the files value.
-
withFiles
Set the files property: files to import.- Parameters:
files
- the files value to set.- Returns:
- the ImportRdbParameters object itself.
-
preferredDataArchiveAuthMethod
Get the preferredDataArchiveAuthMethod property: Preferred auth method to communicate to storage account used for data archive, specify SAS or ManagedIdentity, default value is SAS.- Returns:
- the preferredDataArchiveAuthMethod value.
-
withPreferredDataArchiveAuthMethod
public ImportRdbParameters withPreferredDataArchiveAuthMethod(String preferredDataArchiveAuthMethod) Set the preferredDataArchiveAuthMethod property: Preferred auth method to communicate to storage account used for data archive, specify SAS or ManagedIdentity, default value is SAS.- Parameters:
preferredDataArchiveAuthMethod
- the preferredDataArchiveAuthMethod value to set.- Returns:
- the ImportRdbParameters object itself.
-
storageSubscriptionId
Get the storageSubscriptionId property: Subscription id of the storage container containing files to import using Managed Identity.- Returns:
- the storageSubscriptionId value.
-
withStorageSubscriptionId
Set the storageSubscriptionId property: Subscription id of the storage container containing files to import using Managed Identity.- Parameters:
storageSubscriptionId
- the storageSubscriptionId value to set.- Returns:
- the ImportRdbParameters object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<ImportRdbParameters>
- Throws:
IOException
-
fromJson
Reads an instance of ImportRdbParameters from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ImportRdbParameters 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 ImportRdbParameters.
-