public Observable<ServiceEndpointPolicyInner> createOrUpdateAsync(String resourceGroupName, String serviceEndpointPolicyName, ServiceEndpointPolicyInner parameters) {
        return createOrUpdateWithServiceResponseAsync(resourceGroupName, serviceEndpointPolicyName, parameters).map(new Func1<ServiceResponse<ServiceEndpointPolicyInner>, ServiceEndpointPolicyInner>() {
            @Override
            public ServiceEndpointPolicyInner call(ServiceResponse<ServiceEndpointPolicyInner> response) {
                return response.body();
            }
        });
    }
public Observable < ServiceEndpointPolicyInner > createOrUpdateAsync ( String resourceGroupName , String serviceEndpointPolicyName , ServiceEndpointPolicyInner parameters ) { return createOrUpdateWithServiceResponseAsync ( resourceGroupName , serviceEndpointPolicyName , parameters ) . map ( new Func1 < ServiceResponse < ServiceEndpointPolicyInner > , ServiceEndpointPolicyInner > ( ) { @ Override public ServiceEndpointPolicyInner call ( ServiceResponse < ServiceEndpointPolicyInner > response ) { return response . body ( ) ; } } ) ; }
Creates or updates a service Endpoint Policies.

@param resourceGroupName The name of the resource group.
@param serviceEndpointPolicyName The name of the service endpoint policy.
@param parameters Parameters supplied to the create or update service endpoint policy operation.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the observable for the request