Package org.opendaylight.aaa.web
Class ResourceDetails.Builder
java.lang.Object
org.opendaylight.aaa.web.ResourceDetails.Builder
- Enclosing interface:
- ResourceDetails
Builds instances of type
ResourceDetails
. Initialize attributes and then invoke the
build()
method to create an immutable instance.
ResourceDetails.Builder
is not thread-safe and generally should not be stored in a field or
collection, but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescription@NonNull ResourceDetails.Builder
Initializes the value for thealias
attribute.@NonNull ResourceDetails
build()
Builds a newResourceDetails
.@NonNull ResourceDetails.Builder
Initializes the value for thename
attribute.
-
Method Details
-
name
Initializes the value for thename
attribute.- Parameters:
name
- The value for name- Returns:
this
builder for use in a chained invocation- Throws:
NullPointerException
- if {code name} isnull
-
alias
Initializes the value for thealias
attribute.If not set, this attribute will have the same as
name
.- Parameters:
alias
- The value for alias- Returns:
this
builder for use in a chained invocation- Throws:
NullPointerException
- if {code alias} isnull
-
build
Builds a newResourceDetails
.- Returns:
- An immutable instance of ResourceDetails
- Throws:
IllegalStateException
- if any required attributes are missing
-