Class ExportRdbParameters
java.lang.Object
com.azure.resourcemanager.redis.models.ExportRdbParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ExportRdbParameters>
public final class ExportRdbParameters
extends Object
implements com.azure.json.JsonSerializable<ExportRdbParameters>
Parameters for Redis export operation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the container property: Container name to export to.format()
Get the format property: File format.static ExportRdbParameters
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ExportRdbParameters 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.prefix()
Get the prefix property: Prefix to use for exported files.Get the storageSubscriptionId property: Subscription id of the storage container for data to be exported using ManagedIdentity.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withContainer
(String container) Set the container property: Container name to export to.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.withPrefix
(String prefix) Set the prefix property: Prefix to use for exported files.withStorageSubscriptionId
(String storageSubscriptionId) Set the storageSubscriptionId property: Subscription id of the storage container for data to be exported using ManagedIdentity.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
-
ExportRdbParameters
public ExportRdbParameters()Creates an instance of ExportRdbParameters 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 ExportRdbParameters object itself.
-
prefix
Get the prefix property: Prefix to use for exported files.- Returns:
- the prefix value.
-
withPrefix
Set the prefix property: Prefix to use for exported files.- Parameters:
prefix
- the prefix value to set.- Returns:
- the ExportRdbParameters object itself.
-
container
Get the container property: Container name to export to.- Returns:
- the container value.
-
withContainer
Set the container property: Container name to export to.- Parameters:
container
- the container value to set.- Returns:
- the ExportRdbParameters 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 ExportRdbParameters 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 ExportRdbParameters object itself.
-
storageSubscriptionId
Get the storageSubscriptionId property: Subscription id of the storage container for data to be exported using ManagedIdentity.- Returns:
- the storageSubscriptionId value.
-
withStorageSubscriptionId
Set the storageSubscriptionId property: Subscription id of the storage container for data to be exported using ManagedIdentity.- Parameters:
storageSubscriptionId
- the storageSubscriptionId value to set.- Returns:
- the ExportRdbParameters 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<ExportRdbParameters>
- Throws:
IOException
-
fromJson
Reads an instance of ExportRdbParameters from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ExportRdbParameters 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 ExportRdbParameters.
-