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.password()toString()Prints the immutable valueJiraConfigurationDtowith attribute values.url()username()withPassword(String value) Copy the current immutable object by setting a value for thepasswordattribute.Copy the current immutable object by setting a value for theurlattribute.withUsername(String value) Copy the current immutable object by setting a value for theusernameattribute.
-
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
-
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
-
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. -
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.build();- Returns:
- A new ImmutableJiraConfigurationDto builder
-