Package io.resys.hdes.client.api
Class ImmutableStoreExceptionMsg.Builder
java.lang.Object
io.resys.hdes.client.api.ImmutableStoreExceptionMsg.Builder
- Enclosing class:
- ImmutableStoreExceptionMsg
Builds instances of type
ImmutableStoreExceptionMsg.
Initialize attributes and then invoke the build() method to create an
immutable instance.
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 TypeMethodDescriptionaddAllArgs(Iterable<String> elements) Adds elements toargslist.Adds one element toargslist.Adds elements toargslist.Sets or replaces all elements forargslist.build()Builds a newImmutableStoreExceptionMsg.from(HdesStore.StoreExceptionMsg instance) Fill a builder with attribute values from the providedStoreExceptionMsginstance.Initializes the value for theidattribute.Initializes the value for thevalueattribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableStoreExceptionMsg.Builder from(HdesStore.StoreExceptionMsg instance) Fill a builder with attribute values from the providedStoreExceptionMsginstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
id
Initializes the value for theidattribute.- Parameters:
id- The value for id- Returns:
thisbuilder for use in a chained invocation
-
value
Initializes the value for thevalueattribute.- Parameters:
value- The value for value- Returns:
thisbuilder for use in a chained invocation
-
addArgs
Adds one element toargslist.- Parameters:
element- A args element- Returns:
thisbuilder for use in a chained invocation
-
addArgs
Adds elements toargslist.- Parameters:
elements- An array of args elements- Returns:
thisbuilder for use in a chained invocation
-
args
@CanIgnoreReturnValue public final ImmutableStoreExceptionMsg.Builder args(Iterable<String> elements) Sets or replaces all elements forargslist.- Parameters:
elements- An iterable of args elements- Returns:
thisbuilder for use in a chained invocation
-
addAllArgs
@CanIgnoreReturnValue public final ImmutableStoreExceptionMsg.Builder addAllArgs(Iterable<String> elements) Adds elements toargslist.- Parameters:
elements- An iterable of args elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableStoreExceptionMsg.- Returns:
- An immutable instance of StoreExceptionMsg
- Throws:
IllegalStateException- if any required attributes are missing
-