Record Class AliSmsSender.AliSmsConfig
java.lang.Object
java.lang.Record
cloud.opencode.base.sms.provider.AliSmsSender.AliSmsConfig
- Record Components:
accessKeyId- the AccessKey ID | AccessKey IDaccessKeySecret- the AccessKey Secret | AccessKey SecretsignName- the SMS signature name | 短信签名名称regionId- the region ID (e.g., cn-hangzhou) | 区域ID(例如:cn-hangzhou)
- Enclosing class:
AliSmsSender
-
Constructor Summary
ConstructorsConstructorDescriptionAliSmsConfig(String accessKeyId, String accessKeySecret, String signName, String regionId) Compact constructor with validation 带验证的紧凑构造函数 -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessKeyIdrecord component.Returns the value of theaccessKeySecretrecord 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 valid 检查配置是否有效static AliSmsSender.AliSmsConfigCreate config with default region 使用默认区域创建配置regionId()Returns the value of theregionIdrecord component.signName()Returns the value of thesignNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AliSmsConfig
-
-
Method Details
-
of
public static AliSmsSender.AliSmsConfig of(String accessKeyId, String accessKeySecret, String signName) Create config with default region 使用默认区域创建配置- Parameters:
accessKeyId- the AccessKey ID | AccessKey IDaccessKeySecret- the AccessKey Secret | AccessKey SecretsignName- the sign name | 签名名称- Returns:
- the config | 配置
-
isConfigured
public boolean isConfigured()Check if config is valid 检查配置是否有效- 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). -
accessKeyId
Returns the value of theaccessKeyIdrecord component.- Returns:
- the value of the
accessKeyIdrecord component
-
accessKeySecret
Returns the value of theaccessKeySecretrecord component.- Returns:
- the value of the
accessKeySecretrecord component
-
signName
-
regionId
-