Interface Contact
- All Superinterfaces:
Constructible
,Extensible<Contact>
This interface represents the Contact information for the exposed API.
- See Also:
-
- "https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.md#contactObject"
-
Method Summary
Modifier and TypeMethodDescriptiondefault Contact
Sets this Contact instance's contact email to the given email and returns this instance of ContactgetEmail()
Returns the contact email of this Contact instance.getName()
Returns the identifying name of this Contact instance.getUrl()
Returns the URL pointing to the contact information for this Contact instance.default Contact
Sets this Contact instance's identifying name to the given name and returns this instance of Contact.void
Sets the contact email of this instance of Contact.void
Sets the identifying name of this Contact instance.void
Sets this Contact instance's URL pointing to the contact information.default Contact
Sets this Contact instance's URL pointing to the contact information and returns this instance of Contact.Methods inherited from interface org.eclipse.microprofile.openapi.models.Extensible
addExtension, extensions, getExtensions, removeExtension, setExtensions
-
Method Details
-
getName
String getName()Returns the identifying name of this Contact instance.- Returns:
- the name of the contact person/organization
-
setName
Sets the identifying name of this Contact instance.- Parameters:
name
- the name of the contact person/organization
-
name
Sets this Contact instance's identifying name to the given name and returns this instance of Contact.- Parameters:
name
- the name of the contact person/organization- Returns:
- this Contact instance
-
getUrl
String getUrl()Returns the URL pointing to the contact information for this Contact instance.- Returns:
- the URL pointing to the contact information
-
setUrl
Sets this Contact instance's URL pointing to the contact information. The URL must be in the format of a URL.- Parameters:
url
- the URL pointing to the contact information
-
url
Sets this Contact instance's URL pointing to the contact information and returns this instance of Contact. The URL must be in the format of a URL.- Parameters:
url
- the url pointing to the contact information- Returns:
- this Contact instance
-
getEmail
String getEmail()Returns the contact email of this Contact instance.- Returns:
- the email of the contact person/organization
-
setEmail
Sets the contact email of this instance of Contact.- Parameters:
email
- the email of the contact person/organization
-
email
Sets this Contact instance's contact email to the given email and returns this instance of Contact- Parameters:
email
- the email of the contact person/organization- Returns:
- this Contact instance
-