Package io.datarouter.email.config
Record Class DatarouterEmailSettings.DatarouterEmailHostDetails
java.lang.Object
java.lang.Record
io.datarouter.email.config.DatarouterEmailSettings.DatarouterEmailHostDetails
- Enclosing class:
DatarouterEmailSettings
-
Constructor Summary
ConstructorsConstructorDescriptionDatarouterEmailHostDetails(String smtpHost, int smtpPort, String smtpUsername, String smtpPassword) Creates an instance of aDatarouterEmailHostDetailsrecord class. -
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.smtpHost()Returns the value of thesmtpHostrecord component.Returns the value of thesmtpPasswordrecord component.intsmtpPort()Returns the value of thesmtpPortrecord component.Returns the value of thesmtpUsernamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DatarouterEmailHostDetails
public DatarouterEmailHostDetails(String smtpHost, int smtpPort, String smtpUsername, String smtpPassword) Creates an instance of aDatarouterEmailHostDetailsrecord class.- Parameters:
smtpHost- the value for thesmtpHostrecord componentsmtpPort- the value for thesmtpPortrecord componentsmtpUsername- the value for thesmtpUsernamerecord componentsmtpPassword- the value for thesmtpPasswordrecord 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 '=='. -
smtpHost
Returns the value of thesmtpHostrecord component.- Returns:
- the value of the
smtpHostrecord component
-
smtpPort
public int smtpPort()Returns the value of thesmtpPortrecord component.- Returns:
- the value of the
smtpPortrecord component
-
smtpUsername
Returns the value of thesmtpUsernamerecord component.- Returns:
- the value of the
smtpUsernamerecord component
-
smtpPassword
Returns the value of thesmtpPasswordrecord component.- Returns:
- the value of the
smtpPasswordrecord component
-