Module com.io7m.changelog.xml.api
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 Object
Builds instances of typeCAtomChangelogWriterConfiguration. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CAtomChangelogWriterConfigurationbuild()Builds a newCAtomChangelogWriterConfiguration.CAtomChangelogWriterConfiguration.Builderfrom(CAtomChangelogWriterConfigurationType instance)Fill a builder with attribute values from the providedCAtomChangelogWriterConfigurationTypeinstance.CAtomChangelogWriterConfiguration.BuildersetAuthorEmail(String authorEmail)Initializes the value for theauthorEmailattribute.CAtomChangelogWriterConfiguration.BuildersetAuthorName(String authorName)Initializes the value for theauthorNameattribute.CAtomChangelogWriterConfiguration.BuildersetTitle(String title)Initializes the value for thetitleattribute.CAtomChangelogWriterConfiguration.BuildersetUpdated(ZonedDateTime updated)Initializes the value for theupdatedattribute.CAtomChangelogWriterConfiguration.BuildersetUri(URI uri)Initializes the value for theuriattribute.
-
-
-
Method Detail
-
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
public final CAtomChangelogWriterConfiguration.Builder setUpdated(ZonedDateTime updated)
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(String authorEmail)
Initializes the value for theauthorEmailattribute.- Parameters:
authorEmail- The value for authorEmail- Returns:
thisbuilder for use in a chained invocation
-
setAuthorName
public final CAtomChangelogWriterConfiguration.Builder setAuthorName(String authorName)
Initializes the value for theauthorNameattribute.- Parameters:
authorName- The value for authorName- Returns:
thisbuilder for use in a chained invocation
-
setTitle
public final CAtomChangelogWriterConfiguration.Builder setTitle(String title)
Initializes the value for thetitleattribute.- Parameters:
title- The value for title- Returns:
thisbuilder for use in a chained invocation
-
setUri
public final CAtomChangelogWriterConfiguration.Builder setUri(URI uri)
Initializes the value for theuriattribute.- Parameters:
uri- The value for uri- Returns:
thisbuilder for use in a chained invocation
-
build
public CAtomChangelogWriterConfiguration build()
Builds a newCAtomChangelogWriterConfiguration.- Returns:
- An immutable instance of CAtomChangelogWriterConfiguration
- Throws:
IllegalStateException- if any required attributes are missing
-
-