Package io.muserver.openapi
Class ContactObjectBuilder
- java.lang.Object
-
- io.muserver.openapi.ContactObjectBuilder
-
public class ContactObjectBuilder extends java.lang.Object
Contact information for the exposed API.
-
-
Constructor Summary
Constructors Constructor Description ContactObjectBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ContactObject
build()
static ContactObjectBuilder
contactObject()
Creates a builder for aContactObject
ContactObjectBuilder
withEmail(java.lang.String email)
ContactObjectBuilder
withName(java.lang.String name)
ContactObjectBuilder
withUrl(java.net.URI url)
-
-
-
Method Detail
-
withName
public ContactObjectBuilder withName(java.lang.String name)
- Parameters:
name
- The identifying name of the contact person/organization.- Returns:
- The current builder
-
withUrl
public ContactObjectBuilder withUrl(java.net.URI url)
- Parameters:
url
- The URL pointing to the contact information.- Returns:
- The current builder
-
withEmail
public ContactObjectBuilder withEmail(java.lang.String email)
- Parameters:
email
- The email address of the contact person/organization. MUST be in the format of an email address.- Returns:
- The current builder
-
build
public ContactObject build()
- Returns:
- A new object
-
contactObject
public static ContactObjectBuilder contactObject()
Creates a builder for aContactObject
- Returns:
- A new builder
-
-