Class ImmutableGwtTestCaseMetadataDto.Builder
java.lang.Object
com.chutneytesting.scenario.api.raw.dto.ImmutableGwtTestCaseMetadataDto.Builder
- Enclosing class:
- ImmutableGwtTestCaseMetadataDto
Builds instances of type
ImmutableGwtTestCaseMetadataDto.
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 TypeMethodDescriptionaddAllExecutions(Iterable<? extends ExecutionSummaryDto> elements) Adds elements toexecutionslist.addAllTags(Iterable<String> elements) Adds elements totagslist.addExecutions(ExecutionSummaryDto element) Adds one element toexecutionslist.addExecutions(ExecutionSummaryDto... elements) Adds elements toexecutionslist.Adds one element totagslist.Adds elements totagslist.build()Builds a newImmutableGwtTestCaseMetadataDto.creationDate(Instant creationDate) Initializes the value for thecreationDateattribute.description(String description) Initializes the optional valuedescriptionto description.description(Optional<String> description) Initializes the optional valuedescriptionto description.executions(Iterable<? extends ExecutionSummaryDto> elements) Sets or replaces all elements forexecutionslist.from(GwtTestCaseMetadataDto instance) Fill a builder with attribute values from the providedGwtTestCaseMetadataDtoinstance.Initializes the optional valueidto id.Initializes the optional valueidto id.repositorySource(String repositorySource) Initializes the optional valuerepositorySourceto repositorySource.repositorySource(Optional<String> repositorySource) Initializes the optional valuerepositorySourceto repositorySource.Sets or replaces all elements fortagslist.Initializes the value for thetitleattribute.updateDate(Instant updateDate) Initializes the value for theupdateDateattribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableGwtTestCaseMetadataDto.Builder from(GwtTestCaseMetadataDto instance) Fill a builder with attribute values from the providedGwtTestCaseMetadataDtoinstance. 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 optional valueidto id.- Parameters:
id- The value for id- Returns:
thisbuilder for chained invocation
-
id
Initializes the optional valueidto id.- Parameters:
id- The value for id- Returns:
thisbuilder for use in a chained invocation
-
title
Initializes the value for thetitleattribute.- Parameters:
title- The value for title- Returns:
thisbuilder for use in a chained invocation
-
description
@CanIgnoreReturnValue public final ImmutableGwtTestCaseMetadataDto.Builder description(String description) Initializes the optional valuedescriptionto description.- Parameters:
description- The value for description- Returns:
thisbuilder for chained invocation
-
description
@CanIgnoreReturnValue public final ImmutableGwtTestCaseMetadataDto.Builder description(Optional<String> description) Initializes the optional valuedescriptionto description.- Parameters:
description- The value for description- Returns:
thisbuilder for use in a chained invocation
-
repositorySource
@CanIgnoreReturnValue public final ImmutableGwtTestCaseMetadataDto.Builder repositorySource(String repositorySource) Initializes the optional valuerepositorySourceto repositorySource.- Parameters:
repositorySource- The value for repositorySource- Returns:
thisbuilder for chained invocation
-
repositorySource
@CanIgnoreReturnValue public final ImmutableGwtTestCaseMetadataDto.Builder repositorySource(Optional<String> repositorySource) Initializes the optional valuerepositorySourceto repositorySource.- Parameters:
repositorySource- The value for repositorySource- Returns:
thisbuilder for use in a chained invocation
-
addTags
Adds one element totagslist.- Parameters:
element- A tags element- Returns:
thisbuilder for use in a chained invocation
-
addTags
@CanIgnoreReturnValue public final ImmutableGwtTestCaseMetadataDto.Builder addTags(String... elements) Adds elements totagslist.- Parameters:
elements- An array of tags elements- Returns:
thisbuilder for use in a chained invocation
-
tags
@CanIgnoreReturnValue public final ImmutableGwtTestCaseMetadataDto.Builder tags(Iterable<String> elements) Sets or replaces all elements fortagslist.- Parameters:
elements- An iterable of tags elements- Returns:
thisbuilder for use in a chained invocation
-
addAllTags
@CanIgnoreReturnValue public final ImmutableGwtTestCaseMetadataDto.Builder addAllTags(Iterable<String> elements) Adds elements totagslist.- Parameters:
elements- An iterable of tags elements- Returns:
thisbuilder for use in a chained invocation
-
addExecutions
@CanIgnoreReturnValue public final ImmutableGwtTestCaseMetadataDto.Builder addExecutions(ExecutionSummaryDto element) Adds one element toexecutionslist.- Parameters:
element- A executions element- Returns:
thisbuilder for use in a chained invocation
-
addExecutions
@CanIgnoreReturnValue public final ImmutableGwtTestCaseMetadataDto.Builder addExecutions(ExecutionSummaryDto... elements) Adds elements toexecutionslist.- Parameters:
elements- An array of executions elements- Returns:
thisbuilder for use in a chained invocation
-
executions
@CanIgnoreReturnValue public final ImmutableGwtTestCaseMetadataDto.Builder executions(Iterable<? extends ExecutionSummaryDto> elements) Sets or replaces all elements forexecutionslist.- Parameters:
elements- An iterable of executions elements- Returns:
thisbuilder for use in a chained invocation
-
addAllExecutions
@CanIgnoreReturnValue public final ImmutableGwtTestCaseMetadataDto.Builder addAllExecutions(Iterable<? extends ExecutionSummaryDto> elements) Adds elements toexecutionslist.- Parameters:
elements- An iterable of executions elements- Returns:
thisbuilder for use in a chained invocation
-
creationDate
@CanIgnoreReturnValue public final ImmutableGwtTestCaseMetadataDto.Builder creationDate(Instant creationDate) Initializes the value for thecreationDateattribute.If not set, this attribute will have a default value as returned by the initializer of
creationDate.- Parameters:
creationDate- The value for creationDate- Returns:
thisbuilder for use in a chained invocation
-
updateDate
@CanIgnoreReturnValue public final ImmutableGwtTestCaseMetadataDto.Builder updateDate(Instant updateDate) Initializes the value for theupdateDateattribute.If not set, this attribute will have a default value as returned by the initializer of
updateDate.- Parameters:
updateDate- The value for updateDate- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableGwtTestCaseMetadataDto.- Returns:
- An immutable instance of GwtTestCaseMetadataDto
- Throws:
IllegalStateException- if any required attributes are missing
-