Class ImmutableExploreResult.Link.Builder<SOURCE,DESTINATION>
java.lang.Object
fr.enedis.chutney.agent.domain.explore.ImmutableExploreResult.Link.Builder<SOURCE,DESTINATION>
- Enclosing class:
ImmutableExploreResult.Link<SOURCE,DESTINATION>
@Generated(from="ExploreResult.Link",
generator="Immutables")
@NotThreadSafe
public static final class ImmutableExploreResult.Link.Builder<SOURCE,DESTINATION>
extends Object
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newLink.destination(DESTINATION destination) Initializes the value for thedestinationattribute.from(ExploreResult.Link<SOURCE, DESTINATION> instance) Fill a builder with attribute values from the providedLinkinstance.Initializes the value for thesourceattribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableExploreResult.Link.Builder<SOURCE,DESTINATION> from(ExploreResult.Link<SOURCE, DESTINATION> instance) Fill a builder with attribute values from the providedLinkinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
source
@CanIgnoreReturnValue public final ImmutableExploreResult.Link.Builder<SOURCE,DESTINATION> source(SOURCE source) Initializes the value for thesourceattribute.- Parameters:
source- The value for source- Returns:
thisbuilder for use in a chained invocation
-
destination
@CanIgnoreReturnValue public final ImmutableExploreResult.Link.Builder<SOURCE,DESTINATION> destination(DESTINATION destination) Initializes the value for thedestinationattribute.- Parameters:
destination- The value for destination- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newLink.- Returns:
- An immutable instance of Link
- Throws:
IllegalStateException- if any required attributes are missing
-