Record Class TencentSmsSender.TencentSmsConfig

java.lang.Object
java.lang.Record
cloud.opencode.base.sms.provider.TencentSmsSender.TencentSmsConfig
Record Components:
secretId - the secret ID from Tencent Cloud console | 腾讯云控制台的密钥ID
secretKey - the secret key from Tencent Cloud console | 腾讯云控制台的密钥Key
appId - the SMS application ID | 短信应用ID
signName - the SMS signature name | 短信签名名称
region - the service region (e.g., ap-guangzhou) | 服务地域(如:ap-guangzhou)
Enclosing class:
TencentSmsSender

public static record TencentSmsSender.TencentSmsConfig(String secretId, String secretKey, String appId, String signName, String region) extends Record
Tencent SMS Configuration 腾讯云短信配置

Configuration record for Tencent Cloud SMS service.

腾讯云短信服务的配置记录。

Since:
JDK 25, opencode-base-sms V1.0.0
Author:
Leon Soo
  • Constructor Details

    • TencentSmsConfig

      public TencentSmsConfig(String secretId, String secretKey, String appId, String signName, String region)
      Create configuration with validation 创建带验证的配置
  • Method Details

    • isConfigured

      public boolean isConfigured()
      Check if configuration is valid 检查配置是否有效
      Returns:
      true if valid | 如果有效返回true
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • secretId

      public String secretId()
      Returns the value of the secretId record component.
      Returns:
      the value of the secretId record component
    • secretKey

      public String secretKey()
      Returns the value of the secretKey record component.
      Returns:
      the value of the secretKey record component
    • appId

      public String appId()
      Returns the value of the appId record component.
      Returns:
      the value of the appId record component
    • signName

      public String signName()
      Returns the value of the signName record component.
      Returns:
      the value of the signName record component
    • region

      public String region()
      Returns the value of the region record component.
      Returns:
      the value of the region record component