
com.ig.orchestrations.fixp.IgExtensionCredentials Maven / Gradle / Ivy
package com.ig.orchestrations.fixp;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"CredentialsType",
"Token"
})
public class IgExtensionCredentials {
@JsonProperty("CredentialsType")
private String credentialsType;
@JsonProperty("Token")
private String token;
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
* No args constructor for use in serialization
*
*/
public IgExtensionCredentials() {
}
/**
*
* @param credentialsType
* @param token
*/
public IgExtensionCredentials(String credentialsType, String token) {
super();
this.credentialsType = credentialsType;
this.token = token;
}
@JsonProperty("CredentialsType")
public String getCredentialsType() {
return credentialsType;
}
@JsonProperty("CredentialsType")
public void setCredentialsType(String credentialsType) {
this.credentialsType = credentialsType;
}
@JsonProperty("Token")
public String getToken() {
return token;
}
@JsonProperty("Token")
public void setToken(String token) {
this.token = token;
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(IgExtensionCredentials.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("credentialsType");
sb.append('=');
sb.append(((this.credentialsType == null)?"":this.credentialsType));
sb.append(',');
sb.append("token");
sb.append('=');
sb.append(((this.token == null)?"":this.token));
sb.append(',');
sb.append("additionalProperties");
sb.append('=');
sb.append(((this.additionalProperties == null)?"":this.additionalProperties));
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.credentialsType == null)? 0 :this.credentialsType.hashCode()));
result = ((result* 31)+((this.additionalProperties == null)? 0 :this.additionalProperties.hashCode()));
result = ((result* 31)+((this.token == null)? 0 :this.token.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof IgExtensionCredentials) == false) {
return false;
}
IgExtensionCredentials rhs = ((IgExtensionCredentials) other);
return ((((this.credentialsType == rhs.credentialsType)||((this.credentialsType!= null)&&this.credentialsType.equals(rhs.credentialsType)))&&((this.additionalProperties == rhs.additionalProperties)||((this.additionalProperties!= null)&&this.additionalProperties.equals(rhs.additionalProperties))))&&((this.token == rhs.token)||((this.token!= null)&&this.token.equals(rhs.token))));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy