public Observable<IntegrationAccountAgreementInner> createOrUpdateAsync(String resourceGroupName, String integrationAccountName, String agreementName, IntegrationAccountAgreementInner agreement) {
        return createOrUpdateWithServiceResponseAsync(resourceGroupName, integrationAccountName, agreementName, agreement).map(new Func1<ServiceResponse<IntegrationAccountAgreementInner>, IntegrationAccountAgreementInner>() {
            @Override
            public IntegrationAccountAgreementInner call(ServiceResponse<IntegrationAccountAgreementInner> response) {
                return response.body();
            }
        });
    }
public Observable < IntegrationAccountAgreementInner > createOrUpdateAsync ( String resourceGroupName , String integrationAccountName , String agreementName , IntegrationAccountAgreementInner agreement ) { return createOrUpdateWithServiceResponseAsync ( resourceGroupName , integrationAccountName , agreementName , agreement ) . map ( new Func1 < ServiceResponse < IntegrationAccountAgreementInner > , IntegrationAccountAgreementInner > ( ) { @ Override public IntegrationAccountAgreementInner call ( ServiceResponse < IntegrationAccountAgreementInner > response ) { return response . body ( ) ; } } ) ; }
Creates or updates an integration account agreement.

@param resourceGroupName The resource group name.
@param integrationAccountName The integration account name.
@param agreementName The integration account agreement name.
@param agreement The integration account agreement.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the observable to the IntegrationAccountAgreementInner object