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.BuilderInitializes the value for thealiasattribute.@NonNull ResourceDetailsbuild()Builds a newResourceDetails.@NonNull ResourceDetails.BuilderInitializes the value for thenameattribute.
-
Method Details
-
name
Initializes the value for thenameattribute.- Parameters:
name- The value for name- Returns:
thisbuilder for use in a chained invocation- Throws:
NullPointerException- if {code name} isnull
-
alias
Initializes the value for thealiasattribute.If not set, this attribute will have the same as
name.- Parameters:
alias- The value for alias- Returns:
thisbuilder 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
-