code: public Observable<ServiceEndpointPolicyDefinitionInner> createOrUpdateAsync(String resourceGroupName, String serviceEndpointPolicyName, String serviceEndpointPolicyDefinitionName, ServiceEndpointPolicyDefinitionInner serviceEndpointPolicyDefinitions) {
          return createOrUpdateWithServiceResponseAsync(resourceGroupName, serviceEndpointPolicyName, serviceEndpointPolicyDefinitionName, serviceEndpointPolicyDefinitions).map(new Func1<ServiceResponse<ServiceEndpointPolicyDefinitionInner>, ServiceEndpointPolicyDefinitionInner>() {
              @Override
              public ServiceEndpointPolicyDefinitionInner call(ServiceResponse<ServiceEndpointPolicyDefinitionInner> response) {
                  return response.body();
              }
          });
      }
docs: Creates or updates a service endpoint policy definition in the specified service endpoint policy.
  
  @param resourceGroupName The name of the resource group.
  @param serviceEndpointPolicyName The name of the service endpoint policy.
  @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition name.
  @param serviceEndpointPolicyDefinitions 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