Package com.chutneytesting.jira.api
Class ImmutableJiraConfigurationDto
java.lang.Object
com.chutneytesting.jira.api.ImmutableJiraConfigurationDto
- All Implemented Interfaces:
JiraConfigurationDto
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableJiraConfigurationDto
extends Object
implements JiraConfigurationDto
Immutable implementation of
JiraConfigurationDto.
Use the builder to create immutable instances:
ImmutableJiraConfigurationDto.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableJiraConfigurationDto. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableJiraConfigurationDto.copyOf(JiraConfigurationDto instance) Creates an immutable copy of aJiraConfigurationDtovalue.booleanThis instance is equal to all instances ofImmutableJiraConfigurationDtothat have equal attribute values.inthashCode()Computes a hash code from attributes:url,username,password,urlProxy,userProxy,passwordProxy.password()toString()Prints the immutable valueJiraConfigurationDtowith attribute values.url()urlProxy()username()withPassword(String value) Copy the current immutable object by setting a value for thepasswordattribute.withPasswordProxy(String value) Copy the current immutable object by setting a present value for the optionalpasswordProxyattribute.withPasswordProxy(Optional<String> optional) Copy the current immutable object by setting an optional value for thepasswordProxyattribute.Copy the current immutable object by setting a value for theurlattribute.withUrlProxy(String value) Copy the current immutable object by setting a present value for the optionalurlProxyattribute.withUrlProxy(Optional<String> optional) Copy the current immutable object by setting an optional value for theurlProxyattribute.withUsername(String value) Copy the current immutable object by setting a value for theusernameattribute.withUserProxy(String value) Copy the current immutable object by setting a present value for the optionaluserProxyattribute.withUserProxy(Optional<String> optional) Copy the current immutable object by setting an optional value for theuserProxyattribute.
-
Method Details
-
url
- Specified by:
urlin interfaceJiraConfigurationDto- Returns:
- The value of the
urlattribute
-
username
- Specified by:
usernamein interfaceJiraConfigurationDto- Returns:
- The value of the
usernameattribute
-
password
- Specified by:
passwordin interfaceJiraConfigurationDto- Returns:
- The value of the
passwordattribute
-
urlProxy
- Specified by:
urlProxyin interfaceJiraConfigurationDto- Returns:
- The value of the
urlProxyattribute
-
userProxy
- Specified by:
userProxyin interfaceJiraConfigurationDto- Returns:
- The value of the
userProxyattribute
-
passwordProxy
- Specified by:
passwordProxyin interfaceJiraConfigurationDto- Returns:
- The value of the
passwordProxyattribute
-
withUrl
Copy the current immutable object by setting a value for theurlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for url- Returns:
- A modified copy of the
thisobject
-
withUsername
Copy the current immutable object by setting a value for theusernameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for username- Returns:
- A modified copy of the
thisobject
-
withPassword
Copy the current immutable object by setting a value for thepasswordattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for password- Returns:
- A modified copy of the
thisobject
-
withUrlProxy
Copy the current immutable object by setting a present value for the optionalurlProxyattribute.- Parameters:
value- The value for urlProxy- Returns:
- A modified copy of
thisobject
-
withUrlProxy
Copy the current immutable object by setting an optional value for theurlProxyattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for urlProxy- Returns:
- A modified copy of
thisobject
-
withUserProxy
Copy the current immutable object by setting a present value for the optionaluserProxyattribute.- Parameters:
value- The value for userProxy- Returns:
- A modified copy of
thisobject
-
withUserProxy
Copy the current immutable object by setting an optional value for theuserProxyattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for userProxy- Returns:
- A modified copy of
thisobject
-
withPasswordProxy
Copy the current immutable object by setting a present value for the optionalpasswordProxyattribute.- Parameters:
value- The value for passwordProxy- Returns:
- A modified copy of
thisobject
-
withPasswordProxy
Copy the current immutable object by setting an optional value for thepasswordProxyattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for passwordProxy- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableJiraConfigurationDtothat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:url,username,password,urlProxy,userProxy,passwordProxy. -
toString
Prints the immutable valueJiraConfigurationDtowith attribute values. -
copyOf
Creates an immutable copy of aJiraConfigurationDtovalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable JiraConfigurationDto instance
-
builder
Creates a builder forImmutableJiraConfigurationDto.ImmutableJiraConfigurationDto.builder() .url(String) // requiredurl.username(String) // requiredusername.password(String) // requiredpassword.urlProxy(String) // optionalurlProxy.userProxy(String) // optionaluserProxy.passwordProxy(String) // optionalpasswordProxy.build();- Returns:
- A new ImmutableJiraConfigurationDto builder
-