Package fr.enedis.chutney.jira.api
Class ImmutableJiraScenarioLinksDto.Builder
java.lang.Object
fr.enedis.chutney.jira.api.ImmutableJiraScenarioLinksDto.Builder
- Enclosing class:
ImmutableJiraScenarioLinksDto
@Generated(from="JiraScenarioLinksDto",
generator="Immutables")
@NotThreadSafe
public static final class ImmutableJiraScenarioLinksDto.Builder
extends Object
Builds instances of type
ImmutableJiraScenarioLinksDto.
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 newImmutableJiraScenarioLinksDto.Initializes the value for thechutneyIdattribute.datasetLinks(Map<String, ? extends String> entries) Sets or replaces all mappings from the specified map as entries for thedatasetLinksmap.from(JiraScenarioLinksDto instance) Fill a builder with attribute values from the providedJiraScenarioLinksDtoinstance.Initializes the value for theidattribute.putAllDatasetLinks(Map<String, ? extends String> entries) Put all mappings from the specified map as entries todatasetLinksmap.putDatasetLinks(String key, String value) Put one entry to thedatasetLinksmap.putDatasetLinks(Map.Entry<String, ? extends String> entry) Put one entry to thedatasetLinksmap.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableJiraScenarioLinksDto.Builder from(JiraScenarioLinksDto instance) Fill a builder with attribute values from the providedJiraScenarioLinksDtoinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
id
Initializes the value for theidattribute.- Parameters:
id- The value for id (can benull)- Returns:
thisbuilder for use in a chained invocation
-
chutneyId
@CanIgnoreReturnValue public final ImmutableJiraScenarioLinksDto.Builder chutneyId(String chutneyId) Initializes the value for thechutneyIdattribute.- Parameters:
chutneyId- The value for chutneyId- Returns:
thisbuilder for use in a chained invocation
-
putDatasetLinks
@CanIgnoreReturnValue public final ImmutableJiraScenarioLinksDto.Builder putDatasetLinks(String key, String value) Put one entry to thedatasetLinksmap.- Parameters:
key- The key in the datasetLinks mapvalue- The associated value in the datasetLinks map- Returns:
thisbuilder for use in a chained invocation
-
putDatasetLinks
@CanIgnoreReturnValue public final ImmutableJiraScenarioLinksDto.Builder putDatasetLinks(Map.Entry<String, ? extends String> entry) Put one entry to thedatasetLinksmap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
datasetLinks
@CanIgnoreReturnValue public final ImmutableJiraScenarioLinksDto.Builder datasetLinks(Map<String, ? extends String> entries) Sets or replaces all mappings from the specified map as entries for thedatasetLinksmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the datasetLinks map- Returns:
thisbuilder for use in a chained invocation
-
putAllDatasetLinks
@CanIgnoreReturnValue public final ImmutableJiraScenarioLinksDto.Builder putAllDatasetLinks(Map<String, ? extends String> entries) Put all mappings from the specified map as entries todatasetLinksmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the datasetLinks map- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableJiraScenarioLinksDto.- Returns:
- An immutable instance of JiraScenarioLinksDto
- Throws:
IllegalStateException- if any required attributes are missing
-