code: public ServiceEndpointPolicyDefinitionInner beginCreateOrUpdate(String resourceGroupName, String serviceEndpointPolicyName, String serviceEndpointPolicyDefinitionName, ServiceEndpointPolicyDefinitionInner serviceEndpointPolicyDefinitions) {
          return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, serviceEndpointPolicyName, serviceEndpointPolicyDefinitionName, serviceEndpointPolicyDefinitions).toBlocking().single().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
  @throws CloudException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the ServiceEndpointPolicyDefinitionInner object if successful.