package com.qianwen.core.sms.props; import org.springframework.boot.context.properties.ConfigurationProperties; @ConfigurationProperties(prefix = "sms") public class SmsProperties { private Boolean enabled; private String name; private String templateId; private String regionId = "cn-hangzhou"; private String accessKey; private String secretKey; private String signName; public void setEnabled(final Boolean enabled) { this.enabled = enabled; } public void setName(final String name) { this.name = name; } public void setTemplateId(final String templateId) { this.templateId = templateId; } public void setRegionId(final String regionId) { this.regionId = regionId; } public void setAccessKey(final String accessKey) { this.accessKey = accessKey; } public void setSecretKey(final String secretKey) { this.secretKey = secretKey; } public void setSignName(final String signName) { this.signName = signName; } public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof SmsProperties) { SmsProperties other = (SmsProperties) o; if (other.canEqual(this)) { Object this$enabled = getEnabled(); Object other$enabled = other.getEnabled(); if (this$enabled == null) { if (other$enabled != null) { return false; } } else if (!this$enabled.equals(other$enabled)) { return false; } Object this$name = getName(); Object other$name = other.getName(); if (this$name == null) { if (other$name != null) { return false; } } else if (!this$name.equals(other$name)) { return false; } Object this$templateId = getTemplateId(); Object other$templateId = other.getTemplateId(); if (this$templateId == null) { if (other$templateId != null) { return false; } } else if (!this$templateId.equals(other$templateId)) { return false; } Object this$regionId = getRegionId(); Object other$regionId = other.getRegionId(); if (this$regionId == null) { if (other$regionId != null) { return false; } } else if (!this$regionId.equals(other$regionId)) { return false; } Object this$accessKey = getAccessKey(); Object other$accessKey = other.getAccessKey(); if (this$accessKey == null) { if (other$accessKey != null) { return false; } } else if (!this$accessKey.equals(other$accessKey)) { return false; } Object this$secretKey = getSecretKey(); Object other$secretKey = other.getSecretKey(); if (this$secretKey == null) { if (other$secretKey != null) { return false; } } else if (!this$secretKey.equals(other$secretKey)) { return false; } Object this$signName = getSignName(); Object other$signName = other.getSignName(); return this$signName == null ? other$signName == null : this$signName.equals(other$signName); } return false; } return false; } protected boolean canEqual(final Object other) { return other instanceof SmsProperties; } public int hashCode() { Object $enabled = getEnabled(); int result = (1 * 59) + ($enabled == null ? 43 : $enabled.hashCode()); Object $name = getName(); int result2 = (result * 59) + ($name == null ? 43 : $name.hashCode()); Object $templateId = getTemplateId(); int result3 = (result2 * 59) + ($templateId == null ? 43 : $templateId.hashCode()); Object $regionId = getRegionId(); int result4 = (result3 * 59) + ($regionId == null ? 43 : $regionId.hashCode()); Object $accessKey = getAccessKey(); int result5 = (result4 * 59) + ($accessKey == null ? 43 : $accessKey.hashCode()); Object $secretKey = getSecretKey(); int result6 = (result5 * 59) + ($secretKey == null ? 43 : $secretKey.hashCode()); Object $signName = getSignName(); return (result6 * 59) + ($signName == null ? 43 : $signName.hashCode()); } public String toString() { return "SmsProperties(enabled=" + getEnabled() + ", name=" + getName() + ", templateId=" + getTemplateId() + ", regionId=" + getRegionId() + ", accessKey=" + getAccessKey() + ", secretKey=" + getSecretKey() + ", signName=" + getSignName() + ")"; } public Boolean getEnabled() { return this.enabled; } public String getName() { return this.name; } public String getTemplateId() { return this.templateId; } public String getRegionId() { return this.regionId; } public String getAccessKey() { return this.accessKey; } public String getSecretKey() { return this.secretKey; } public String getSignName() { return this.signName; } }