Class ApiManagementServiceBackupRestoreParameters
java.lang.Object
com.azure.resourcemanager.apimanagement.models.ApiManagementServiceBackupRestoreParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ApiManagementServiceBackupRestoreParameters>
public final class ApiManagementServiceBackupRestoreParameters
extends Object
implements com.azure.json.JsonSerializable<ApiManagementServiceBackupRestoreParameters>
Parameters supplied to the Backup/Restore of an API Management service operation.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ApiManagementServiceBackupRestoreParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the accessKey property: Storage account access key.Get the accessType property: The type of access to be used for the storage account.Get the backupName property: The name of the backup file to create/retrieve.clientId()Get the clientId property: The Client ID of user assigned managed identity.Get the containerName property: The name of the blob container (used to place/retrieve the backup).fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ApiManagementServiceBackupRestoreParameters from the JsonReader.Get the storageAccount property: The name of the Azure storage account (used to place/retrieve the backup).com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAccessKey(String accessKey) Set the accessKey property: Storage account access key.withAccessType(AccessType accessType) Set the accessType property: The type of access to be used for the storage account.withBackupName(String backupName) Set the backupName property: The name of the backup file to create/retrieve.withClientId(String clientId) Set the clientId property: The Client ID of user assigned managed identity.withContainerName(String containerName) Set the containerName property: The name of the blob container (used to place/retrieve the backup).withStorageAccount(String storageAccount) Set the storageAccount property: The name of the Azure storage account (used to place/retrieve the backup).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
-
ApiManagementServiceBackupRestoreParameters
public ApiManagementServiceBackupRestoreParameters()Creates an instance of ApiManagementServiceBackupRestoreParameters class.
-
-
Method Details
-
storageAccount
Get the storageAccount property: The name of the Azure storage account (used to place/retrieve the backup).- Returns:
- the storageAccount value.
-
withStorageAccount
Set the storageAccount property: The name of the Azure storage account (used to place/retrieve the backup).- Parameters:
storageAccount- the storageAccount value to set.- Returns:
- the ApiManagementServiceBackupRestoreParameters object itself.
-
containerName
Get the containerName property: The name of the blob container (used to place/retrieve the backup).- Returns:
- the containerName value.
-
withContainerName
Set the containerName property: The name of the blob container (used to place/retrieve the backup).- Parameters:
containerName- the containerName value to set.- Returns:
- the ApiManagementServiceBackupRestoreParameters object itself.
-
backupName
Get the backupName property: The name of the backup file to create/retrieve.- Returns:
- the backupName value.
-
withBackupName
Set the backupName property: The name of the backup file to create/retrieve.- Parameters:
backupName- the backupName value to set.- Returns:
- the ApiManagementServiceBackupRestoreParameters object itself.
-
accessType
Get the accessType property: The type of access to be used for the storage account.- Returns:
- the accessType value.
-
withAccessType
Set the accessType property: The type of access to be used for the storage account.- Parameters:
accessType- the accessType value to set.- Returns:
- the ApiManagementServiceBackupRestoreParameters object itself.
-
accessKey
Get the accessKey property: Storage account access key. Required only if `accessType` is set to `AccessKey`.- Returns:
- the accessKey value.
-
withAccessKey
Set the accessKey property: Storage account access key. Required only if `accessType` is set to `AccessKey`.- Parameters:
accessKey- the accessKey value to set.- Returns:
- the ApiManagementServiceBackupRestoreParameters object itself.
-
clientId
Get the clientId property: The Client ID of user assigned managed identity. Required only if `accessType` is set to `UserAssignedManagedIdentity`.- Returns:
- the clientId value.
-
withClientId
Set the clientId property: The Client ID of user assigned managed identity. Required only if `accessType` is set to `UserAssignedManagedIdentity`.- Parameters:
clientId- the clientId value to set.- Returns:
- the ApiManagementServiceBackupRestoreParameters object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ApiManagementServiceBackupRestoreParameters>- Throws:
IOException
-
fromJson
public static ApiManagementServiceBackupRestoreParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ApiManagementServiceBackupRestoreParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ApiManagementServiceBackupRestoreParameters 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 ApiManagementServiceBackupRestoreParameters.
-