/// <summary>
        /// Updates the specified DomainDnsMxRecord using PATCH.
        /// </summary>
        /// <param name="domainDnsMxRecordToUpdate">The DomainDnsMxRecord to update.</param>
        /// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
        /// <returns>The updated DomainDnsMxRecord.</returns>
        public async System.Threading.Tasks.Task <DomainDnsMxRecord> UpdateAsync(DomainDnsMxRecord domainDnsMxRecordToUpdate, CancellationToken cancellationToken)
        {
            this.ContentType = "application/json";
            this.Method      = "PATCH";
            var updatedEntity = await this.SendAsync <DomainDnsMxRecord>(domainDnsMxRecordToUpdate, cancellationToken).ConfigureAwait(false);

            this.InitializeCollectionProperties(updatedEntity);
            return(updatedEntity);
        }
 /// <summary>
 /// Creates the specified DomainDnsMxRecord using POST.
 /// </summary>
 /// <param name="domainDnsMxRecordToCreate">The DomainDnsMxRecord to create.</param>
 /// <returns>The created DomainDnsMxRecord.</returns>
 public System.Threading.Tasks.Task <DomainDnsMxRecord> CreateAsync(DomainDnsMxRecord domainDnsMxRecordToCreate)
 {
     return(this.CreateAsync(domainDnsMxRecordToCreate, CancellationToken.None));
 }
 /// <summary>
 /// Initializes any collection properties after deserialization, like next requests for paging.
 /// </summary>
 /// <param name="domainDnsMxRecordToInitialize">The <see cref="DomainDnsMxRecord"/> with the collection properties to initialize.</param>
 private void InitializeCollectionProperties(DomainDnsMxRecord domainDnsMxRecordToInitialize)
 {
 }