Class ImmutableJiraConfigurationDto

java.lang.Object
fr.enedis.chutney.jira.api.ImmutableJiraConfigurationDto
All Implemented Interfaces:
JiraConfigurationDto

@Generated(from="JiraConfigurationDto", generator="Immutables") @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
    • urlProxy

      public Optional<String> urlProxy()
      Specified by:
      urlProxy in interface JiraConfigurationDto
      Returns:
      The value of the urlProxy attribute
    • userProxy

      public Optional<String> userProxy()
      Specified by:
      userProxy in interface JiraConfigurationDto
      Returns:
      The value of the userProxy attribute
    • passwordProxy

      public Optional<String> passwordProxy()
      Specified by:
      passwordProxy in interface JiraConfigurationDto
      Returns:
      The value of the passwordProxy 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 or 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 or 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 or the this object
    • withUrlProxy

      public final ImmutableJiraConfigurationDto withUrlProxy(String value)
      Copy the current immutable object by setting a present value for the optional urlProxy attribute.
      Parameters:
      value - The value for urlProxy
      Returns:
      A modified copy or this if not changed
    • withUrlProxy

      public final ImmutableJiraConfigurationDto withUrlProxy(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the urlProxy attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for urlProxy
      Returns:
      A modified copy or this if not changed
    • withUserProxy

      public final ImmutableJiraConfigurationDto withUserProxy(String value)
      Copy the current immutable object by setting a present value for the optional userProxy attribute.
      Parameters:
      value - The value for userProxy
      Returns:
      A modified copy or this if not changed
    • withUserProxy

      public final ImmutableJiraConfigurationDto withUserProxy(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the userProxy attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for userProxy
      Returns:
      A modified copy or this if not changed
    • withPasswordProxy

      public final ImmutableJiraConfigurationDto withPasswordProxy(String value)
      Copy the current immutable object by setting a present value for the optional passwordProxy attribute.
      Parameters:
      value - The value for passwordProxy
      Returns:
      A modified copy or this if not changed
    • withPasswordProxy

      public final ImmutableJiraConfigurationDto withPasswordProxy(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the passwordProxy attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for passwordProxy
      Returns:
      A modified copy or this if not changed
    • 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, urlProxy, userProxy, passwordProxy.
      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
          .urlProxy(Optional<String>) // optional urlProxy
          .userProxy(Optional<String>) // optional userProxy
          .passwordProxy(Optional<String>) // optional passwordProxy
          .build();
       
      Returns:
      A new ImmutableJiraConfigurationDto builder