
com.dell.cpsd.vcenter.capabilities.api.Credentials Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of virtualization-capabilities-api Show documentation
Show all versions of virtualization-capabilities-api Show documentation
This repository contains the source code for the virtualization capabilities API.
This repository is used to define a data contract in JSON that is agnostic of the Adapter.
The newest version!
package com.dell.cpsd.vcenter.capabilities.api;
import java.io.Serializable;
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;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"address",
"password",
"username"
})
public class Credentials implements Serializable
{
@JsonProperty("address")
private String address;
@JsonProperty("password")
private String password;
@JsonProperty("username")
private String username;
@JsonIgnore
private Map additionalProperties = new HashMap();
private final static long serialVersionUID = 1134590014242379316L;
/**
* No args constructor for use in serialization
*
*/
public Credentials() {
}
/**
*
* @param password
* @param address
* @param username
*/
public Credentials(String address, String password, String username) {
super();
this.address = address;
this.password = password;
this.username = username;
}
@JsonProperty("address")
public String getAddress() {
return address;
}
@JsonProperty("address")
public void setAddress(String address) {
this.address = address;
}
@JsonProperty("password")
public String getPassword() {
return password;
}
@JsonProperty("password")
public void setPassword(String password) {
this.password = password;
}
@JsonProperty("username")
public String getUsername() {
return username;
}
@JsonProperty("username")
public void setUsername(String username) {
this.username = username;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(address).append(password).append(username).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof Credentials) == false) {
return false;
}
Credentials rhs = ((Credentials) other);
return new EqualsBuilder().append(address, rhs.address).append(password, rhs.password).append(username, rhs.username).append(additionalProperties, rhs.additionalProperties).isEquals();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy