// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
using Pulumi;

namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Dcdb.Outputs
{

    [OutputType]
    public sealed class GetAccountsListResult
    {
        /// <summary>
        /// Creation time.
        /// </summary>
        public readonly string CreateTime;
        /// <summary>
        /// If the standby machine delay exceeds the setting value of this parameter, the system will consider that the standby machine is faulty and recommend that the parameter value be greater than 10. This parameter takes effect when ReadOnly selects 1 and 2.
        /// </summary>
        public readonly int DelayThresh;
        /// <summary>
        /// User remarks info.
        /// </summary>
        public readonly string Description;
        /// <summary>
        /// From which host the user can log in (corresponding to the host field of MySQL users, UserName + Host uniquely identifies a user, in the form of IP, the IP segment ends with %; supports filling in %; if it is empty, it defaults to %).
        /// </summary>
        public readonly string Host;
        /// <summary>
        /// Read-only flag, 0: No, 1: The SQL request of this account is preferentially executed on the standby machine, and the host is selected for execution when the standby machine is unavailable. 2: The standby machine is preferentially selected for execution, and the operation fails when the standby machine is unavailable.
        /// </summary>
        public readonly int ReadOnly;
        /// <summary>
        /// For read-only accounts, set the policy whether to fix the standby machine, 0: not fix the standby machine, that is, the standby machine will not disconnect from the client if it does not meet the conditions, the Proxy selects other available standby machines, 1: the standby machine will be disconnected if the conditions are not met, Make sure a connection is secured to the standby machine.
        /// </summary>
        public readonly int SlaveConst;
        /// <summary>
        /// Last update time.
        /// </summary>
        public readonly string UpdateTime;
        /// <summary>
        /// User Name.
        /// </summary>
        public readonly string UserName;

        [OutputConstructor]
        private GetAccountsListResult(
            string createTime,

            int delayThresh,

            string description,

            string host,

            int readOnly,

            int slaveConst,

            string updateTime,

            string userName)
        {
            CreateTime = createTime;
            DelayThresh = delayThresh;
            Description = description;
            Host = host;
            ReadOnly = readOnly;
            SlaveConst = slaveConst;
            UpdateTime = updateTime;
            UserName = userName;
        }
    }
}
