Package best.skn.mail.models
Class MailSenderRequestInfo
java.lang.Object
best.skn.mail.models.MailSenderRequestInfo
Mail sender request info class for @RequestBody/@RequestPart annotated params in controllers
- Since:
- 2024-05-29
- Version:
- 2.4.0
- Author:
- SKN Shukhan
- Use Case:
- Spring Boot Reactive
- Dedicated To:
- Logno, Atoshi and My Parents
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate String property for containing mail bodyprivate Stringprivate String property for containing mail sender email addressprivate Stringprivate String property for containing mail subjectprivate Stringprivate String property for containing mail receiver email address -
Constructor Summary
ConstructorsConstructorDescriptionMailSenderRequestInfo(String from, String to, String subject, String body) Public Constructor with all private properties -
Method Summary
Modifier and TypeMethodDescriptiongetBody()Getter method for `body` fieldgetFrom()Getter method for `from` fieldGetter method for `subject` fieldgetTo()Getter method for `to` fieldvoidSetter method for `body` fieldvoidSetter method for `from` fieldvoidsetSubject(String value) Setter method for `subject` fieldvoidSetter method for `to` fieldtoString()Overridden built-in `toString` method
-
Field Details
-
from
private String property for containing mail sender email address- Since:
- v2.0.0
-
to
private String property for containing mail receiver email address- Since:
- v2.0.0
-
subject
private String property for containing mail subject- Since:
- v2.0.0
-
body
private String property for containing mail body- Since:
- v2.0.0
-
-
Constructor Details
-
MailSenderRequestInfo
Public Constructor with all private properties- Parameters:
from- String for containing mail sender email addressto- String for containing mail receiver email addresssubject- String for containing mail subjectbody- String for containing mail body- Since:
- v2.1.0
-
-
Method Details
-
getFrom
Getter method for `from` field- Returns:
- String for `from` field
- Since:
- v2.1.0
-
setFrom
Setter method for `from` field- Parameters:
value- String for `from` field- Since:
- v2.1.0
-
getTo
Getter method for `to` field- Returns:
- String for `to` field
- Since:
- v2.1.0
-
setTo
Setter method for `to` field- Parameters:
value- String for `to` field- Since:
- v2.1.0
-
getSubject
Getter method for `subject` field- Returns:
- String for `subject` field
- Since:
- v2.1.0
-
setSubject
Setter method for `subject` field- Parameters:
value- String for `subject` field- Since:
- v2.1.0
-
getBody
Getter method for `body` field- Returns:
- String for `body` field
- Since:
- v2.1.0
-
setBody
Setter method for `body` field- Parameters:
value- String for `body` field- Since:
- v2.1.0
-
toString
Overridden built-in `toString` method
-