Record Class HuaweiSmsSender.HuaweiSmsConfig
java.lang.Object
java.lang.Record
cloud.opencode.base.sms.provider.HuaweiSmsSender.HuaweiSmsConfig
- Record Components:
appKey- the application key | 应用KeyappSecret- the application secret | 应用密钥sender- the sender channel (signature channel number) | 发送通道(签名通道号)channelId- the channel ID (template ID) | 通道ID(模板ID)region- the region code (e.g., cn-north-4) | 区域代码(如cn-north-4)
- Enclosing class:
HuaweiSmsSender
public static record HuaweiSmsSender.HuaweiSmsConfig(String appKey, String appSecret, String sender, String channelId, String region)
extends Record
Huawei SMS Configuration
华为短信配置
Configuration record for Huawei Cloud SMS service.
华为云短信服务配置记录。
- Since:
- JDK 25, opencode-base-sms V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappKey()Returns the value of theappKeyrecord component.Returns the value of theappSecretrecord component.Returns the value of thechannelIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanCheck if config is properly configured 检查配置是否正确配置Create config with default region 使用默认区域创建配置region()Returns the value of theregionrecord component.sender()Returns the value of thesenderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HuaweiSmsConfig
-
-
Method Details
-
of
public static HuaweiSmsSender.HuaweiSmsConfig of(String appKey, String appSecret, String sender, String channelId) Create config with default region 使用默认区域创建配置- Parameters:
appKey- the application key | 应用KeyappSecret- the application secret | 应用密钥sender- the sender channel | 发送通道channelId- the channel ID | 通道ID- Returns:
- the config | 配置
-
isConfigured
public boolean isConfigured()Check if config is properly configured 检查配置是否正确配置- Returns:
- true if configured | 如果配置正确返回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). -
appKey
-
appSecret
-
sender
-
channelId
-
region
-