Class CreateAccountRequest

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Long getDelayThresh()
      Get 根据传入时间判断备机不可用
      String getDescription()
      Get 账号备注,可以包含中文、英文字符、常见符号和数字,长度为0~256字符
      String getHost()
      Get 可以登录的主机,与mysql 账号的 host 格式一致,可以支持通配符,例如 %,10.%,10.20.%。
      String getInstanceId()
      Get 实例 ID,形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。
      Long getMaxUserConnections()
      Get 用户最大连接数限制参数。不传或者传0表示为不限制,对应max_user_connections参数,目前10.1内核版本不支持设置。
      String getPassword()
      Get 账号密码,密码需要 8-32 个字符,不能以 '/' 开头,并且必须包含小写字母、大写字母、数字和符号()~!@#$%^&*-+=_|{}[]:<>,.?/。
      Long getReadOnly()
      Get 是否创建为只读账号,0:否, 1:该账号的sql请求优先选择备机执行,备机不可用时选择主机执行,2:优先选择备机执行,备机不可用时操作失败。
      Long getSlaveConst()
      Get 针对只读账号,设置策略是否固定备机,0:不固定备机,即备机不满足条件与客户端不断开连接,Proxy选择其他可用备机,1:备机不满足条件断开连接,确保一个连接固定备机。
      String getUserName()
      Get 登录用户名,由字母、数字、下划线和连字符组成,长度为1~32位。
      void setDelayThresh​(Long DelayThresh)
      Set 根据传入时间判断备机不可用
      void setDescription​(String Description)
      Set 账号备注,可以包含中文、英文字符、常见符号和数字,长度为0~256字符
      void setHost​(String Host)
      Set 可以登录的主机,与mysql 账号的 host 格式一致,可以支持通配符,例如 %,10.%,10.20.%。
      void setInstanceId​(String InstanceId)
      Set 实例 ID,形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。
      void setMaxUserConnections​(Long MaxUserConnections)
      Set 用户最大连接数限制参数。不传或者传0表示为不限制,对应max_user_connections参数,目前10.1内核版本不支持设置。
      void setPassword​(String Password)
      Set 账号密码,密码需要 8-32 个字符,不能以 '/' 开头,并且必须包含小写字母、大写字母、数字和符号()~!@#$%^&*-+=_|{}[]:<>,.?/。
      void setReadOnly​(Long ReadOnly)
      Set 是否创建为只读账号,0:否, 1:该账号的sql请求优先选择备机执行,备机不可用时选择主机执行,2:优先选择备机执行,备机不可用时操作失败。
      void setSlaveConst​(Long SlaveConst)
      Set 针对只读账号,设置策略是否固定备机,0:不固定备机,即备机不满足条件与客户端不断开连接,Proxy选择其他可用备机,1:备机不满足条件断开连接,确保一个连接固定备机。
      void setUserName​(String UserName)
      Set 登录用户名,由字母、数字、下划线和连字符组成,长度为1~32位。
      void toMap​(HashMap<String,​String> map, String prefix)
      Internal implementation, normal users should not use it.
    • Constructor Detail

      • CreateAccountRequest

        public CreateAccountRequest()
      • CreateAccountRequest

        public CreateAccountRequest​(CreateAccountRequest source)
        NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
    • Method Detail

      • getInstanceId

        public String getInstanceId()
        Get 实例 ID,形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。
        Returns:
        InstanceId 实例 ID,形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。
      • setInstanceId

        public void setInstanceId​(String InstanceId)
        Set 实例 ID,形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。
        Parameters:
        InstanceId - 实例 ID,形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。
      • getUserName

        public String getUserName()
        Get 登录用户名,由字母、数字、下划线和连字符组成,长度为1~32位。
        Returns:
        UserName 登录用户名,由字母、数字、下划线和连字符组成,长度为1~32位。
      • setUserName

        public void setUserName​(String UserName)
        Set 登录用户名,由字母、数字、下划线和连字符组成,长度为1~32位。
        Parameters:
        UserName - 登录用户名,由字母、数字、下划线和连字符组成,长度为1~32位。
      • getHost

        public String getHost()
        Get 可以登录的主机,与mysql 账号的 host 格式一致,可以支持通配符,例如 %,10.%,10.20.%。
        Returns:
        Host 可以登录的主机,与mysql 账号的 host 格式一致,可以支持通配符,例如 %,10.%,10.20.%。
      • setHost

        public void setHost​(String Host)
        Set 可以登录的主机,与mysql 账号的 host 格式一致,可以支持通配符,例如 %,10.%,10.20.%。
        Parameters:
        Host - 可以登录的主机,与mysql 账号的 host 格式一致,可以支持通配符,例如 %,10.%,10.20.%。
      • getPassword

        public String getPassword()
        Get 账号密码,密码需要 8-32 个字符,不能以 '/' 开头,并且必须包含小写字母、大写字母、数字和符号()~!@#$%^&*-+=_|{}[]:<>,.?/。
        Returns:
        Password 账号密码,密码需要 8-32 个字符,不能以 '/' 开头,并且必须包含小写字母、大写字母、数字和符号()~!@#$%^&*-+=_|{}[]:<>,.?/。
      • setPassword

        public void setPassword​(String Password)
        Set 账号密码,密码需要 8-32 个字符,不能以 '/' 开头,并且必须包含小写字母、大写字母、数字和符号()~!@#$%^&*-+=_|{}[]:<>,.?/。
        Parameters:
        Password - 账号密码,密码需要 8-32 个字符,不能以 '/' 开头,并且必须包含小写字母、大写字母、数字和符号()~!@#$%^&*-+=_|{}[]:<>,.?/。
      • getReadOnly

        public Long getReadOnly()
        Get 是否创建为只读账号,0:否, 1:该账号的sql请求优先选择备机执行,备机不可用时选择主机执行,2:优先选择备机执行,备机不可用时操作失败。
        Returns:
        ReadOnly 是否创建为只读账号,0:否, 1:该账号的sql请求优先选择备机执行,备机不可用时选择主机执行,2:优先选择备机执行,备机不可用时操作失败。
      • setReadOnly

        public void setReadOnly​(Long ReadOnly)
        Set 是否创建为只读账号,0:否, 1:该账号的sql请求优先选择备机执行,备机不可用时选择主机执行,2:优先选择备机执行,备机不可用时操作失败。
        Parameters:
        ReadOnly - 是否创建为只读账号,0:否, 1:该账号的sql请求优先选择备机执行,备机不可用时选择主机执行,2:优先选择备机执行,备机不可用时操作失败。
      • getDescription

        public String getDescription()
        Get 账号备注,可以包含中文、英文字符、常见符号和数字,长度为0~256字符
        Returns:
        Description 账号备注,可以包含中文、英文字符、常见符号和数字,长度为0~256字符
      • setDescription

        public void setDescription​(String Description)
        Set 账号备注,可以包含中文、英文字符、常见符号和数字,长度为0~256字符
        Parameters:
        Description - 账号备注,可以包含中文、英文字符、常见符号和数字,长度为0~256字符
      • getDelayThresh

        public Long getDelayThresh()
        Get 根据传入时间判断备机不可用
        Returns:
        DelayThresh 根据传入时间判断备机不可用
      • setDelayThresh

        public void setDelayThresh​(Long DelayThresh)
        Set 根据传入时间判断备机不可用
        Parameters:
        DelayThresh - 根据传入时间判断备机不可用
      • getSlaveConst

        public Long getSlaveConst()
        Get 针对只读账号,设置策略是否固定备机,0:不固定备机,即备机不满足条件与客户端不断开连接,Proxy选择其他可用备机,1:备机不满足条件断开连接,确保一个连接固定备机。
        Returns:
        SlaveConst 针对只读账号,设置策略是否固定备机,0:不固定备机,即备机不满足条件与客户端不断开连接,Proxy选择其他可用备机,1:备机不满足条件断开连接,确保一个连接固定备机。
      • setSlaveConst

        public void setSlaveConst​(Long SlaveConst)
        Set 针对只读账号,设置策略是否固定备机,0:不固定备机,即备机不满足条件与客户端不断开连接,Proxy选择其他可用备机,1:备机不满足条件断开连接,确保一个连接固定备机。
        Parameters:
        SlaveConst - 针对只读账号,设置策略是否固定备机,0:不固定备机,即备机不满足条件与客户端不断开连接,Proxy选择其他可用备机,1:备机不满足条件断开连接,确保一个连接固定备机。
      • getMaxUserConnections

        public Long getMaxUserConnections()
        Get 用户最大连接数限制参数。不传或者传0表示为不限制,对应max_user_connections参数,目前10.1内核版本不支持设置。
        Returns:
        MaxUserConnections 用户最大连接数限制参数。不传或者传0表示为不限制,对应max_user_connections参数,目前10.1内核版本不支持设置。
      • setMaxUserConnections

        public void setMaxUserConnections​(Long MaxUserConnections)
        Set 用户最大连接数限制参数。不传或者传0表示为不限制,对应max_user_connections参数,目前10.1内核版本不支持设置。
        Parameters:
        MaxUserConnections - 用户最大连接数限制参数。不传或者传0表示为不限制,对应max_user_connections参数,目前10.1内核版本不支持设置。