
com.kintone.client.model.BasicAuth Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kintone-java-client Show documentation
Show all versions of kintone-java-client Show documentation
API client library for Kintone REST APIs on Java.
// Generated by delombok at Fri Jan 21 13:34:53 JST 2022
package com.kintone.client.model;
/**
* A container object for the user and password of BASIC Authentication.
*/
public final class BasicAuth {
/**
* The user of BASIC Authentication.
*/
private final String user;
/**
* The password of BASIC Authentication.
*/
private final String password;
@java.beans.ConstructorProperties({"user", "password"})
@java.lang.SuppressWarnings("all")
public BasicAuth(final String user, final String password) {
this.user = user;
this.password = password;
}
/**
* The user of BASIC Authentication.
*/
@java.lang.SuppressWarnings("all")
public String getUser() {
return this.user;
}
/**
* The password of BASIC Authentication.
*/
@java.lang.SuppressWarnings("all")
public String getPassword() {
return this.password;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof BasicAuth)) return false;
final BasicAuth other = (BasicAuth) o;
final java.lang.Object this$user = this.getUser();
final java.lang.Object other$user = other.getUser();
if (this$user == null ? other$user != null : !this$user.equals(other$user)) return false;
final java.lang.Object this$password = this.getPassword();
final java.lang.Object other$password = other.getPassword();
if (this$password == null ? other$password != null : !this$password.equals(other$password)) return false;
return true;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = 1;
final java.lang.Object $user = this.getUser();
result = result * PRIME + ($user == null ? 43 : $user.hashCode());
final java.lang.Object $password = this.getPassword();
result = result * PRIME + ($password == null ? 43 : $password.hashCode());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "BasicAuth(user=" + this.getUser() + ", password=" + this.getPassword() + ")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy