Package com.chutneytesting.jira.api
Class ImmutableJiraConfigurationDto.Builder
java.lang.Object
com.chutneytesting.jira.api.ImmutableJiraConfigurationDto.Builder
- Enclosing class:
- ImmutableJiraConfigurationDto
Builds instances of type
ImmutableJiraConfigurationDto.
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 newImmutableJiraConfigurationDto.from(JiraConfigurationDto instance) Fill a builder with attribute values from the providedJiraConfigurationDtoinstance.Initializes the value for thepasswordattribute.Initializes the value for theurlattribute.Initializes the value for theusernameattribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableJiraConfigurationDto.Builder from(JiraConfigurationDto instance) Fill a builder with attribute values from the providedJiraConfigurationDtoinstance. 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
-
url
Initializes the value for theurlattribute.- Parameters:
url- The value for url- Returns:
thisbuilder for use in a chained invocation
-
username
Initializes the value for theusernameattribute.- Parameters:
username- The value for username- Returns:
thisbuilder for use in a chained invocation
-
password
Initializes the value for thepasswordattribute.- Parameters:
password- The value for password- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableJiraConfigurationDto.- Returns:
- An immutable instance of JiraConfigurationDto
- Throws:
IllegalStateException- if any required attributes are missing
-