Package io.resys.hdes.client.api.diff
Class ImmutableTagDiff.Builder
java.lang.Object
io.resys.hdes.client.api.diff.ImmutableTagDiff.Builder
- Enclosing class:
- ImmutableTagDiff
Builds instances of type
ImmutableTagDiff.
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 TypeMethodDescriptionfinal ImmutableTagDiff.BuilderInitializes the value for thebaseIdattribute.final ImmutableTagDiff.BuilderInitializes the value for thebaseNameattribute.final ImmutableTagDiff.BuilderInitializes the value for thebodyattribute.build()Builds a newImmutableTagDiff.final ImmutableTagDiff.Buildercreated(LocalDateTime created) Initializes the value for thecreatedattribute.final ImmutableTagDiff.BuilderFill a builder with attribute values from the providedTagDiffinstance.final ImmutableTagDiff.BuilderInitializes the value for thetargetIdattribute.final ImmutableTagDiff.BuildertargetName(String targetName) Initializes the value for thetargetNameattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedTagDiffinstance. 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
-
baseName
Initializes the value for thebaseNameattribute.- Parameters:
baseName- The value for baseName- Returns:
thisbuilder for use in a chained invocation
-
targetName
Initializes the value for thetargetNameattribute.- Parameters:
targetName- The value for targetName- Returns:
thisbuilder for use in a chained invocation
-
baseId
Initializes the value for thebaseIdattribute.- Parameters:
baseId- The value for baseId- Returns:
thisbuilder for use in a chained invocation
-
targetId
Initializes the value for thetargetIdattribute.- Parameters:
targetId- The value for targetId- Returns:
thisbuilder for use in a chained invocation
-
created
Initializes the value for thecreatedattribute.- Parameters:
created- The value for created- Returns:
thisbuilder for use in a chained invocation
-
body
Initializes the value for thebodyattribute.- Parameters:
body- The value for body- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableTagDiff.- Returns:
- An immutable instance of TagDiff
- Throws:
IllegalStateException- if any required attributes are missing
-