Modifier and Type | Method and Description |
---|---|
Links |
build()
Builds a new
Links . |
Links.Builder |
from(Links instance)
Fill a builder with attribute values from the provided
Links instance. |
Links.Builder |
homeRedirect(String homeRedirect)
Initializes the value for the
homeRedirect attribute. |
Links.Builder |
logout(LogoutLink logout)
Initializes the value for the
logout attribute. |
Links.Builder |
selfService(SelfServiceLink selfService)
Initializes the value for the
selfService attribute. |
public final Links.Builder from(Links instance)
Links
instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final Links.Builder homeRedirect(String homeRedirect)
homeRedirect
attribute.homeRedirect
- The value for homeRedirect (can be null
)this
builder for use in a chained invocationpublic final Links.Builder logout(LogoutLink logout)
logout
attribute.logout
- The value for logout (can be null
)this
builder for use in a chained invocationpublic final Links.Builder selfService(SelfServiceLink selfService)
selfService
attribute.selfService
- The value for selfService (can be null
)this
builder for use in a chained invocationpublic Links build()
Links
.IllegalStateException
- if any required attributes are missingCopyright © 2018 Pivotal Software, Inc.. All rights reserved.