Class HttpSmsConfig.Builder

java.lang.Object
cloud.opencode.base.sms.config.HttpSmsConfig.Builder
Enclosing class:
HttpSmsConfig

public static class HttpSmsConfig.Builder extends Object
HTTP SMS Config Builder HTTP短信配置构建器
Since:
JDK 25, opencode-base-sms V1.0.0
Author:
Leon Soo www.LeonSoo.com
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • name

      public HttpSmsConfig.Builder name(String name)
      Set name 设置名称
      Parameters:
      name - the name | 名称
      Returns:
      this builder | 此构建器
    • apiUrl

      public HttpSmsConfig.Builder apiUrl(String apiUrl)
      Set API URL 设置API地址
      Parameters:
      apiUrl - the API URL | API地址
      Returns:
      this builder | 此构建器
    • appId

      public HttpSmsConfig.Builder appId(String appId)
      Set app ID 设置应用ID
      Parameters:
      appId - the app ID | 应用ID
      Returns:
      this builder | 此构建器
    • appKey

      public HttpSmsConfig.Builder appKey(String appKey)
      Set app key 设置应用密钥
      Parameters:
      appKey - the app key | 应用密钥
      Returns:
      this builder | 此构建器
    • signName

      public HttpSmsConfig.Builder signName(String signName)
      Set sign name 设置签名名称
      Parameters:
      signName - the sign name | 签名名称
      Returns:
      this builder | 此构建器
    • extra

      public HttpSmsConfig.Builder extra(String key, String value)
      Add extra config 添加额外配置
      Parameters:
      key - the key | 键
      value - the value | 值
      Returns:
      this builder | 此构建器
    • build

      public HttpSmsConfig build()
      Build the config 构建配置
      Returns:
      the config | 配置