Package com.io7m.changelog.xml.api
Class CAtomChangelogWriterConfiguration.Builder
java.lang.Object
com.io7m.changelog.xml.api.CAtomChangelogWriterConfiguration.Builder
- Enclosing class:
CAtomChangelogWriterConfiguration
Builds instances of type
CAtomChangelogWriterConfiguration.
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 TypeMethodDescriptionbuild()Builds a newCAtomChangelogWriterConfiguration.from(CAtomChangelogWriterConfigurationType instance) Fill a builder with attribute values from the providedCAtomChangelogWriterConfigurationTypeinstance.setAuthorEmail(String authorEmail) Initializes the value for theauthorEmailattribute.setAuthorName(String authorName) Initializes the value for theauthorNameattribute.Initializes the value for thetitleattribute.setUpdated(ZonedDateTime updated) Initializes the value for theupdatedattribute.Initializes the value for theuriattribute.
-
Method Details
-
from
public final CAtomChangelogWriterConfiguration.Builder from(CAtomChangelogWriterConfigurationType instance) Fill a builder with attribute values from the providedCAtomChangelogWriterConfigurationTypeinstance. 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
-
setUpdated
Initializes the value for theupdatedattribute.- Parameters:
updated- The value for updated- Returns:
thisbuilder for use in a chained invocation
-
setAuthorEmail
Initializes the value for theauthorEmailattribute.- Parameters:
authorEmail- The value for authorEmail- Returns:
thisbuilder for use in a chained invocation
-
setAuthorName
Initializes the value for theauthorNameattribute.- Parameters:
authorName- The value for authorName- Returns:
thisbuilder for use in a chained invocation
-
setTitle
Initializes the value for thetitleattribute.- Parameters:
title- The value for title- Returns:
thisbuilder for use in a chained invocation
-
setUri
Initializes the value for theuriattribute.- Parameters:
uri- The value for uri- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newCAtomChangelogWriterConfiguration.- Returns:
- An immutable instance of CAtomChangelogWriterConfiguration
- Throws:
IllegalStateException- if any required attributes are missing
-