Record Class MailerSpec.Smtp
java.lang.Object
java.lang.Record
io.leandev.appfuse.mail.MailerSpec.Smtp
- Record Components:
host- 主機port- 埠username- 帳號(OAUTH2 時可為 null)password- 密碼(OAUTH2 時可為 null)ssl- 啟用 SSLstarttls- 啟用 STARTTLS
- Enclosing class:
MailerSpec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.host()Returns the value of thehostrecord component.password()Returns the value of thepasswordrecord component.intport()Returns the value of theportrecord component.booleanssl()Returns the value of thesslrecord component.booleanstarttls()Returns the value of thestarttlsrecord component.final StringtoString()Returns a string representation of this record class.username()Returns the value of theusernamerecord component.
-
Constructor Details
-
Smtp
Creates an instance of aSmtprecord class.- Parameters:
host- the value for thehostrecord componentport- the value for theportrecord componentusername- the value for theusernamerecord componentpassword- the value for thepasswordrecord componentssl- the value for thesslrecord componentstarttls- the value for thestarttlsrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
host
-
port
-
username
-
password
-
ssl
-
starttls
-