Class ApiManagementServiceBackupRestoreParameters
- java.lang.Object
-
- com.azure.resourcemanager.apimanagement.models.ApiManagementServiceBackupRestoreParameters
-
public final class ApiManagementServiceBackupRestoreParameters extends Object
Parameters supplied to the Backup/Restore of an API Management service operation.
-
-
Constructor Summary
Constructors Constructor Description ApiManagementServiceBackupRestoreParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
accessKey()
Get the accessKey property: Storage account access key.AccessType
accessType()
Get the accessType property: The type of access to be used for the storage account.String
backupName()
Get the backupName property: The name of the backup file to create/retrieve.String
clientId()
Get the clientId property: The Client ID of user assigned managed identity.String
containerName()
Get the containerName property: The name of the blob container (used to place/retrieve the backup).String
storageAccount()
Get the storageAccount property: The name of the Azure storage account (used to place/retrieve the backup).void
validate()
Validates the instance.ApiManagementServiceBackupRestoreParameters
withAccessKey(String accessKey)
Set the accessKey property: Storage account access key.ApiManagementServiceBackupRestoreParameters
withAccessType(AccessType accessType)
Set the accessType property: The type of access to be used for the storage account.ApiManagementServiceBackupRestoreParameters
withBackupName(String backupName)
Set the backupName property: The name of the backup file to create/retrieve.ApiManagementServiceBackupRestoreParameters
withClientId(String clientId)
Set the clientId property: The Client ID of user assigned managed identity.ApiManagementServiceBackupRestoreParameters
withContainerName(String containerName)
Set the containerName property: The name of the blob container (used to place/retrieve the backup).ApiManagementServiceBackupRestoreParameters
withStorageAccount(String storageAccount)
Set the storageAccount property: The name of the Azure storage account (used to place/retrieve the backup).
-
-
-
Method Detail
-
storageAccount
public String storageAccount()
Get the storageAccount property: The name of the Azure storage account (used to place/retrieve the backup).- Returns:
- the storageAccount value.
-
withStorageAccount
public ApiManagementServiceBackupRestoreParameters withStorageAccount(String storageAccount)
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
public String containerName()
Get the containerName property: The name of the blob container (used to place/retrieve the backup).- Returns:
- the containerName value.
-
withContainerName
public ApiManagementServiceBackupRestoreParameters withContainerName(String containerName)
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
public String backupName()
Get the backupName property: The name of the backup file to create/retrieve.- Returns:
- the backupName value.
-
withBackupName
public ApiManagementServiceBackupRestoreParameters withBackupName(String backupName)
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
public AccessType accessType()
Get the accessType property: The type of access to be used for the storage account.- Returns:
- the accessType value.
-
withAccessType
public ApiManagementServiceBackupRestoreParameters withAccessType(AccessType accessType)
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
public String accessKey()
Get the accessKey property: Storage account access key. Required only if `accessType` is set to `AccessKey`.- Returns:
- the accessKey value.
-
withAccessKey
public ApiManagementServiceBackupRestoreParameters withAccessKey(String accessKey)
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
public String 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
public ApiManagementServiceBackupRestoreParameters withClientId(String clientId)
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.
-
-