All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openmetadata.schema.services.connections.pipeline.BasicAuthentication Maven / Gradle / Ivy

There is a newer version: 1.6.0-rc1
Show newest version

package org.openmetadata.schema.services.connections.pipeline;

import javax.annotation.processing.Generated;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import org.openmetadata.annotations.PasswordField;


/**
 * Username/Password Authentication
 * 

* username/password auth * */ @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "username", "password" }) @Generated("jsonschema2pojo") public class BasicAuthentication { /** * Username *

* KafkaConnect user to authenticate to the API. * */ @JsonProperty("username") @JsonPropertyDescription("KafkaConnect user to authenticate to the API.") private String username; /** * Password *

* KafkaConnect password to authenticate to the API. * */ @JsonProperty("password") @JsonPropertyDescription("KafkaConnect password to authenticate to the API.") @PasswordField private String password; /** * Username *

* KafkaConnect user to authenticate to the API. * */ @JsonProperty("username") public String getUsername() { return username; } /** * Username *

* KafkaConnect user to authenticate to the API. * */ @JsonProperty("username") public void setUsername(String username) { this.username = username; } public BasicAuthentication withUsername(String username) { this.username = username; return this; } /** * Password *

* KafkaConnect password to authenticate to the API. * */ @JsonProperty("password") @PasswordField public String getPassword() { return password; } /** * Password *

* KafkaConnect password to authenticate to the API. * */ @JsonProperty("password") @PasswordField public void setPassword(String password) { this.password = password; } public BasicAuthentication withPassword(String password) { this.password = password; return this; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(BasicAuthentication.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('['); sb.append("username"); sb.append('='); sb.append(((this.username == null)?"":this.username)); sb.append(','); sb.append("password"); sb.append('='); sb.append(((this.password == null)?"":this.password)); sb.append(','); if (sb.charAt((sb.length()- 1)) == ',') { sb.setCharAt((sb.length()- 1), ']'); } else { sb.append(']'); } return sb.toString(); } @Override public int hashCode() { int result = 1; result = ((result* 31)+((this.password == null)? 0 :this.password.hashCode())); result = ((result* 31)+((this.username == null)? 0 :this.username.hashCode())); return result; } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof BasicAuthentication) == false) { return false; } BasicAuthentication rhs = ((BasicAuthentication) other); return (((this.password == rhs.password)||((this.password!= null)&&this.password.equals(rhs.password)))&&((this.username == rhs.username)||((this.username!= null)&&this.username.equals(rhs.username)))); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy