public ServiceFuture<SasDefinitionBundle> setSasDefinitionAsync(String vaultBaseUrl, String storageAccountName, String sasDefinitionName, String templateUri, SasTokenType sasType, String validityPeriod, final ServiceCallback<SasDefinitionBundle> serviceCallback) {
        return ServiceFuture.fromResponse(setSasDefinitionWithServiceResponseAsync(vaultBaseUrl, storageAccountName, sasDefinitionName, templateUri, sasType, validityPeriod), serviceCallback);
    }
public ServiceFuture < SasDefinitionBundle > setSasDefinitionAsync ( String vaultBaseUrl , String storageAccountName , String sasDefinitionName , String templateUri , SasTokenType sasType , String validityPeriod , final ServiceCallback < SasDefinitionBundle > serviceCallback ) { return ServiceFuture . fromResponse ( setSasDefinitionWithServiceResponseAsync ( vaultBaseUrl , storageAccountName , sasDefinitionName , templateUri , sasType , validityPeriod ) , serviceCallback ) ; }
Creates or updates a new SAS definition for the specified storage account. This operation requires the storage/setsas permission.

@param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.
@param storageAccountName The name of the storage account.
@param sasDefinitionName The name of the SAS definition.
@param templateUri The SAS definition token template signed with an arbitrary key.  Tokens created according to the SAS definition will have the same properties as the template.
@param sasType The type of SAS token the SAS definition will create. Possible values include: 'account', 'service'
@param validityPeriod The validity period of SAS tokens created according to the SAS definition.
@param serviceCallback the async ServiceCallback to handle successful and failed responses.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the {@link ServiceFuture} object