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().

  • Method Details

    • url

      public String url()
      Specified by:
      url in interface JiraConfigurationDto
      Returns:
      The value of the url attribute
    • username

      public String username()
      Specified by:
      username in interface JiraConfigurationDto
      Returns:
      The value of the username attribute
    • password

      public String password()
      Specified by:
      password in interface JiraConfigurationDto
      Returns:
      The value of the password attribute
    • withUrl

      public final ImmutableJiraConfigurationDto withUrl(String value)
      Copy the current immutable object by setting a value for the url attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for url
      Returns:
      A modified copy of the this object
    • withUsername

      public final ImmutableJiraConfigurationDto withUsername(String value)
      Copy the current immutable object by setting a value for the username attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for username
      Returns:
      A modified copy of the this object
    • withPassword

      public final ImmutableJiraConfigurationDto withPassword(String value)
      Copy the current immutable object by setting a value for the password attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for password
      Returns:
      A modified copy of the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableJiraConfigurationDto that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: url, username, password.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value JiraConfigurationDto with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static ImmutableJiraConfigurationDto copyOf(JiraConfigurationDto instance)
      Creates an immutable copy of a JiraConfigurationDto value. 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 for ImmutableJiraConfigurationDto.
       ImmutableJiraConfigurationDto.builder()
          .url(String) // required url
          .username(String) // required username
          .password(String) // required password
          .build();
       
      Returns:
      A new ImmutableJiraConfigurationDto builder