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 | 腾讯云控制台的密钥IDsecretKey- the secret key from Tencent Cloud console | 腾讯云控制台的密钥KeyappId- the SMS application ID | 短信应用IDsignName- 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappId()Returns the value of theappIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanCheck if configuration is valid 检查配置是否有效region()Returns the value of theregionrecord component.secretId()Returns the value of thesecretIdrecord component.Returns the value of thesecretKeyrecord component.signName()Returns the value of thesignNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TencentSmsConfig
-
-
Method Details
-
isConfigured
public boolean isConfigured()Check if configuration is valid 检查配置是否有效- Returns:
- true if valid | 如果有效返回true
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
secretId
-
secretKey
-
appId
-
signName
-
region
-