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 ofJiraConfigurationDto.Use the builder to create immutable instances:
ImmutableJiraConfigurationDto.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableJiraConfigurationDto.BuilderBuilds instances of typeImmutableJiraConfigurationDto.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableJiraConfigurationDto.Builderbuilder()Creates a builder forImmutableJiraConfigurationDto.static ImmutableJiraConfigurationDtocopyOf(JiraConfigurationDto instance)Creates an immutable copy of aJiraConfigurationDtovalue.booleanequals(Object another)This instance is equal to all instances ofImmutableJiraConfigurationDtothat have equal attribute values.inthashCode()Computes a hash code from attributes:url,username,password.Stringpassword()StringtoString()Prints the immutable valueJiraConfigurationDtowith attribute values.Stringurl()Stringusername()ImmutableJiraConfigurationDtowithPassword(String value)Copy the current immutable object by setting a value for thepasswordattribute.ImmutableJiraConfigurationDtowithUrl(String value)Copy the current immutable object by setting a value for theurlattribute.ImmutableJiraConfigurationDtowithUsername(String value)Copy the current immutable object by setting a value for theusernameattribute.
-
-
-
Method Detail
-
url
public String url()
- Specified by:
urlin interfaceJiraConfigurationDto- Returns:
- The value of the
urlattribute
-
username
public String username()
- Specified by:
usernamein interfaceJiraConfigurationDto- Returns:
- The value of the
usernameattribute
-
password
public String password()
- Specified by:
passwordin interfaceJiraConfigurationDto- Returns:
- The value of the
passwordattribute
-
withUrl
public final ImmutableJiraConfigurationDto withUrl(String value)
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
public final ImmutableJiraConfigurationDto withUsername(String value)
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
public final ImmutableJiraConfigurationDto withPassword(String value)
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
public boolean equals(@Nullable Object another)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
public String toString()
Prints the immutable valueJiraConfigurationDtowith attribute values.
-
copyOf
public static ImmutableJiraConfigurationDto copyOf(JiraConfigurationDto instance)
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
public static ImmutableJiraConfigurationDto.Builder builder()
Creates a builder forImmutableJiraConfigurationDto.ImmutableJiraConfigurationDto.builder() .url(String) // requiredurl.username(String) // requiredusername.password(String) // requiredpassword.build();- Returns:
- A new ImmutableJiraConfigurationDto builder
-
-