Package fr.enedis.chutney.jira.api
Class ImmutableJiraConfigurationDto.Builder
java.lang.Object
fr.enedis.chutney.jira.api.ImmutableJiraConfigurationDto.Builder
- Enclosing class:
ImmutableJiraConfigurationDto
@Generated(from="JiraConfigurationDto",
generator="Immutables")
@NotThreadSafe
public static final class ImmutableJiraConfigurationDto.Builder
extends Object
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.passwordProxy(String passwordProxy) Initializes the optional valuepasswordProxyto passwordProxy.passwordProxy(Optional<String> passwordProxy) Initializes the optional valuepasswordProxyto passwordProxy.Initializes the value for theurlattribute.Initializes the optional valueurlProxyto urlProxy.Initializes the optional valueurlProxyto urlProxy.Initializes the value for theusernameattribute.Initializes the optional valueuserProxyto userProxy.Initializes the optional valueuserProxyto userProxy.
-
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
-
urlProxy
Initializes the optional valueurlProxyto urlProxy.- Parameters:
urlProxy- The value for urlProxy- Returns:
thisbuilder for chained invocation
-
urlProxy
@CanIgnoreReturnValue public final ImmutableJiraConfigurationDto.Builder urlProxy(Optional<String> urlProxy) Initializes the optional valueurlProxyto urlProxy.- Parameters:
urlProxy- The value for urlProxy- Returns:
thisbuilder for use in a chained invocation
-
userProxy
@CanIgnoreReturnValue public final ImmutableJiraConfigurationDto.Builder userProxy(String userProxy) Initializes the optional valueuserProxyto userProxy.- Parameters:
userProxy- The value for userProxy- Returns:
thisbuilder for chained invocation
-
userProxy
@CanIgnoreReturnValue public final ImmutableJiraConfigurationDto.Builder userProxy(Optional<String> userProxy) Initializes the optional valueuserProxyto userProxy.- Parameters:
userProxy- The value for userProxy- Returns:
thisbuilder for use in a chained invocation
-
passwordProxy
@CanIgnoreReturnValue public final ImmutableJiraConfigurationDto.Builder passwordProxy(String passwordProxy) Initializes the optional valuepasswordProxyto passwordProxy.- Parameters:
passwordProxy- The value for passwordProxy- Returns:
thisbuilder for chained invocation
-
passwordProxy
@CanIgnoreReturnValue public final ImmutableJiraConfigurationDto.Builder passwordProxy(Optional<String> passwordProxy) Initializes the optional valuepasswordProxyto passwordProxy.- Parameters:
passwordProxy- The value for passwordProxy- 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
-