Package com.io7m.changelog.xml.api
Class CAtomChangelogWriterConfiguration.Builder
java.lang.Object
com.io7m.changelog.xml.api.CAtomChangelogWriterConfiguration.Builder
- Enclosing class:
- CAtomChangelogWriterConfiguration
public static final class CAtomChangelogWriterConfiguration.Builder
extends java.lang.Object
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 Type Method Description CAtomChangelogWriterConfigurationbuild()Builds a newCAtomChangelogWriterConfiguration.CAtomChangelogWriterConfiguration.Builderfrom(CAtomChangelogWriterConfigurationType instance)Fill a builder with attribute values from the providedCAtomChangelogWriterConfigurationTypeinstance.CAtomChangelogWriterConfiguration.BuildersetAuthorEmail(java.lang.String authorEmail)Initializes the value for theauthorEmailattribute.CAtomChangelogWriterConfiguration.BuildersetAuthorName(java.lang.String authorName)Initializes the value for theauthorNameattribute.CAtomChangelogWriterConfiguration.BuildersetTitle(java.lang.String title)Initializes the value for thetitleattribute.CAtomChangelogWriterConfiguration.BuildersetUpdated(java.time.ZonedDateTime updated)Initializes the value for theupdatedattribute.CAtomChangelogWriterConfiguration.BuildersetUri(java.net.URI uri)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
public final CAtomChangelogWriterConfiguration.Builder setAuthorEmail(java.lang.String authorEmail)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:
java.lang.IllegalStateException- if any required attributes are missing
-