public Observable<ProtectionIntentResourceInner> createOrUpdateAsync(String vaultName, String resourceGroupName, String fabricName, String intentObjectName, ProtectionIntentResourceInner parameters) {
        return createOrUpdateWithServiceResponseAsync(vaultName, resourceGroupName, fabricName, intentObjectName, parameters).map(new Func1<ServiceResponse<ProtectionIntentResourceInner>, ProtectionIntentResourceInner>() {
            @Override
            public ProtectionIntentResourceInner call(ServiceResponse<ProtectionIntentResourceInner> response) {
                return response.body();
            }
        });
    }
public Observable < ProtectionIntentResourceInner > createOrUpdateAsync ( String vaultName , String resourceGroupName , String fabricName , String intentObjectName , ProtectionIntentResourceInner parameters ) { return createOrUpdateWithServiceResponseAsync ( vaultName , resourceGroupName , fabricName , intentObjectName , parameters ) . map ( new Func1 < ServiceResponse < ProtectionIntentResourceInner > , ProtectionIntentResourceInner > ( ) { @ Override public ProtectionIntentResourceInner call ( ServiceResponse < ProtectionIntentResourceInner > response ) { return response . body ( ) ; } } ) ; }
Create Intent for Enabling backup of an item. This is a synchronous operation.

@param vaultName The name of the recovery services vault.
@param resourceGroupName The name of the resource group where the recovery services vault is present.
@param fabricName Fabric name associated with the backup item.
@param intentObjectName Intent object name.
@param parameters resource backed up item
@throws IllegalArgumentException thrown if parameters fail the validation
@return the observable to the ProtectionIntentResourceInner object